1 # $NetBSD: Makefile.i386,v 1.165 2009/03/15 05:45:32 tsutsui Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/i386/conf/``machineid''
9 # after which you should do
11 # Machine generic makefile changes should be made in
12 # /sys/arch/i386/conf/Makefile.i386
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
28 ## (1) port identification
31 GENASSYM_CONF= ${I386}/i386/genassym.cf
34 ## (2) compile settings
37 AFLAGS+= -x assembler-with-cpp -traditional-cpp
40 ## (3) libkern and compat
42 OPT_MODULAR= %MODULAR%
43 .if !empty(OPT_MODULAR)
50 ## (4) local objects, compile rules, and dependencies
52 MD_OBJS= locore.o copy.o spl.o vector.o lock_stubs.o
54 MD_SFILES= ${I386}/i386/locore.S ${I386}/i386/copy.S ${I386}/i386/spl.S \
55 ${I386}/i386/vector.S ${I386}/i386/lock_stubs.S
57 locore.o: ${I386}/i386/locore.S assym.h
60 copy.o: ${I386}/i386/copy.S assym.h
63 spl.o: ${I386}/i386/spl.S assym.h
66 vector.o: ${I386}/i386/vector.S assym.h
69 lock_stubs.o: ${I386}/i386/lock_stubs.S assym.h
77 .if (${OBJECT_FMT} == "ELF")
78 KERN_LDSCRIPT?= kern.ldscript
79 LINKFORMAT= -T ${I386}/conf/${KERN_LDSCRIPT}
85 ## (6) port specific target dependencies
88 freebsd_sigcode.o i386func.o ibcs2_sigcode.o linux_support.o: assym.h
89 linux_sigcode.o lock_stubs.o svr4_sigcode.o mach_sigcode.o: assym.h
90 apmcall.o cpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h
92 acpi_wakeup_low.o busfunc.o kvm86call.o: assym.h
98 .if !make(obj) && !make(clean) && !make(cleandir)
101 ln -s $S/arch/i386/include i386
105 ## (8) config(8) generated machinery
119 ## Include rules for ACPI wakecode
120 .include "$S/arch/x86/acpi/Makefile.wakecode.inc"
123 ## (9) port independent kernel machinery
125 .include "$S/conf/Makefile.kern.inc"
128 ## (10) Appending make options.