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