]> git.saurik.com Git - apple/xnu.git/blame - osfmk/conf/Makefile
xnu-2422.1.72.tar.gz
[apple/xnu.git] / osfmk / conf / Makefile
CommitLineData
1c79356b
A
1export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
1c79356b
A
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
39236c6e
A
9MASTER_CPU_PER_SOC = $(SOURCE)/MASTER.$(CURRENT_ARCH_CONFIG_LC).$(CURRENT_MACHINE_CONFIG_LC)
10
11$(TARGET)/$(CURRENT_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \
12 $(SOURCE)/MASTER.$(CURRENT_ARCH_CONFIG_LC) \
13 $(SOURCE)/Makefile.template \
14 $(SOURCE)/Makefile.$(CURRENT_ARCH_CONFIG_LC) \
15 $(SOURCE)/files \
16 $(SOURCE)/files.$(CURRENT_ARCH_CONFIG_LC)
17 $(_v)$(MKDIR) $(addsuffix /conf, $(TARGET)); \
18 cd $(addsuffix /conf, $(TARGET)); \
1c79356b 19 rm -f $(notdir $?); \
39236c6e
A
20 cp $? .; \
21 if [ $(MASTER_CPU_PER_SOC) -nt $@ ]; then cp $(MASTER_CPU_PER_SOC) .; fi; \
22 $(SRCROOT)/SETUP/config/doconf -c -cpu $(CURRENT_ARCH_CONFIG_LC) -soc $(CURRENT_MACHINE_CONFIG_LC) -d $(TARGET)/$(CURRENT_KERNEL_CONFIG) $(CURRENT_KERNEL_CONFIG);
23
24do_all: $(TARGET)/$(CURRENT_KERNEL_CONFIG)/Makefile
25 $(_v)${MAKE} \
26 -C $(TARGET)/$(CURRENT_KERNEL_CONFIG) \
27 -f $(TARGET)/$(CURRENT_KERNEL_CONFIG)/Makefile \
28 CURRENT_KERNEL_CONFIG=${CURRENT_KERNEL_CONFIG} \
29 CURRENT_ARCH_CONFIG=${CURRENT_ARCH_CONFIG} \
30 CURRENT_MACHINE_CONFIG=${CURRENT_MACHINE_CONFIG} \
31 SOURCE=$(subst conf/,,$(SOURCE)) \
32 TARGET=${TARGET} \
33 OBJPATH=${OBJPATH} \
2d21ac55 34 build_all;
1c79356b 35
39236c6e 36do_build_all:: do_all
1c79356b
A
37
38include $(MakeInc_rule)
39include $(MakeInc_dir)