]> git.saurik.com Git - apple/xnu.git/blame - bsd/conf/Makefile
xnu-792.21.3.tar.gz
[apple/xnu.git] / bsd / 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
91447636
A
6export vnode_pager.o_CFLAGS_ADD=-Werror
7export vm_unix.o_CFLAGS_ADD=-Werror
8export dp_backing_file.o_CFLAGS_ADD=-Werror
9export if_mib.o_CFLAGS_ADD=-Wno-unused-parameter
1c79356b
A
10
11include $(MakeInc_cmd)
12include $(MakeInc_def)
13
14SETUP_SUBDIRS = \
15 tools
16
17COMP_SUBDIRS =
18
19INST_SUBDIRS =
20
21ifndef BSD_KERNEL_CONFIG
22export BSD_KERNEL_CONFIG = $(KERNEL_CONFIG)
23endif
24
55e303ae 25export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)
1c79356b
A
26
27$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf:
28 make build_setup
29
30$(COMPOBJROOT)/$(BSD_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) \
1c79356b
A
36 $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf
37 @echo "Running doconf for $(BSD_KERNEL_CONFIG)";
38 (doconf_target=$(addsuffix /conf, $(TARGET)); \
39 echo $${doconf_target};\
40 $(MKDIR) $${doconf_target}; \
41 cd $${doconf_target}; \
42 rm -f $(notdir $?); \
43 cp $? $${doconf_target}; \
0b4e3aa0 44 $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf -c -cpu $(ARCH_CONFIG_LC) -d $(TARGET)/$(BSD_KERNEL_CONFIG) $(BSD_KERNEL_CONFIG); \
1c79356b
A
45 );
46
47.ORDER: $(COMPOBJROOT)/$(BSD_KERNEL_CONFIG)/Makefile
48
49do_setup_conf: $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf \
50 $(COMPOBJROOT)/$(BSD_KERNEL_CONFIG)/Makefile
51
52do_all: do_setup_conf
53 @echo "[ $(SOURCE) ] Starting do_all $(COMPONENT) $(BSD_KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"; \
1c79356b 54 next_source=$(subst conf/,,$(SOURCE)); \
9bccf70c
A
55 ${MAKE} -C $(COMPOBJROOT)/$(BSD_KERNEL_CONFIG) \
56 MAKEFILES=$(TARGET)/$(BSD_KERNEL_CONFIG)/Makefile \
1c79356b
A
57 SOURCE=$${next_source} \
58 TARGET=$(TARGET) \
0b4e3aa0 59 INCL_MAKEDEP=FALSE \
55e303ae 60 KERNEL_CONFIG=$(BSD_KERNEL_CONFIG) \
9bccf70c 61 build_all; \
1c79356b
A
62 echo "[ $(SOURCE) ] Returning do_all $(COMPONENT) $(BSD_KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)";
63
64do_build_all: do_all
65
66include $(MakeInc_rule)
67include $(MakeInc_dir)