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