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