1 # $NetBSD: Makefile.virt68k,v 1.3 2026/04/20 09:47:47 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= $S/arch/m68k/m68k/genassym.cf 30 GENASSYM_EXTRAS+= ${VIRT68K}/virt68k/genassym.cf 31 32 ## 33 ## (2) compile settings 34 ## 35 CPPFLAGS+= -Dvirt68k 36 CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-mcpu=68030 -Wa,-m68851 37 38 CFLAGS+= ${CMACHFLAGS} -msoft-float 39 AFLAGS+= -x assembler-with-cpp 40 41 ## 42 ## (3) libkern and compat 43 ## 44 OPT_MODULAR= %MODULAR% 45 46 ## 47 ## (4) local objects, compile rules, and dependencies 48 ## 49 .include "$S/arch/m68k/conf/Makefile.kern.m68k.inc" 50 51 # for the Motorola 68040 Floating Point Software Product 52 .include "$S/arch/m68k/fpsp/Makefile.inc" 53 54 # for the Motorola 68060 Software Support Package 55 .include "$S/arch/m68k/060sp/Makefile.inc" 56 57 MD_OBJS= locore.o 58 MD_LIBS= ${FPSP} 59 MD_CFILES= 60 MD_SFILES= ${VIRT68K}/virt68k/locore.s 61 62 63 locore.o: ${VIRT68K}/virt68k/locore.s assym.h 64 ${NORMAL_S} 65 ## 66 ## (5) link settings 67 ## 68 LINKFORMAT= -n 69 TEXTADDR?= 2000 70 71 ## 72 ## (6) port specific target dependencies 73 ## 74 75 # depend on CPU configuration 76 locore.o pmap.o sys_machdep.o trap.o: Makefile 77 78 copy.o copypage.o lock_stubs.o: assym.h 79 80 ## 81 ## (7) misc settings 82 ## 83 84 ## 85 ## (8) config(8) generated machinery 86 ## 87 %INCLUDES 88 89 %OBJS 90 91 %CFILES 92 93 %SFILES 94 95 %LOAD 96 97 %RULES 98 99 ## 100 ## (9) port independent kernel machinery 101 ## 102 .include "$S/conf/Makefile.kern.inc" 103 104 ## 105 ## (10) Appending make options. 106 ## 107 %MAKEOPTIONSAPPEND 108