1 # $NetBSD: Makefile.x68k,v 1.60 2005/12/11 12:19:37 christos Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/x68k/conf/``machineid''
9 # after which you should do
11 # Machine generic makefile changes should be made in
12 # /sys/arch/x68k/conf/Makefile.x68k
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= ${X68K}/x68k/genassym.cf
32 ## (2) compile settings
35 AFLAGS+= -x assembler-with-cpp -traditional-cpp
36 CMACHFLAGS?= -m68020-60 -Wa,-m68030 -Wa,-m68851
37 CFLAGS+= ${CMACHFLAGS} -msoft-float
40 ## (3) libkern and compat
45 ## (4) local objects, compile rules, and dependencies
47 # for the Motorola 68040 Floating Point Software Product
48 .include "$S/arch/m68k/fpsp/Makefile.inc"
50 # for the Motorola 68060 Software Support Package
51 .include "$S/arch/m68k/060sp/Makefile.inc"
53 MD_OBJS= locore.o ${FPSP}
55 MD_SFILES= ${X68K}/x68k/locore.s
57 locore.o: ${X68K}/x68k/locore.s assym.h Makefile
60 copy.o copypage.o lock_stubs.o: assym.h
69 ## (6) port specific target dependencies
72 # depend on root or device configuration
73 autoconf.o conf.o: Makefile
78 # depend on DEBUG and/or DIAGNOSTIC options
79 grf.o par.o sram.o: Makefile
80 intio_dmac.o mfp.o neptune.o opm.o scsirom.o xel.o zs.o bus.o: Makefile
81 intio.o vm_machdep.o: Makefile
90 ## (8) config(8) generated machinery
105 ## (9) port independent kernel machinery
107 .include "$S/conf/Makefile.kern.inc"
110 ## (10) Appending make options.