1 # $NetBSD: Makefile.amiga,v 1.105 2008/01/25 19:39:22 joerg Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/amiga/conf/``machineid''
9 # after which you should do
11 # Machine generic makefile changes should be made in
12 # /sys/arch/amiga/conf/Makefile.amiga
13 # after which config should be rerun for all machines of that type.
15 # To specify debugging, add the config line: makeoptions DEBUG="-g"
16 # A better way is to specify -g only for a few files.
18 # makeoptions DEBUGLIST="uvm* trap if_*"
22 NEED_OWN_INSTALL_TARGET?=no
26 ## (1) port identification
29 GENASSYM_CONF= ${AMIGA}/amiga/genassym.cf
32 ## (2) compile settings
34 CPPFLAGS+= -Damiga -DFPCOPROC
35 .if !defined(CMACHFLAGS)
36 .include "$S/arch/m68k/Makefile.cmachflags"
37 CMACHFLAGS+= -Wa,-m68030 -Wa,-m68851
39 CFLAGS+= ${CMACHFLAGS} -msoft-float
40 AFLAGS+= -x assembler-with-cpp -traditional-cpp
43 ## (3) libkern and compat
48 ## (4) local objects, compile rules, and dependencies
50 # for the Motorola 68040 Floating Point Software Product
51 .include "$S/arch/m68k/fpsp/Makefile.inc"
53 # for the Motorola 68060 Software Support Package
54 .include "$S/arch/m68k/060sp/Makefile.inc"
56 MD_OBJS= locore.o ${FPSP}
58 MD_SFILES= ${AMIGA}/amiga/locore.s
60 copy.o copypage.o lock_stubs.o: assym.h
62 locore.o: ${AMIGA}/amiga/locore.s assym.h
72 ## (6) port specific target dependencies
75 # depend on CPU configuration
76 amiga_init.o locore.o pmap.o sys_machdep.o: Makefile
77 bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile
79 # depends on defined(DRACO)
87 ## (8) config(8) generated machinery
102 ## (9) port independent kernel machinery
104 .include "$S/conf/Makefile.kern.inc"
107 ## (10) Appending make options.