1 1.96.2.5 thorpej # $NetBSD: Makefile.amiga,v 1.96.2.5 2002/12/11 05:52:01 thorpej Exp $ 2 1.96.2.2 nathanw 3 1.96.2.2 nathanw # Makefile for NetBSD 4 1.96.2.2 nathanw # 5 1.96.2.2 nathanw # This makefile is constructed from a machine description: 6 1.96.2.2 nathanw # config machineid 7 1.96.2.2 nathanw # Most changes should be made in the machine description 8 1.96.2.2 nathanw # /sys/arch/amiga/conf/``machineid'' 9 1.96.2.2 nathanw # after which you should do 10 1.96.2.2 nathanw # config machineid 11 1.96.2.2 nathanw # Machine generic makefile changes should be made in 12 1.96.2.2 nathanw # /sys/arch/amiga/conf/Makefile.amiga 13 1.96.2.2 nathanw # after which config should be rerun for all machines of that type. 14 1.96.2.2 nathanw # 15 1.96.2.2 nathanw # To specify debugging, add the config line: makeoptions DEBUG="-g" 16 1.96.2.2 nathanw # A better way is to specify -g only for a few files. 17 1.96.2.2 nathanw # 18 1.96.2.2 nathanw # makeoptions DEBUGLIST="uvm* trap if_*" 19 1.96.2.2 nathanw 20 1.96.2.2 nathanw MACHINE_ARCH=m68k 21 1.96.2.2 nathanw USETOOLS?= no 22 1.96.2.2 nathanw NEED_OWN_INSTALL_TARGET?=no 23 1.96.2.2 nathanw .include <bsd.own.mk> 24 1.96.2.2 nathanw 25 1.96.2.2 nathanw ## 26 1.96.2.2 nathanw ## (1) port identification 27 1.96.2.2 nathanw ## 28 1.96.2.2 nathanw AMIGA= $S/arch/amiga 29 1.96.2.2 nathanw GENASSYM= ${AMIGA}/amiga/genassym.cf 30 1.96.2.2 nathanw 31 1.96.2.2 nathanw ## 32 1.96.2.2 nathanw ## (2) compile settings 33 1.96.2.2 nathanw ## 34 1.96.2.2 nathanw CPPFLAGS+= -Damiga -DFPCOPROC 35 1.96.2.2 nathanw .if empty(IDENT:M-DM68060) 36 1.96.2.2 nathanw CMACHFLAGS= -m68020 37 1.96.2.2 nathanw .else 38 1.96.2.2 nathanw CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851 39 1.96.2.2 nathanw .endif 40 1.96.2.2 nathanw CFLAGS+= ${CMACHFLAGS} -msoft-float 41 1.96.2.2 nathanw AFLAGS+= -x assembler-with-cpp -traditional-cpp 42 1.96.2.2 nathanw 43 1.96.2.2 nathanw ## 44 1.96.2.2 nathanw ## (3) libkern and compat 45 1.96.2.2 nathanw ## 46 1.96.2.2 nathanw KERN_AS= obj 47 1.96.2.2 nathanw 48 1.96.2.2 nathanw ## 49 1.96.2.2 nathanw ## (4) local objects, compile rules, and dependencies 50 1.96.2.2 nathanw ## 51 1.96.2.2 nathanw # for the Motorola 68040 Floating Point Software Product 52 1.96.2.2 nathanw .include "$S/arch/m68k/fpsp/Makefile.inc" 53 1.96.2.2 nathanw 54 1.96.2.2 nathanw # for the Motorola 68060 Software Support Package 55 1.96.2.2 nathanw .include "$S/arch/m68k/060sp/Makefile.inc" 56 1.96.2.2 nathanw 57 1.96.2.2 nathanw MD_OBJS= locore.o ${FPSP} 58 1.96.2.2 nathanw MD_CFILES= 59 1.96.2.2 nathanw MD_SFILES= ${AMIGA}/amiga/locore.s 60 1.96.2.2 nathanw 61 1.96.2.2 nathanw locore.o: ${AMIGA}/amiga/locore.s assym.h 62 1.96.2.2 nathanw ${NORMAL_S} 63 1.96.2.2 nathanw 64 1.96.2.2 nathanw ## 65 1.96.2.2 nathanw ## (5) link settings 66 1.96.2.2 nathanw ## 67 1.96.2.2 nathanw TEXTADDR?= 0 68 1.96.2.2 nathanw LINKFORMAT= -n 69 1.96.2.2 nathanw 70 1.96.2.2 nathanw ## 71 1.96.2.2 nathanw ## (6) port specific target dependencies 72 1.96.2.2 nathanw ## 73 1.96.2.2 nathanw 74 1.96.2.2 nathanw # depend on CPU configuration 75 1.96.2.2 nathanw amiga_init.o locore.o pmap.o sys_machdep.o: Makefile 76 1.96.2.2 nathanw bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile 77 1.96.2.2 nathanw 78 1.96.2.2 nathanw # depends on defined(DRACO) 79 1.96.2.2 nathanw a2kbbc.o: Makefile 80 1.96.2.2 nathanw 81 1.96.2.2 nathanw ## 82 1.96.2.2 nathanw ## (7) misc settings 83 1.96.2.2 nathanw ## 84 1.96.2.2 nathanw 85 1.96.2.2 nathanw ## 86 1.96.2.2 nathanw ## (8) config(8) generated machinery 87 1.96.2.2 nathanw ## 88 1.96.2.2 nathanw %INCLUDES 89 1.96.2.2 nathanw 90 1.96.2.2 nathanw %OBJS 91 1.96.2.2 nathanw 92 1.96.2.2 nathanw %CFILES 93 1.96.2.2 nathanw 94 1.96.2.2 nathanw %SFILES 95 1.96.2.2 nathanw 96 1.96.2.2 nathanw %LOAD 97 1.96.2.2 nathanw 98 1.96.2.2 nathanw %RULES 99 1.96.2.2 nathanw 100 1.96.2.2 nathanw ## 101 1.96.2.2 nathanw ## (9) port independent kernel machinery 102 1.96.2.2 nathanw ## 103 1.96.2.2 nathanw .include "$S/conf/Makefile.kern.inc" 104