]> git.saurik.com Git - apple/xnu.git/blame - security/conf/Makefile
xnu-1228.tar.gz
[apple/xnu.git] / security / conf / Makefile
CommitLineData
2d21ac55
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 SECURITY_KERNEL_CONFIG
18export SECURITY_KERNEL_CONFIG = $(KERNEL_CONFIG)
19endif
20
21ifneq ($(MACHINE_CONFIG), DEFAULT)
22export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)
23else
24export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)
25endif
26
27$(COMPOBJROOT)/doconf:
28 @make build_setup
29
30$(COMPOBJROOT)/$(SECURITY_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \
31 $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \
32 $(SOURCE)/Makefile.template \
33 $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \
34 $(SOURCE)/files \
35 $(SOURCE)/files.$(ARCH_CONFIG_LC) \
36 $(COMPOBJROOT)/doconf
37 $(_v)(doconf_target=$(addsuffix /conf, $(TARGET)); \
38 echo $${doconf_target};\
39 $(MKDIR) $${doconf_target}; \
40 cd $${doconf_target}; \
41 rm -f $(notdir $?); \
42 cp $? $${doconf_target}; \
43 $(COMPOBJROOT)/doconf -c -cpu $(ARCH_CONFIG_LC) -d $(TARGET)/$(SECURITY_KERNEL_CONFIG) $(SECURITY_KERNEL_CONFIG); \
44 );
45
46.ORDER: $(COMPOBJROOT)/$(SECURITY_KERNEL_CONFIG)/Makefile
47
48do_setup_conf: $(COMPOBJROOT)/doconf \
49 $(COMPOBJROOT)/$(SECURITY_KERNEL_CONFIG)/Makefile
50
51do_all: do_setup_conf
52 $(_v)next_source=$(subst conf/,,$(SOURCE)); \
53 ${MAKE} -C $(COMPOBJROOT)/$(SECURITY_KERNEL_CONFIG) \
54 MAKEFILES=$(TARGET)/$(SECURITY_KERNEL_CONFIG)/Makefile \
55 SOURCE=$${next_source} \
56 TARGET=$(TARGET) \
57 INCL_MAKEDEP=FALSE \
58 KERNEL_CONFIG=$(SECURITY_KERNEL_CONFIG) \
59 build_all;
60
61do_build_all: do_all
62
63include $(MakeInc_rule)
64include $(MakeInc_dir)