1 1.80.2.2 nathanw # $NetBSD: Makefile.mac68k,v 1.80.2.2 2002/01/08 00:25:57 nathanw Exp $ 2 1.80.2.2 nathanw 3 1.80.2.2 nathanw # Makefile for NetBSD 4 1.80.2.2 nathanw # 5 1.80.2.2 nathanw # This makefile is constructed from a machine description: 6 1.80.2.2 nathanw # config machineid 7 1.80.2.2 nathanw # Most changes should be made in the machine description 8 1.80.2.2 nathanw # /sys/arch/mac68k/conf/``machineid'' 9 1.80.2.2 nathanw # after which you should do 10 1.80.2.2 nathanw # config machineid 11 1.80.2.2 nathanw # Machine generic makefile changes should be made in 12 1.80.2.2 nathanw # /sys/arch/mac68k/conf/Makefile.mac68k 13 1.80.2.2 nathanw # after which config should be rerun for all machines of that type. 14 1.80.2.2 nathanw # 15 1.80.2.2 nathanw # To specify debugging, add the config line: makeoptions DEBUG="-g" 16 1.80.2.2 nathanw # A better way is to specify -g only for a few files. 17 1.80.2.2 nathanw # 18 1.80.2.2 nathanw # makeoptions DEBUGLIST="uvm* trap if_*" 19 1.80.2.2 nathanw 20 1.80.2.2 nathanw MACHINE_ARCH=m68k 21 1.80.2.2 nathanw USETOOLS?= no 22 1.80.2.2 nathanw NEED_OWN_INSTALL_TARGET?=no 23 1.80.2.2 nathanw .include <bsd.own.mk> 24 1.80.2.2 nathanw 25 1.80.2.2 nathanw ## 26 1.80.2.2 nathanw ## (1) port identification 27 1.80.2.2 nathanw ## 28 1.80.2.2 nathanw MAC68K= $S/arch/mac68k 29 1.80.2.2 nathanw GENASSYM= ${MAC68K}/mac68k/genassym.cf 30 1.80.2.2 nathanw 31 1.80.2.2 nathanw ## 32 1.80.2.2 nathanw ## (2) compile settings 33 1.80.2.2 nathanw ## 34 1.80.2.2 nathanw CPPFLAGS+= -Dmac68k 35 1.80.2.2 nathanw CFLAGS+= -msoft-float 36 1.80.2.2 nathanw AFLAGS+= -traditional 37 1.80.2.2 nathanw 38 1.80.2.2 nathanw NORMAL_S= ${CPP} ${AFLAGS} ${CPPFLAGS} $< | sed -e 's/^\#.*//' | \ 39 1.80.2.2 nathanw ${AS} -o ${.TARGET} 40 1.80.2.2 nathanw 41 1.80.2.2 nathanw ## 42 1.80.2.2 nathanw ## (3) libkern and compat 43 1.80.2.2 nathanw ## 44 1.80.2.2 nathanw KERN_AS= obj 45 1.80.2.2 nathanw 46 1.80.2.2 nathanw ## 47 1.80.2.2 nathanw ## (4) local objects, compile rules, and dependencies 48 1.80.2.2 nathanw ## 49 1.80.2.2 nathanw # for the Motorola 68040 Floating Point Software Product 50 1.80.2.2 nathanw .include "$S/arch/m68k/fpsp/Makefile.inc" 51 1.80.2.2 nathanw 52 1.80.2.2 nathanw MD_OBJS= locore.o ${FPSP} 53 1.80.2.2 nathanw MD_CFILES= 54 1.80.2.2 nathanw MD_SFILES= ${MAC68K}/mac68k/locore.s 55 1.80.2.2 nathanw 56 1.80.2.2 nathanw locore.o: ${MAC68K}/mac68k/locore.s assym.h 57 1.80.2.2 nathanw ${NORMAL_S} 58 1.80.2.2 nathanw 59 1.80.2.2 nathanw ## 60 1.80.2.2 nathanw ## (5) link settings 61 1.80.2.2 nathanw ## 62 1.80.2.2 nathanw LINKFORMAT= -n 63 1.80.2.2 nathanw TEXTADDR?= 0 64 1.80.2.2 nathanw 65 1.80.2.2 nathanw ## 66 1.80.2.2 nathanw ## (6) port specific target dependencies 67 1.80.2.2 nathanw ## 68 1.80.2.2 nathanw 69 1.80.2.2 nathanw # depend on CPU configuration 70 1.80.2.2 nathanw locore.o pmap.o trap.o: Makefile 71 1.80.2.2 nathanw 72 1.80.2.2 nathanw ## 73 1.80.2.2 nathanw ## (7) misc settings 74 1.80.2.2 nathanw ## 75 1.80.2.2 nathanw 76 1.80.2.2 nathanw ## 77 1.80.2.2 nathanw ## (8) config(8) generated machinery 78 1.80.2.2 nathanw ## 79 1.80.2.2 nathanw %INCLUDES 80 1.80.2.2 nathanw 81 1.80.2.2 nathanw %OBJS 82 1.80.2.2 nathanw 83 1.80.2.2 nathanw %CFILES 84 1.80.2.2 nathanw 85 1.80.2.2 nathanw %SFILES 86 1.80.2.2 nathanw 87 1.80.2.2 nathanw %LOAD 88 1.80.2.2 nathanw 89 1.80.2.2 nathanw %RULES 90 1.80.2.2 nathanw 91 1.80.2.2 nathanw ## 92 1.80.2.2 nathanw ## (9) port independent kernel machinery 93 1.80.2.2 nathanw ## 94 1.80.2.2 nathanw .include "$S/conf/Makefile.kern.inc" 95