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