1 1.101.6.1 skrll # $NetBSD: Makefile.amiga,v 1.101.6.1 2004/08/03 10:31:49 skrll 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.98 atatat GENASSYM= ${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.73 is .if empty(IDENT:M-DM68060) 36 1.46 mycroft CMACHFLAGS= -m68020 37 1.40 is .else 38 1.83 is CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851 39 1.40 is .endif 40 1.98 atatat CFLAGS+= ${CMACHFLAGS} -msoft-float 41 1.98 atatat AFLAGS+= -x assembler-with-cpp -traditional-cpp 42 1.29 jtc 43 1.98 atatat ## 44 1.98 atatat ## (3) libkern and compat 45 1.98 atatat ## 46 1.98 atatat KERN_AS= obj 47 1.1 mw 48 1.98 atatat ## 49 1.98 atatat ## (4) local objects, compile rules, and dependencies 50 1.98 atatat ## 51 1.98 atatat # for the Motorola 68040 Floating Point Software Product 52 1.98 atatat .include "$S/arch/m68k/fpsp/Makefile.inc" 53 1.1 mw 54 1.98 atatat # for the Motorola 68060 Software Support Package 55 1.98 atatat .include "$S/arch/m68k/060sp/Makefile.inc" 56 1.35 mycroft 57 1.98 atatat MD_OBJS= locore.o ${FPSP} 58 1.98 atatat MD_CFILES= 59 1.98 atatat MD_SFILES= ${AMIGA}/amiga/locore.s 60 1.1 mw 61 1.98 atatat locore.o: ${AMIGA}/amiga/locore.s assym.h 62 1.98 atatat ${NORMAL_S} 63 1.35 mycroft 64 1.98 atatat ## 65 1.98 atatat ## (5) link settings 66 1.98 atatat ## 67 1.98 atatat TEXTADDR?= 0 68 1.98 atatat LINKFORMAT= -n 69 1.98 atatat 70 1.98 atatat ## 71 1.98 atatat ## (6) port specific target dependencies 72 1.98 atatat ## 73 1.1 mw 74 1.97 lukem # depend on CPU configuration 75 1.74 is amiga_init.o locore.o pmap.o sys_machdep.o: Makefile 76 1.74 is bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile 77 1.60 is 78 1.60 is # depends on defined(DRACO) 79 1.60 is a2kbbc.o: Makefile 80 1.1 mw 81 1.98 atatat ## 82 1.98 atatat ## (7) misc settings 83 1.98 atatat ## 84 1.98 atatat 85 1.98 atatat ## 86 1.98 atatat ## (8) config(8) generated machinery 87 1.98 atatat ## 88 1.98 atatat %INCLUDES 89 1.98 atatat 90 1.98 atatat %OBJS 91 1.98 atatat 92 1.98 atatat %CFILES 93 1.98 atatat 94 1.98 atatat %SFILES 95 1.89 hubertf 96 1.98 atatat %LOAD 97 1.1 mw 98 1.1 mw %RULES 99 1.98 atatat 100 1.98 atatat ## 101 1.98 atatat ## (9) port independent kernel machinery 102 1.98 atatat ## 103 1.98 atatat .include "$S/conf/Makefile.kern.inc" 104 1.101.6.1 skrll 105 1.101.6.1 skrll ## 106 1.101.6.1 skrll ## (10) Appending make options. 107 1.101.6.1 skrll ## 108 1.101.6.1 skrll %MAKEOPTIONSAPPEND 109