1 # $NetBSD: Makefile.virt68k,v 1.1 2024/01/02 07:40:59 thorpej 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/virt68k/conf/``machineid'' 9 # after which you should do 10 # config machineid 11 # Machine generic makefile changes should be made in 12 # /sys/arch/virt68k/conf/Makefile.virt68k 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 VIRT68K= $S/arch/virt68k 29 GENASSYM_CONF= ${VIRT68K}/virt68k/genassym.cf 30 31 ## 32 ## (2) compile settings 33 ## 34 CPPFLAGS+= -Dvirt68k 35 CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-mcpu=68030 -Wa,-m68851 36 37 CFLAGS+= ${CMACHFLAGS} -msoft-float 38 AFLAGS+= -x assembler-with-cpp 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 # for the Motorola 68060 Software Support Package 52 .include "$S/arch/m68k/060sp/Makefile.inc" 53 54 MD_OBJS= locore.o 55 MD_LIBS= ${FPSP} 56 MD_CFILES= 57 MD_SFILES= ${VIRT68K}/virt68k/locore.s 58 59 60 locore.o: ${VIRT68K}/virt68k/locore.s assym.h 61 ${NORMAL_S} 62 ## 63 ## (5) link settings 64 ## 65 LINKFORMAT= -n 66 TEXTADDR?= 2000 67 68 ## 69 ## (6) port specific target dependencies 70 ## 71 72 # depend on CPU configuration 73 locore.o pmap.o sys_machdep.o trap.o: Makefile 74 75 copy.o copypage.o lock_stubs.o: assym.h 76 77 ## 78 ## (7) misc settings 79 ## 80 81 ## 82 ## (8) config(8) generated machinery 83 ## 84 %INCLUDES 85 86 %OBJS 87 88 %CFILES 89 90 %SFILES 91 92 %LOAD 93 94 %RULES 95 96 ## 97 ## (9) port independent kernel machinery 98 ## 99 .include "$S/conf/Makefile.kern.inc" 100 101 ## 102 ## (10) Appending make options. 103 ## 104 %MAKEOPTIONSAPPEND 105