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
16 ifndef OSFMK_KERNEL_CONFIG
17 export OSFMK_KERNEL_CONFIG = $(KERNEL_CONFIG)
20 ifneq ($(MACHINE_CONFIG), DEFAULT)
21 export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)
23 export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)
26 $(COMPOBJROOT)/doconf:
29 $(COMPOBJROOT)/$(OSFMK_KERNEL_CONFIG)/Makefile: $(SOURCE)/MASTER \
30 $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \
31 $(SOURCE)/Makefile.template \
32 $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \
34 $(SOURCE)/files.$(ARCH_CONFIG_LC) \
36 $(_v)(doconf_target=$(addsuffix /conf, $(TARGET)); \
37 $(MKDIR) $${doconf_target}; \
38 cd $${doconf_target}; \
40 cp $? $${doconf_target}; \
41 $(COMPOBJROOT)/doconf -c -cpu $(ARCH_CONFIG_LC) -d $(TARGET)/$(OSFMK_KERNEL_CONFIG) $(OSFMK_KERNEL_CONFIG); \
44 $(COMPOBJROOT)/$(OSFMK_KERNEL_CONFIG)/platforms.h: $(COMPOBJROOT)/$(OSFMK_KERNEL_CONFIG)/Makefile
45 $(_v)(cd $(COMPOBJROOT)/$(OSFMK_KERNEL_CONFIG); \
47 ${LN} cputypes.h $@; \
50 do_setup_conf: $(COMPOBJROOT)/doconf \
51 $(COMPOBJROOT)/$(OSFMK_KERNEL_CONFIG)/Makefile \
52 $(COMPOBJROOT)/$(OSFMK_KERNEL_CONFIG)/platforms.h
55 $(_v)next_source=$(subst conf/,,$(SOURCE)); \
56 ${MAKE} -C $(COMPOBJROOT)/$(OSFMK_KERNEL_CONFIG) \
57 MAKEFILES=$(TARGET)/$(OSFMK_KERNEL_CONFIG)/Makefile \
58 SOURCE=$${next_source} \
61 KERNEL_CONFIG=$(OSFMK_KERNEL_CONFIG) \
66 include $(MakeInc_rule)
67 include $(MakeInc_dir)