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