1 1.11.2.4 thorpej # $NetBSD: Makefile.luna68k,v 1.11.2.4 2002/12/11 06:10:37 thorpej 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.2 nathanw AFLAGS+= -x assembler-with-cpp -traditional-cpp 36 1.11.2.2 nathanw 37 1.11.2.2 nathanw ## 38 1.11.2.2 nathanw ## (3) libkern and compat 39 1.11.2.2 nathanw ## 40 1.11.2.2 nathanw 41 1.11.2.2 nathanw ## 42 1.11.2.2 nathanw ## (4) local objects, compile rules, and dependencies 43 1.11.2.2 nathanw ## 44 1.11.2.2 nathanw # for the Motorola 68040 Floating Point Software Product 45 1.11.2.2 nathanw # .include "$S/arch/m68k/fpsp/Makefile.inc" 46 1.11.2.2 nathanw 47 1.11.2.2 nathanw MD_OBJS= locore.o ${FPSP} 48 1.11.2.2 nathanw MD_CFILES= 49 1.11.2.2 nathanw MD_SFILES= 50 1.11.2.2 nathanw 51 1.11.2.2 nathanw locore.o: ${LUNA68K}/luna68k/locore.s assym.h 52 1.11.2.2 nathanw ${NORMAL_S} 53 1.11.2.2 nathanw 54 1.11.2.2 nathanw ## 55 1.11.2.2 nathanw ## (5) link settings 56 1.11.2.2 nathanw ## 57 1.11.2.2 nathanw LINKFORMAT= -N 58 1.11.2.2 nathanw TEXTADDR?= 0xc000 59 1.11.2.2 nathanw 60 1.11.2.2 nathanw ## 61 1.11.2.2 nathanw ## (6) port specific target dependencies 62 1.11.2.2 nathanw ## 63 1.11.2.2 nathanw 64 1.11.2.2 nathanw # depend on CPU configuration 65 1.11.2.2 nathanw machdep.c trap.o: Makefile 66 1.11.2.2 nathanw 67 1.11.2.2 nathanw ## 68 1.11.2.2 nathanw ## (7) misc settings 69 1.11.2.2 nathanw ## 70 1.11.2.2 nathanw 71 1.11.2.2 nathanw ## 72 1.11.2.2 nathanw ## (8) config(8) generated machinery 73 1.11.2.2 nathanw ## 74 1.11.2.2 nathanw %INCLUDES 75 1.11.2.2 nathanw 76 1.11.2.2 nathanw %OBJS 77 1.11.2.2 nathanw 78 1.11.2.2 nathanw %CFILES 79 1.11.2.2 nathanw 80 1.11.2.2 nathanw %SFILES 81 1.11.2.2 nathanw 82 1.11.2.2 nathanw %LOAD 83 1.11.2.2 nathanw 84 1.11.2.2 nathanw %RULES 85 1.11.2.2 nathanw 86 1.11.2.2 nathanw ## 87 1.11.2.2 nathanw ## (9) port independent kernel machinery 88 1.11.2.2 nathanw ## 89 1.11.2.2 nathanw .include "$S/conf/Makefile.kern.inc" 90