1 # $NetBSD: Makefile.sun2,v 1.18 2005/12/11 12:19:16 christos Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/sun2/conf/``machineid''
9 # after which you should do
11 # Machine generic makefile changes should be made in
12 # /sys/arch/sun2/conf/Makefile.sun2
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= ${SUN2}/sun2/genassym.cf
32 ## (2) compile settings
35 CFLAGS+= -msoft-float -fno-defer-pop
36 AFLAGS+= -x assembler-with-cpp -traditional-cpp
39 ## (3) libkern and compat
42 # XXX lib/libkern/arch/m68k/Makefile.inc needs to know that
43 # XXX our MACHINE_ARCH is m68000, and not m68k. --fredette
44 KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH}
47 ## (4) local objects, compile rules, and dependencies
51 MD_SFILES= ${SUN2}/sun2/locore.s
53 locore.o: ${SUN2}/sun2/locore.s
63 ## (6) port specific target dependencies
66 # For cross-compilation, the "gcc -M" mkdep script is convenient,
67 # but that does not correctly make rules from *.s files. The
68 # easiest work-around is to just list those dependencies here.
69 locore.o: assym.h m68k/asm.h m68k/trap.h
70 copy.o: assym.h m68k/asm.h $S/sys/errno.h
71 bcopy.o: assym.h m68k/asm.h
72 copypage.o: assym.h m68k/asm.h
75 # depend on CPU configuration
76 db_machdep.o dvma.o machdep.o pmap.o sun2_startup.o vm_machdep.o: Makefile
78 # depends on DDB, etc.
86 ## (8) config(8) generated machinery
101 ## (9) port independent kernel machinery
103 .include "$S/conf/Makefile.kern.inc"
106 ## (10) Appending make options.