]> git.saurik.com Git - apple/xnu.git/blob - pexpert/conf/Makefile.template
xnu-2422.1.72.tar.gz
[apple/xnu.git] / pexpert / conf / Makefile.template
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
8 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
9 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
10 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
11 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
12
13 include $(MakeInc_cmd)
14 include $(MakeInc_def)
15
16 #
17 # CFLAGS
18 #
19 CFLAGS+= -include meta_features.h -DPEXPERT_KERNEL_PRIVATE
20
21 # Objects that don't want -Wcast-align warning (8474835)
22 pe_identify_machine.o_CWARNFLAGS_ADD = -Wno-cast-align
23
24 #
25 # Directories for mig generated files
26 #
27 COMP_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
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
47 %SFILES
48
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
58 LDOBJS = $(OBJS)
59
60 $(COMPONENT).filelist: $(LDOBJS)
61 @echo LDFILELIST $(COMPONENT)
62 $(_v)( for obj in ${LDOBJS}; do \
63 echo $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
64 done; ) > $(COMPONENT).filelist
65
66 do_all: $(COMPONENT).filelist
67
68 do_build_all:: do_all
69
70 %RULES
71
72 include $(MakeInc_rule)
73 include $(MakeInc_dir)