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