]> git.saurik.com Git - apple/xnu.git/blame - pexpert/conf/Makefile.template
xnu-2422.1.72.tar.gz
[apple/xnu.git] / pexpert / conf / Makefile.template
CommitLineData
1c79356b
A
1#
2# Mach Operating System
3# Copyright (c) 1986 Carnegie-Mellon University
4# All rights reserved. The CMU software License Agreement specifies
5# the terms and conditions for use and redistribution.
6#
7
1c79356b
A
8export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
9export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
10export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
11export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
12
13include $(MakeInc_cmd)
14include $(MakeInc_def)
15
16#
b0d623f7 17# CFLAGS
1c79356b 18#
39236c6e
A
19CFLAGS+= -include meta_features.h -DPEXPERT_KERNEL_PRIVATE
20
21# Objects that don't want -Wcast-align warning (8474835)
22pe_identify_machine.o_CWARNFLAGS_ADD = -Wno-cast-align
1c79356b
A
23
24#
25# Directories for mig generated files
26#
27COMP_SUBDIRS =
28
29#
30# Make sure we don't remove this by accident if interrupted at the wrong
31# time.
32#
33.PRECIOUS: Makefile
34
1c79356b
A
35#
36# Theses macros are filled in by the config program depending on the
37# current configuration. The MACHDEP macro is replaced by the
38# contents of the machine dependent makefile template and the others
39# are replaced by the corresponding symbol definitions for the
40# configuration.
41#
42
43%OBJS
44
45%CFILES
46
1c79356b
A
47%SFILES
48
1c79356b
A
49%MACHDEP
50
51#
52# OBJSDEPS is the set of files (defined in the machine dependent
53# template if necessary) which all objects depend on (such as an
54# in-line assembler expansion filter)
55#
56${OBJS}: ${OBJSDEPS}
57
1c79356b
A
58LDOBJS = $(OBJS)
59
6d2010ae 60$(COMPONENT).filelist: $(LDOBJS)
b0d623f7
A
61 @echo LDFILELIST $(COMPONENT)
62 $(_v)( for obj in ${LDOBJS}; do \
39236c6e 63 echo $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
6d2010ae 64 done; ) > $(COMPONENT).filelist
1c79356b 65
6d2010ae 66do_all: $(COMPONENT).filelist
1c79356b 67
39236c6e 68do_build_all:: do_all
1c79356b
A
69
70%RULES
71
1c79356b
A
72include $(MakeInc_rule)
73include $(MakeInc_dir)