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