xref: /xnu-12377.81.4/security/conf/Makefile.template (revision 043036a2b3718f7f0be807e2870f8f47d3fa0796)
1*043036a2SApple OSS Distributions#
2*043036a2SApple OSS Distributions# Mach Operating System
3*043036a2SApple OSS Distributions# Copyright (c) 1986 Carnegie-Mellon University
4*043036a2SApple OSS Distributions# All rights reserved.  The CMU software License Agreement specifies
5*043036a2SApple OSS Distributions# the terms and conditions for use and redistribution.
6*043036a2SApple OSS Distributions#
7*043036a2SApple OSS Distributions
8*043036a2SApple OSS Distributionsexport MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
9*043036a2SApple OSS Distributionsexport MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
10*043036a2SApple OSS Distributionsexport MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
11*043036a2SApple OSS Distributionsexport MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
12*043036a2SApple OSS Distributions
13*043036a2SApple OSS Distributionsinclude $(MakeInc_cmd)
14*043036a2SApple OSS Distributionsinclude $(MakeInc_def)
15*043036a2SApple OSS Distributions
16*043036a2SApple OSS Distributions#
17*043036a2SApple OSS Distributions# XXX: CFLAGS
18*043036a2SApple OSS Distributions#
19*043036a2SApple OSS DistributionsCFLAGS+= -include meta_features.h -DBSD_KERNEL_PRIVATE
20*043036a2SApple OSS DistributionsSFLAGS+= -include meta_features.h
21*043036a2SApple OSS Distributions
22*043036a2SApple OSS Distributions#
23*043036a2SApple OSS Distributions# INCFLAGS to include security prototypes
24*043036a2SApple OSS Distributions#
25*043036a2SApple OSS DistributionsINCFLAGS_MAKEFILE= -I$(SOURCE)/..
26*043036a2SApple OSS Distributions
27*043036a2SApple OSS Distributions#
28*043036a2SApple OSS Distributions# Directories for mig generated files
29*043036a2SApple OSS Distributions#
30*043036a2SApple OSS DistributionsCOMP_SUBDIRS =
31*043036a2SApple OSS Distributions
32*043036a2SApple OSS Distributions#
33*043036a2SApple OSS Distributions#  Make sure we don't remove this by accident if interrupted at the wrong
34*043036a2SApple OSS Distributions#  time.
35*043036a2SApple OSS Distributions#
36*043036a2SApple OSS Distributions.PRECIOUS: Makefile
37*043036a2SApple OSS Distributions
38*043036a2SApple OSS Distributions#
39*043036a2SApple OSS Distributions#  Theses macros are filled in by the config program depending on the
40*043036a2SApple OSS Distributions#  current configuration.  The MACHDEP macro is replaced by the
41*043036a2SApple OSS Distributions#  contents of the machine dependent makefile template and the others
42*043036a2SApple OSS Distributions#  are replaced by the corresponding symbol definitions for the
43*043036a2SApple OSS Distributions#  configuration.
44*043036a2SApple OSS Distributions#
45*043036a2SApple OSS Distributions
46*043036a2SApple OSS Distributions%OBJS
47*043036a2SApple OSS Distributions
48*043036a2SApple OSS Distributions%LIBOBJS
49*043036a2SApple OSS Distributions
50*043036a2SApple OSS Distributions%CFILES
51*043036a2SApple OSS Distributions
52*043036a2SApple OSS Distributions%CXXFILES
53*043036a2SApple OSS Distributions
54*043036a2SApple OSS Distributions%SFILES
55*043036a2SApple OSS Distributions
56*043036a2SApple OSS Distributions%MACHDEP
57*043036a2SApple OSS Distributions
58*043036a2SApple OSS Distributions#
59*043036a2SApple OSS Distributions# Diagnostic opt-outs.  We need to make this list empty.
60*043036a2SApple OSS Distributions#
61*043036a2SApple OSS Distributions# DO NOT ADD MORE HERE.
62*043036a2SApple OSS Distributions#
63*043036a2SApple OSS Distributions# -Wno-cast-align
64*043036a2SApple OSS Distributionsmac_base.o_CWARNFLAGS_ADD += -Wno-cast-align
65*043036a2SApple OSS Distributions# -Wno-shorten-64-to-32
66*043036a2SApple OSS Distributionsmac_audit.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
67*043036a2SApple OSS Distributionsmac_base.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
68*043036a2SApple OSS Distributionsmac_process.o_CWARNFLAGS_ADD += -Wno-shorten-64-to-32
69*043036a2SApple OSS Distributions# -Wno-sign-conversion
70*043036a2SApple OSS Distributionsmac_base.o_CWARNFLAGS_ADD += -Wno-sign-conversion
71*043036a2SApple OSS Distributionsmac_mach.o_CWARNFLAGS_ADD += -Wno-sign-conversion
72*043036a2SApple OSS Distributionsmac_vfs.o_CWARNFLAGS_ADD += -Wno-sign-conversion
73*043036a2SApple OSS Distributionsmac_vfs_subr.o_CWARNFLAGS_ADD += -Wno-sign-conversion
74*043036a2SApple OSS Distributions
75*043036a2SApple OSS Distributions# Rebuild if per-file overrides change
76*043036a2SApple OSS Distributions${OBJS}: $(firstword $(MAKEFILE_LIST))
77*043036a2SApple OSS Distributions
78*043036a2SApple OSS Distributions# Rebuild if global compile flags change
79*043036a2SApple OSS Distributions$(COBJS): .CFLAGS
80*043036a2SApple OSS Distributions.CFLAGS: ALWAYS
81*043036a2SApple OSS Distributions	$(_v)$(REPLACECONTENTS) $@ $(KCC) $(CFLAGS) $(INCFLAGS)
82*043036a2SApple OSS Distributions$(CXXOBJS): .CXXFLAGS
83*043036a2SApple OSS Distributions.CXXFLAGS: ALWAYS
84*043036a2SApple OSS Distributions	$(_v)$(REPLACECONTENTS) $@ $(KC++) $(CXXFLAGS) $(INCFLAGS)
85*043036a2SApple OSS Distributions$(SOBJS): .SFLAGS
86*043036a2SApple OSS Distributions.SFLAGS: ALWAYS
87*043036a2SApple OSS Distributions	$(_v)$(REPLACECONTENTS) $@ $(S_KCC) $(SFLAGS) $(INCFLAGS)
88*043036a2SApple OSS Distributions
89*043036a2SApple OSS Distributions$(COMPONENT).filelist: $(OBJS)
90*043036a2SApple OSS Distributions	@$(LOG_LDFILELIST) "$(COMPONENT)"
91*043036a2SApple OSS Distributions	$(_v)for obj in ${OBJS}; do	\
92*043036a2SApple OSS Distributions		 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
93*043036a2SApple OSS Distributions	done > $(COMPONENT).filelist
94*043036a2SApple OSS Distributions
95*043036a2SApple OSS Distributionsifeq ($(XNU_LibAllFiles),1)
96*043036a2SApple OSS DistributionsLIBOBJS := $(OBJS)
97*043036a2SApple OSS Distributionsendif
98*043036a2SApple OSS Distributions
99*043036a2SApple OSS Distributions$(COMPONENT).libfilelist: $(LIBOBJS)
100*043036a2SApple OSS Distributions	@$(LOG_LDFILELIST) "lib$(COMPONENT)"
101*043036a2SApple OSS Distributions	$(_v)for obj in ${LIBOBJS}; do	\
102*043036a2SApple OSS Distributions		 $(ECHO) $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
103*043036a2SApple OSS Distributions	done > $(COMPONENT).libfilelist
104*043036a2SApple OSS Distributions
105*043036a2SApple OSS Distributionsifeq ($(RC_ProjectName),xnu_libraries)
106*043036a2SApple OSS Distributionsdo_all: $(COMPONENT).libfilelist
107*043036a2SApple OSS Distributionselse
108*043036a2SApple OSS Distributionsdo_all: $(COMPONENT).filelist
109*043036a2SApple OSS Distributionsendif
110*043036a2SApple OSS Distributions
111*043036a2SApple OSS Distributionsdo_build_all:: do_all
112*043036a2SApple OSS Distributions
113*043036a2SApple OSS Distributions%RULES
114*043036a2SApple OSS Distributions
115*043036a2SApple OSS Distributionsinclude $(MakeInc_rule)
116*043036a2SApple OSS Distributionsinclude $(MakeInc_dir)
117