1 # $NetBSD: Makefile.amiga,v 1.111 2018/09/22 12:24:01 rin 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/amiga/conf/``machineid'' 9 # after which you should do 10 # config machineid 11 # Machine generic makefile changes should be made in 12 # /sys/arch/amiga/conf/Makefile.amiga 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 AMIGA= $S/arch/amiga 29 GENASSYM_CONF= ${AMIGA}/amiga/genassym.cf 30 31 ## 32 ## (2) compile settings 33 ## 34 CPPFLAGS+= -Damiga -DFPCOPROC 35 .if !defined(CMACHFLAGS) 36 .include "$S/arch/m68k/Makefile.cmachflags" 37 CMACHFLAGS+= -Wa,-mcpu=68030 -Wa,-m68030 -Wa,-m68851 38 .endif 39 CFLAGS+= ${CMACHFLAGS} -msoft-float 40 AFLAGS+= -x assembler-with-cpp 41 42 ## 43 ## (3) libkern and compat 44 ## 45 OPT_MODULAR= %MODULAR% 46 47 ## 48 ## (4) local objects, compile rules, and dependencies 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= ${AMIGA}/amiga/locore.s 60 61 copy.o copypage.o lock_stubs.o: assym.h 62 63 locore.o: ${AMIGA}/amiga/locore.s assym.h 64 ${NORMAL_S} 65 66 ## 67 ## (5) link settings 68 ## 69 TEXTADDR?= 0 70 LINKFORMAT= -n 71 72 ## 73 ## (6) port specific target dependencies 74 ## 75 76 # depend on CPU configuration 77 amiga_init.o locore.o pmap.o sys_machdep.o: Makefile 78 bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile 79 80 # depends on defined(DRACO) 81 a2kbbc.o: Makefile 82 83 ## 84 ## (7) misc settings 85 ## 86 87 ## 88 ## (8) config(8) generated machinery 89 ## 90 %INCLUDES 91 92 %OBJS 93 94 %CFILES 95 96 %SFILES 97 98 %LOAD 99 100 %RULES 101 102 ## 103 ## (9) port independent kernel machinery 104 ## 105 .include "$S/conf/Makefile.kern.inc" 106 107 ## 108 ## (10) Appending make options. 109 ## 110 %MAKEOPTIONSAPPEND 111