1 # $NetBSD: Makefile.luna68k,v 1.32 2026/04/20 09:47:45 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/luna68k/conf/``machineid'' 9 # after which you should do 10 # config machineid 11 # Machine generic makefile changes should be made in 12 # /sys/arch/luna68k/conf/Makefile.luna68k 13 # after which config should be rerun for all machines of that type. 14 # To specify debugging, add the config line: makeoptions DEBUG="-g" 15 # A better way is to specify -g only for a few files. 16 # 17 # makeoptions DEBUGLIST="uvm* trap if_*" 18 19 MACHINE_ARCH=m68k 20 USETOOLS?= no 21 NEED_OWN_INSTALL_TARGET?=no 22 .include <bsd.own.mk> 23 24 ## 25 ## (1) port identification 26 ## 27 LUNA68K= $S/arch/luna68k 28 GENASSYM_CONF= $S/arch/m68k/m68k/genassym.cf 29 GENASSYM_EXTRAS+= ${LUNA68K}/luna68k/genassym.cf 30 31 ## 32 ## (2) compile settings 33 ## 34 CPPFLAGS+= -Dluna68k 35 CFLAGS+= -msoft-float 36 AFLAGS+= -x assembler-with-cpp 37 38 ## 39 ## (3) libkern and compat 40 ## 41 OPT_MODULAR= %MODULAR% 42 43 ## 44 ## (4) local objects, compile rules, and dependencies 45 ## 46 .include "$S/arch/m68k/conf/Makefile.kern.m68k.inc" 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= ${LUNA68K}/luna68k/locore.s 55 56 locore.o: ${LUNA68K}/luna68k/locore.s assym.h 57 ${NORMAL_S} 58 59 .include "$S/arch/m68k/conf/Makefile.kern.m68k.inc" 60 61 ## 62 ## (5) link settings 63 ## 64 LINKFORMAT= -N 65 TEXTADDR?= 0xc000 66 67 ## 68 ## (6) port specific target dependencies 69 ## 70 71 # depend on CPU configuration 72 machdep.c trap.o: Makefile 73 74 copy.o copypage.o lock_stubs.o: assym.h 75 76 ## 77 ## (7) misc settings 78 ## 79 80 ## 81 ## (8) config(8) generated machinery 82 ## 83 %INCLUDES 84 85 %OBJS 86 87 %CFILES 88 89 %SFILES 90 91 %LOAD 92 93 %RULES 94 95 ## 96 ## (9) port independent kernel machinery 97 ## 98 .include "$S/conf/Makefile.kern.inc" 99 100 ## 101 ## (10) Appending make options. 102 ## 103 %MAKEOPTIONSAPPEND 104