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