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