]> git.saurik.com Git - apple/xnu.git/blob - pexpert/conf/Makefile
xnu-2422.1.72.tar.gz
[apple/xnu.git] / pexpert / conf / Makefile
1 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6 include $(MakeInc_cmd)
7 include $(MakeInc_def)
8
9 MASTER_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)); \
19 rm -f $(notdir $?); \
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
24 do_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} \
34 build_all;
35
36 do_build_all:: do_all
37
38 include $(MakeInc_rule)
39 include $(MakeInc_dir)