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