1 1.96.2.3 nathanw # $NetBSD: Makefile.amiga,v 1.96.2.3 2002/04/17 00:02:15 nathanw 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 .SUFFIXES: .o .g 44 1.96.2.2 nathanw 45 1.96.2.2 nathanw .g.o: ; echo This is a dummy rule and should not be executed. 46 1.96.2.2 nathanw 47 1.96.2.2 nathanw NORMAL_G= gspa -c tmscode < $< > $*.c && \ 48 1.96.2.2 nathanw ${CC} -c ${CFLAGS} ${CPPFLAGS} ${PROF} $*.c 49 1.96.2.2 nathanw 50 1.96.2.2 nathanw ## 51 1.96.2.2 nathanw ## (3) libkern and compat 52 1.96.2.2 nathanw ## 53 1.96.2.2 nathanw KERN_AS= obj 54 1.96.2.2 nathanw 55 1.96.2.2 nathanw ## 56 1.96.2.2 nathanw ## (4) local objects, compile rules, and dependencies 57 1.96.2.2 nathanw ## 58 1.96.2.2 nathanw # for the Motorola 68040 Floating Point Software Product 59 1.96.2.2 nathanw .include "$S/arch/m68k/fpsp/Makefile.inc" 60 1.96.2.2 nathanw 61 1.96.2.2 nathanw # for the Motorola 68060 Software Support Package 62 1.96.2.2 nathanw .include "$S/arch/m68k/060sp/Makefile.inc" 63 1.96.2.2 nathanw 64 1.96.2.2 nathanw MD_OBJS= locore.o ${FPSP} 65 1.96.2.2 nathanw MD_CFILES= 66 1.96.2.2 nathanw MD_SFILES= ${AMIGA}/amiga/locore.s 67 1.96.2.2 nathanw 68 1.96.2.2 nathanw locore.o: ${AMIGA}/amiga/locore.s assym.h 69 1.96.2.2 nathanw ${NORMAL_S} 70 1.96.2.2 nathanw 71 1.96.2.2 nathanw ## 72 1.96.2.2 nathanw ## (5) link settings 73 1.96.2.2 nathanw ## 74 1.96.2.2 nathanw TEXTADDR?= 0 75 1.96.2.2 nathanw LINKFORMAT= -n 76 1.96.2.2 nathanw 77 1.96.2.2 nathanw ## 78 1.96.2.2 nathanw ## (6) port specific target dependencies 79 1.96.2.2 nathanw ## 80 1.96.2.2 nathanw 81 1.96.2.2 nathanw # depend on CPU configuration 82 1.96.2.2 nathanw amiga_init.o locore.o pmap.o sys_machdep.o: Makefile 83 1.96.2.2 nathanw bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile 84 1.96.2.2 nathanw 85 1.96.2.2 nathanw # depends on defined(DRACO) 86 1.96.2.2 nathanw a2kbbc.o: Makefile 87 1.96.2.2 nathanw 88 1.96.2.2 nathanw ## 89 1.96.2.2 nathanw ## (7) misc settings 90 1.96.2.2 nathanw ## 91 1.96.2.2 nathanw 92 1.96.2.2 nathanw ## 93 1.96.2.2 nathanw ## (8) config(8) generated machinery 94 1.96.2.2 nathanw ## 95 1.96.2.2 nathanw %INCLUDES 96 1.96.2.2 nathanw 97 1.96.2.2 nathanw %OBJS 98 1.96.2.2 nathanw 99 1.96.2.2 nathanw %CFILES 100 1.96.2.2 nathanw 101 1.96.2.2 nathanw %SFILES 102 1.96.2.2 nathanw 103 1.96.2.2 nathanw %LOAD 104 1.96.2.2 nathanw 105 1.96.2.2 nathanw %RULES 106 1.96.2.2 nathanw 107 1.96.2.2 nathanw ## 108 1.96.2.2 nathanw ## (9) port independent kernel machinery 109 1.96.2.2 nathanw ## 110 1.96.2.2 nathanw .include "$S/conf/Makefile.kern.inc" 111