Annotation of src/sys/arch/i386/conf/Makefile.i386, Revision 1.149
1.149 ! dsl 1: # $NetBSD: Makefile.i386,v 1.148 2006/07/31 18:40:41 christos Exp $
1.62 mycroft 2:
1.8 cgd 3: # Makefile for NetBSD
1.1 cgd 4: #
5: # This makefile is constructed from a machine description:
6: # config machineid
7: # Most changes should be made in the machine description
1.36 deraadt 8: # /sys/arch/i386/conf/``machineid''
1.1 cgd 9: # after which you should do
1.62 mycroft 10: # config machineid
11: # Machine generic makefile changes should be made in
1.36 deraadt 12: # /sys/arch/i386/conf/Makefile.i386
1.42 mycroft 13: # after which config should be rerun for all machines of that type.
1.119 atatat 14: #
1.120 lukem 15: # To specify debugging, add the config line: makeoptions DEBUG="-g"
1.119 atatat 16: # A better way is to specify -g only for a few files.
17: #
18: # makeoptions DEBUGLIST="uvm* trap if_*"
1.117 thorpej 19:
1.119 atatat 20: MACHINE_ARCH= i386
1.118 jmc 21: USETOOLS?= no
1.119 atatat 22: NEED_OWN_INSTALL_TARGET?=no
23: .include <bsd.own.mk>
1.42 mycroft 24:
1.119 atatat 25: ##
26: ## (1) port identification
27: ##
28: I386= $S/arch/i386
1.138 christos 29: GENASSYM_CONF= ${I386}/i386/genassym.cf
1.119 atatat 30:
31: ##
32: ## (2) compile settings
33: ##
1.121 atatat 34: CPPFLAGS+= -Di386
35: AFLAGS+= -x assembler-with-cpp -traditional-cpp
1.97 christos 36:
1.119 atatat 37: ##
1.120 lukem 38: ## (3) libkern and compat
1.119 atatat 39: ##
1.137 dsl 40: .if !empty(IDENT:M-DLKM)
1.119 atatat 41: KERN_AS= obj
1.137 dsl 42: .else
43: KERN_AS= library
44: .endif
1.62 mycroft 45:
1.119 atatat 46: ##
47: ## (4) local objects, compile rules, and dependencies
48: ##
1.145 kardel 49: MD_OBJS= locore.o copy.o spl.o vector.o
1.119 atatat 50: MD_CFILES=
1.141 yamt 51: MD_SFILES= ${I386}/i386/locore.S ${I386}/i386/copy.S ${I386}/i386/spl.S \
1.145 kardel 52: ${I386}/i386/vector.S
1.1 cgd 53:
1.125 fvdl 54: locore.o: ${I386}/i386/locore.S assym.h
55: ${NORMAL_S}
56:
1.141 yamt 57: copy.o: ${I386}/i386/copy.S assym.h
58: ${NORMAL_S}
59:
1.125 fvdl 60: spl.o: ${I386}/i386/spl.S assym.h
61: ${NORMAL_S}
62:
63: vector.o: ${I386}/i386/vector.S assym.h
1.129 christos 64: ${NORMAL_S}
65:
1.119 atatat 66: ##
67: ## (5) link settings
68: ##
1.116 thorpej 69: TEXTADDR?= c0100000
1.122 atatat 70: LINKFLAGS_NORMAL= -X
1.97 christos 71: .if (${OBJECT_FMT} == "ELF")
1.111 thorpej 72: KERN_LDSCRIPT?= kern.ldscript
1.119 atatat 73: LINKFORMAT= -T ${I386}/conf/${KERN_LDSCRIPT}
1.97 christos 74: .else
1.119 atatat 75: LINKFORMAT= -z
1.107 thorpej 76: .endif
77:
1.119 atatat 78: ##
79: ## (6) port specific target dependencies
80: ##
1.98 mrg 81:
1.126 christos 82: freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h
83: svr4_sigcode.o mach_sigcode.o: assym.h
1.130 christos 84: apmcall.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
1.132 simonb 85: mptramp.o: assym.h
1.146 christos 86: kvm86call.o: assym.h
1.128 christos 87: clock.o: config_time.h
1.119 atatat 88:
89: ##
90: ## (7) misc settings
91: ##
92:
93: ##
94: ## (8) config(8) generated machinery
95: ##
1.98 mrg 96: %INCLUDES
1.74 mycroft 97:
1.1 cgd 98: %OBJS
99:
100: %CFILES
101:
1.62 mycroft 102: %SFILES
103:
1.1 cgd 104: %LOAD
1.50 mycroft 105:
1.119 atatat 106: %RULES
1.1 cgd 107:
1.144 gdamore 108: ## Include rules for Atheros WLAN
109: .include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"
1.133 jmc 110:
1.119 atatat 111: ##
112: ## (9) port independent kernel machinery
113: ##
114: .include "$S/conf/Makefile.kern.inc"
1.135 thorpej 115:
116: ##
117: ## (10) Appending make options.
118: ##
119: %MAKEOPTIONSAPPEND
CVSweb <webmaster@jp.NetBSD.org>