Annotation of src/sys/arch/xen/conf/Makefile.xen, Revision 1.5.2.4
1.5.2.4 ! skrll 1: # $NetBSD: Makefile.xen,v 1.5.2.3 2004/09/21 13:24:36 skrll Exp $
1.5.2.2 skrll 2: # NetBSD: Makefile.i386,v 1.132 2003/07/05 16:56:10 simonb Exp
3:
4: # Makefile for NetBSD
5: #
6: # This makefile is constructed from a machine description:
7: # config machineid
8: # Most changes should be made in the machine description
9: # /sys/arch/xen/conf/``machineid''
10: # after which you should do
11: # config machineid
12: # Machine generic makefile changes should be made in
13: # /sys/arch/xen/conf/Makefile.xen
14: # after which config should be rerun for all machines of that type.
15: #
16: # To specify debugging, add the config line: makeoptions DEBUG="-g"
17: # A better way is to specify -g only for a few files.
18: #
19: # makeoptions DEBUGLIST="uvm* trap if_*"
20:
21: .include "$S/arch/xen/conf/Makefile.arch.inc"
22: MACHINE_ARCH?= i386
23: USETOOLS?= no
24: NEED_OWN_INSTALL_TARGET?=no
25: .include <bsd.own.mk>
26:
27: ##
28: ## (1) port identification
29: ##
30: XEN= $S/arch/xen
31: GENASSYM= ${XEN}/${XEN_BUILD}/genassym.cf
32:
33: ##
34: ## (2) compile settings
35: ##
36: CPPFLAGS+= -D${XEN_BUILD}
37: AFLAGS+= -x assembler-with-cpp -traditional-cpp ${DBG}
38: EXTRA_INCLUDES= -I${.CURDIR}/xen-ma
39:
40: ##
41: ## (3) libkern and compat
42: ##
43: KERN_AS= obj
44:
45: ##
46: ## (4) local objects, compile rules, and dependencies
47: ##
48: MD_OBJS= locore.o spl.o vector.o
49: MD_CFILES=
50: MD_SFILES= ${XEN}/${XEN_BUILD}/locore.S ${XEN}/${XEN_BUILD}/spl.S \
51: ${XEN}/${XEN_BUILD}/vector.S
52:
53: locore.o: ${XEN}/${XEN_BUILD}/locore.S assym.h
54: ${NORMAL_S}
55:
56: spl.o: ${XEN}/${XEN_BUILD}/spl.S assym.h
57: ${NORMAL_S}
58:
59: vector.o: ${XEN}/${XEN_BUILD}/vector.S assym.h
60: ${NORMAL_S}
61:
62: .if !make(obj) && !make(clean) && !make(cleandir)
63: .BEGIN:
64: .for A in ${XEN_MACHINE_ARCHS}
65: rm -f ${A}
66: ln -s $S/arch/${A}/include ${A}
67: .endfor
68: -rm -rf xen-ma
69: mkdir xen-ma
70: ln -s ../${XEN_BUILD} xen-ma/machine
71: .endif
72:
73: ##
74: ## (5) link settings
75: ##
76: TEXTADDR?= c0100000
77: LINKFLAGS_NORMAL= -X
78: .if (${OBJECT_FMT} == "ELF")
79: KERN_LDSCRIPT?= kern.ldscript
80: LINKFORMAT= -T $S/arch/${XEN_BUILD}/conf/${KERN_LDSCRIPT}
81: .else
82: LINKFORMAT= -z
83: .endif
84:
85: ##
86: ## (6) port specific target dependencies
87: ##
88:
89: freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h
90: svr4_sigcode.o mach_sigcode.o: assym.h
91: apmcall.o in_cksum.o pnpbioscall.o bioscall.o: assym.h
92: mptramp.o: assym.h
93: clock.o: config_time.h
94:
95: ##
96: ## (7) misc settings
97: ##
98:
99: ##
100: ## (8) config(8) generated machinery
101: ##
102: %INCLUDES
103:
104: %OBJS
105:
106: %CFILES
107:
108: %SFILES
109:
110: %LOAD
111:
112: %RULES
113:
114: ##
115: ## (9) port independent kernel machinery
116: ##
117: .include "$S/conf/Makefile.kern.inc"
118:
119: ##
120: ## (10) Appending make options.
121: ##
122: %MAKEOPTIONSAPPEND
CVSweb <webmaster@jp.NetBSD.org>