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