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