1 # $NetBSD: Makefile.sun3,v 1.99 2005/12/11 12:19:20 christos Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/sun3/conf/``machineid''
9 # after which you should do
11 # Machine generic makefile changes should be made in
12 # /sys/arch/sun3/conf/Makefile.sun3
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= ${SUN3}/${MACHTYPE}/genassym.cf
32 ## (2) compile settings
35 CFLAGS+= ${CMACHFLAGS} -msoft-float -fno-defer-pop
36 AFLAGS+= -x assembler-with-cpp -traditional-cpp
39 ## (3) libkern and compat
44 ## (4) local objects, compile rules, and dependencies
48 MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s
50 locore.o: ${SUN3}/${MACHTYPE}/locore.s
56 .if ${MACHTYPE} == "sun3x"
64 ## (6) port specific target dependencies
67 # For cross-compilation, the "gcc -M" mkdep script is convenient,
68 # but that does not correctly make rules from *.s files. The
69 # easiest work-around is to just list those dependencies here.
70 locore.o: assym.h m68k/asm.h m68k/trap.h
71 copy.o: assym.h m68k/asm.h $S/sys/errno.h
72 bcopy.o: assym.h m68k/asm.h
73 copypage.o: assym.h m68k/asm.h
76 # depend on CPU configuration
77 db_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile
79 # depends on DDB, etc.
87 ## (8) config(8) generated machinery
102 ## (9) port independent kernel machinery
104 .include "$S/conf/Makefile.kern.inc"
107 ## (10) Appending make options.