]> git.saurik.com Git - apple/xnu.git/blame - iokit/conf/Makefile
xnu-1504.3.12.tar.gz
[apple/xnu.git] / iokit / 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
6
7include $(MakeInc_cmd)
8include $(MakeInc_def)
9
10SETUP_SUBDIRS = \
11 tools
12
13COMP_SUBDIRS =
14
15INST_SUBDIRS =
16
17ifndef IOKIT_KERNEL_CONFIG
18export IOKIT_KERNEL_CONFIG = $(KERNEL_CONFIG)
19endif
20
2d21ac55
A
21ifneq ($(MACHINE_CONFIG), DEFAULT)
22export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)
23else
55e303ae 24export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)
2d21ac55 25endif
1c79356b 26
2d21ac55
A
27$(COMPOBJROOT)/doconf:
28 @make build_setup
1c79356b
A
29
30$(COMPOBJROOT)/$(IOKIT_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \
0b4e3aa0 31 $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \
1c79356b 32 $(SOURCE)/Makefile.template \
0b4e3aa0 33 $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \
1c79356b 34 $(SOURCE)/files \
0b4e3aa0 35 $(SOURCE)/files.$(ARCH_CONFIG_LC) \
2d21ac55
A
36 $(COMPOBJROOT)/doconf
37 $(_v)(doconf_target=$(addsuffix /conf, $(TARGET)); \
1c79356b
A
38 $(MKDIR) $${doconf_target}; \
39 cd $${doconf_target}; \
40 rm -f $(notdir $?); \
41 cp $? $${doconf_target}; \
2d21ac55 42 $(COMPOBJROOT)/doconf -c -cpu $(ARCH_CONFIG_LC) -d $(TARGET)/$(IOKIT_KERNEL_CONFIG) $(IOKIT_KERNEL_CONFIG); \
1c79356b
A
43 );
44
45.ORDER: $(COMPOBJROOT)/$(IOKIT_KERNEL_CONFIG)/Makefile
46
2d21ac55 47do_setup_conf: $(COMPOBJROOT)/doconf \
1c79356b
A
48 $(COMPOBJROOT)/$(IOKIT_KERNEL_CONFIG)/Makefile
49
50do_all: do_setup_conf
2d21ac55 51 $(_v)next_source=$(subst conf/,,$(SOURCE)); \
9bccf70c
A
52 ${MAKE} -C $(COMPOBJROOT)/$(IOKIT_KERNEL_CONFIG) \
53 MAKEFILES=$(TARGET)/$(IOKIT_KERNEL_CONFIG)/Makefile \
1c79356b
A
54 SOURCE=$${next_source} \
55 TARGET=$(TARGET) \
0b4e3aa0 56 INCL_MAKEDEP=FALSE \
55e303ae 57 KERNEL_CONFIG=$(IOKIT_KERNEL_CONFIG) \
2d21ac55 58 build_all;
1c79356b
A
59
60do_build_all: do_all
61
62include $(MakeInc_rule)
63include $(MakeInc_dir)