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