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