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