1 # $NetBSD: Makefile.virt68k,v 1.2 2026/03/21 20:14:58 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 .include "$S/arch/m68k/conf/Makefile.kern.m68k.inc" 49 50 # for the Motorola 68040 Floating Point Software Product 51 .include "$S/arch/m68k/fpsp/Makefile.inc" 52 53 # for the Motorola 68060 Software Support Package 54 .include "$S/arch/m68k/060sp/Makefile.inc" 55 56 MD_OBJS= locore.o 57 MD_LIBS= ${FPSP} 58 MD_CFILES= 59 MD_SFILES= ${VIRT68K}/virt68k/locore.s 60 61 62 locore.o: ${VIRT68K}/virt68k/locore.s assym.h 63 ${NORMAL_S} 64 ## 65 ## (5) link settings 66 ## 67 LINKFORMAT= -n 68 TEXTADDR?= 2000 69 70 ## 71 ## (6) port specific target dependencies 72 ## 73 74 # depend on CPU configuration 75 locore.o pmap.o sys_machdep.o trap.o: Makefile 76 77 copy.o copypage.o lock_stubs.o: assym.h 78 79 ## 80 ## (7) misc settings 81 ## 82 83 ## 84 ## (8) config(8) generated machinery 85 ## 86 %INCLUDES 87 88 %OBJS 89 90 %CFILES 91 92 %SFILES 93 94 %LOAD 95 96 %RULES 97 98 ## 99 ## (9) port independent kernel machinery 100 ## 101 .include "$S/conf/Makefile.kern.inc" 102 103 ## 104 ## (10) Appending make options. 105 ## 106 %MAKEOPTIONSAPPEND 107