]> git.saurik.com Git - apple/xnu.git/blame - security/conf/Makefile.template
xnu-7195.60.75.tar.gz
[apple/xnu.git] / security / conf / Makefile.template
CommitLineData
2d21ac55
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
2d21ac55
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#
17# XXX: CFLAGS
18#
39236c6e 19CFLAGS+= -include meta_features.h -DBSD_KERNEL_PRIVATE
5ba3f43e 20SFLAGS+= -include meta_features.h
39236c6e 21
2d21ac55 22#
39236c6e 23# INCFLAGS to include security prototypes
2d21ac55 24#
39236c6e 25INCFLAGS_MAKEFILE= -I$(SOURCE)/..
2d21ac55 26
39236c6e
A
27#
28# Directories for mig generated files
29#
39037602 30COMP_SUBDIRS =
2d21ac55 31
39236c6e 32#
2d21ac55
A
33# Make sure we don't remove this by accident if interrupted at the wrong
34# time.
35#
36.PRECIOUS: Makefile
37
2d21ac55
A
38#
39# Theses macros are filled in by the config program depending on the
40# current configuration. The MACHDEP macro is replaced by the
41# contents of the machine dependent makefile template and the others
42# are replaced by the corresponding symbol definitions for the
43# configuration.
44#
45
46%OBJS
47
48%CFILES
49
fe8ab488
A
50%CXXFILES
51
2d21ac55
A
52%SFILES
53
2d21ac55
A
54%MACHDEP
55
f427ee49
A
56#
57# Diagnostic opt-outs. We need to make this list empty.
58#
59# DO NOT ADD MORE HERE.
60#
61# -Wno-cast-align
62mac_base.o_CFLAGS_ADD += -Wno-cast-align
63# -Wno-shorten-64-to-32
64mac_audit.o_CFLAGS_ADD += -Wno-shorten-64-to-32
65mac_base.o_CFLAGS_ADD += -Wno-shorten-64-to-32
66mac_process.o_CFLAGS_ADD += -Wno-shorten-64-to-32
67# -Wno-sign-conversion
68mac_base.o_CFLAGS_ADD += -Wno-sign-conversion
69mac_mach.o_CFLAGS_ADD += -Wno-sign-conversion
70mac_vfs.o_CFLAGS_ADD += -Wno-sign-conversion
71mac_vfs_subr.o_CFLAGS_ADD += -Wno-sign-conversion
72
fe8ab488
A
73# Rebuild if per-file overrides change
74${OBJS}: $(firstword $(MAKEFILE_LIST))
75
76# Rebuild if global compile flags change
77$(COBJS): .CFLAGS
78.CFLAGS: ALWAYS
79 $(_v)$(REPLACECONTENTS) $@ $(KCC) $(CFLAGS) $(INCFLAGS)
80$(CXXOBJS): .CXXFLAGS
81.CXXFLAGS: ALWAYS
82 $(_v)$(REPLACECONTENTS) $@ $(KC++) $(CXXFLAGS) $(INCFLAGS)
83$(SOBJS): .SFLAGS
84.SFLAGS: ALWAYS
85 $(_v)$(REPLACECONTENTS) $@ $(S_KCC) $(SFLAGS) $(INCFLAGS)
86
87$(COMPONENT).filelist: $(OBJS)
f427ee49 88 @$(LOG_LDFILELIST) "$(COMPONENT)"
3e170ce0 89 $(_v)for obj in ${OBJS}; do \
cb323159 90 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
3e170ce0 91 done > $(COMPONENT).filelist
2d21ac55 92
6d2010ae 93do_all: $(COMPONENT).filelist
2d21ac55 94
39236c6e 95do_build_all:: do_all
2d21ac55 96
2d21ac55
A
97%RULES
98
99include $(MakeInc_rule)
100include $(MakeInc_dir)