Home | History | Annotate | Line # | Download | only in conf
Makefile.mvme68k revision 1.51.2.2
      1  1.51.2.2  jdolecek #	$NetBSD: Makefile.mvme68k,v 1.51.2.2 2002/06/23 17:38:16 jdolecek Exp $
      2       1.1     chuck 
      3       1.1     chuck # Makefile for NetBSD
      4       1.1     chuck #
      5       1.1     chuck # This makefile is constructed from a machine description:
      6       1.1     chuck #	config machineid
      7       1.1     chuck # Most changes should be made in the machine description
      8       1.1     chuck #	/sys/arch/mvme68k/conf/``machineid''
      9       1.1     chuck # after which you should do
     10       1.6   mycroft #	config machineid
     11       1.1     chuck # Machine generic makefile changes should be made in
     12       1.1     chuck #	/sys/arch/mvme68k/conf/Makefile.mvme68k
     13       1.1     chuck # after which config should be rerun for all machines of that type.
     14  1.51.2.1   thorpej #
     15  1.51.2.1   thorpej # To specify debugging, add the config line: makeoptions DEBUG="-g"
     16  1.51.2.1   thorpej # A better way is to specify -g only for a few files.
     17  1.51.2.1   thorpej #
     18  1.51.2.1   thorpej #	makeoptions DEBUGLIST="uvm* trap if_*"
     19       1.1     chuck 
     20  1.51.2.1   thorpej MACHINE_ARCH=m68k
     21  1.51.2.1   thorpej USETOOLS?=	no
     22  1.51.2.1   thorpej NEED_OWN_INSTALL_TARGET?=no
     23  1.51.2.1   thorpej .include <bsd.own.mk>
     24  1.51.2.1   thorpej 
     25  1.51.2.1   thorpej ##
     26  1.51.2.1   thorpej ## (1) port identification
     27  1.51.2.1   thorpej ##
     28  1.51.2.1   thorpej MVME68K=	$S/arch/mvme68k
     29  1.51.2.1   thorpej GENASSYM=	${MVME68K}/mvme68k/genassym.cf
     30  1.51.2.1   thorpej 
     31  1.51.2.1   thorpej ##
     32  1.51.2.1   thorpej ## (2) compile settings
     33  1.51.2.1   thorpej ##
     34  1.51.2.1   thorpej CPPFLAGS+=	-Dmvme68k
     35      1.49       scw .if empty(IDENT:M-DMVME172) && empty(IDENT:M-DMVME177)
     36      1.49       scw .if empty(IDENT:M-DMVME147)
     37      1.49       scw CMACHFLAGS=	-m68040
     38      1.49       scw .else
     39      1.49       scw CMACHFLAGS=	-m68030
     40      1.49       scw .endif
     41      1.49       scw .else
     42      1.49       scw .if empty(IDENT:M-DMVME147) && empty(IDENT:M-DMVME162) && empty(IDENT:M-DMVME167)
     43      1.49       scw CMACHFLAGS=	-m68060 -Wa,-m68030 -Wa,-m68851
     44      1.49       scw .else
     45      1.49       scw CMACHFLAGS=	-m68020-60 -Wa,-m68030 -Wa,-m68851
     46      1.49       scw .endif
     47      1.49       scw .endif
     48  1.51.2.1   thorpej CFLAGS+=	${CMACHFLAGS} -msoft-float
     49  1.51.2.2  jdolecek .if defined(HAVE_GCC3)
     50  1.51.2.2  jdolecek AFLAGS+=	-x assembler-with-cpp
     51  1.51.2.2  jdolecek .else
     52  1.51.2.1   thorpej AFLAGS+=	-x assembler-with-cpp -traditional-cpp
     53  1.51.2.2  jdolecek .endif
     54      1.25   thorpej 
     55  1.51.2.1   thorpej ##
     56  1.51.2.1   thorpej ## (3) libkern and compat
     57  1.51.2.1   thorpej ##
     58      1.36  drochner KERN_AS=	obj
     59       1.1     chuck 
     60  1.51.2.1   thorpej ##
     61  1.51.2.1   thorpej ## (4) local objects, compile rules, and dependencies
     62  1.51.2.1   thorpej ##
     63  1.51.2.1   thorpej # for the Motorola 68040 Floating Point Software Product
     64       1.1     chuck .include "$S/arch/m68k/fpsp/Makefile.inc"
     65      1.49       scw 
     66  1.51.2.1   thorpej # for the Motorola 68060 Software Support Package
     67      1.49       scw .include "$S/arch/m68k/060sp/Makefile.inc"
     68       1.1     chuck 
     69  1.51.2.1   thorpej MD_OBJS=	locore.o ${FPSP}
     70  1.51.2.1   thorpej MD_CFILES=
     71  1.51.2.1   thorpej MD_SFILES=	${MVME68K}/mvme68k/locore.s
     72  1.51.2.1   thorpej 
     73  1.51.2.1   thorpej 
     74  1.51.2.1   thorpej locore.o: ${MVME68K}/mvme68k/locore.s assym.h
     75  1.51.2.1   thorpej 	${NORMAL_S}
     76  1.51.2.1   thorpej ##
     77  1.51.2.1   thorpej ## (5) link settings
     78  1.51.2.1   thorpej ##
     79  1.51.2.1   thorpej LINKFORMAT=	-n
     80  1.51.2.1   thorpej TEXTADDR?=	8000
     81  1.51.2.1   thorpej 
     82  1.51.2.1   thorpej ##
     83  1.51.2.1   thorpej ## (6) port specific target dependencies
     84  1.51.2.1   thorpej ##
     85       1.1     chuck 
     86  1.51.2.1   thorpej # depend on CPU configuration
     87  1.51.2.1   thorpej locore.o pmap.o sys_machdep.o trap.o: Makefile
     88       1.1     chuck 
     89  1.51.2.1   thorpej ##
     90  1.51.2.1   thorpej ## (7) misc settings
     91  1.51.2.1   thorpej ##
     92  1.51.2.1   thorpej 
     93  1.51.2.1   thorpej ##
     94  1.51.2.1   thorpej ## (8) config(8) generated machinery
     95  1.51.2.1   thorpej ##
     96  1.51.2.1   thorpej %INCLUDES
     97      1.13   mycroft 
     98       1.1     chuck %OBJS
     99       1.1     chuck 
    100       1.1     chuck %CFILES
    101       1.1     chuck 
    102       1.6   mycroft %SFILES
    103       1.6   mycroft 
    104       1.1     chuck %LOAD
    105       1.1     chuck 
    106       1.1     chuck %RULES
    107  1.51.2.1   thorpej 
    108  1.51.2.1   thorpej ##
    109  1.51.2.1   thorpej ## (9) port independent kernel machinery
    110  1.51.2.1   thorpej ##
    111  1.51.2.1   thorpej .include "$S/conf/Makefile.kern.inc"
    112