]> git.saurik.com Git - apple/xnu.git/blame - bsd/conf/Makefile
xnu-1456.1.26.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
b0d623f7
A
6export dp_backing_file.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
7export ubc_subr.o_CFLAGS_ADD=-Wno-discard-qual -Wshorten-64-to-32
8export vnode_pager.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
9export vm_unix.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32
10
91447636 11export if_mib.o_CFLAGS_ADD=-Wno-unused-parameter
2d21ac55
A
12export adsp_Write.o_CFLAGS_ADD=-Wno-sign-compare
13export adsp_Packet.o_CFLAGS_ADD=-Wno-sign-compare
14export adsp_Control.o_CFLAGS_ADD=-Wno-sign-compare
15export adsp_RxAttn.o_CFLAGS_ADD=-Wno-sign-compare
16export adsp_attention.o_CFLAGS_ADD=-Wno-sign-compare
17export asp_proto.o_CFLAGS_ADD=-Wno-sign-compare
18export drv_dep.o_CFLAGS_ADD=-Wno-sign-compare
19export ddp_rtmp.o_CFLAGS_ADD=-Wno-sign-compare
20export ddp_lap.o_CFLAGS_ADD=-Wno-sign-compare
21export radix.o_CFLAGS_ADD=-Wno-sign-compare
22export route.o_CFLAGS_ADD=-Wno-sign-compare
23export rtsock.o_CFLAGS_ADD=-Wno-sign-compare
24export dhcp_options.o_CFLAGS_ADD=-Wno-sign-compare
25export igmp.o_CFLAGS_ADD=-Wno-sign-compare
26export in_cksum.o_CFLAGS_ADD=-Wno-sign-compare
27export ip_divert.o_CFLAGS_ADD=-Wno-sign-compare
28export ip_dummynet.o_CFLAGS_ADD=-Wno-sign-compare
29export ip_flow.o_CFLAGS_ADD=-Wno-sign-compare
30export ip_fw2.o_CFLAGS_ADD=-Wno-sign-compare
31export ip_fw2_compat.o_CFLAGS_ADD=-Wno-sign-compare
32export ip_icmp.o_CFLAGS_ADD=-Wno-sign-compare
33export ip_input.o_CFLAGS_ADD=-Wno-sign-compare
34export ip_mroute.o_CFLAGS_ADD=-Wno-sign-compare
35export ip_output.o_CFLAGS_ADD=-Wno-sign-compare
36export raw_ip.o_CFLAGS_ADD=-Wno-sign-compare
37export tcp_input.o_CFLAGS_ADD=-Wno-sign-compare
38export tcp_output.o_CFLAGS_ADD=-Wno-sign-compare
39export tcp_subr.o_CFLAGS_ADD=-Wno-sign-compare
40export tcp_usrreq.o_CFLAGS_ADD=-Wno-sign-compare
41export tcp_timer.o_CFLAGS_ADD=-Wno-sign-compare
42export udp_usrreq.o_CFLAGS_ADD=-Wno-sign-compare
43export ah_input.o_CFLAGS_ADD=-Wno-sign-compare
44export ah_core.o_CFLAGS_ADD=-Wno-sign-compare
45export ah_output.o_CFLAGS_ADD=-Wno-sign-compare
46export esp_core.o_CFLAGS_ADD=-Wno-sign-compare
47export esp_input.o_CFLAGS_ADD=-Wno-sign-compare
48export esp_output.o_CFLAGS_ADD=-Wno-sign-compare
49export esp_rijndael.o_CFLAGS_ADD=-Wno-sign-compare
50export ipsec.o_CFLAGS_ADD=-Wno-sign-compare
51export dest6.o_CFLAGS_ADD=-Wno-sign-compare
52export frag6.o_CFLAGS_ADD=-Wno-sign-compare
53export icmp6.o_CFLAGS_ADD=-Wno-sign-compare
54export in6.o_CFLAGS_ADD=-Wno-sign-compare
55export in6_src.o_CFLAGS_ADD=-Wno-sign-compare
56export in6_cksum.o_CFLAGS_ADD=-Wno-sign-compare
57export ip6_fw.o_CFLAGS_ADD=-Wno-sign-compare
58export ip6_forward.o_CFLAGS_ADD=-Wno-sign-compare
59export in6_ifattach.o_CFLAGS_ADD=-Wno-sign-compare
60export ip6_input.o_CFLAGS_ADD=-Wno-sign-compare
61export ip6_mroute.o_CFLAGS_ADD=-Wno-sign-compare
62export ip6_output.o_CFLAGS_ADD=-Wno-sign-compare
63export ipcomp_input.o_CFLAGS_ADD=-Wno-sign-compare
64export ipcomp_output.o_CFLAGS_ADD=-Wno-sign-compare
65export in6_proto.o_CFLAGS_ADD=-Wno-sign-compare
66export mld6.o_CFLAGS_ADD=-Wno-sign-compare
67export nd6.o_CFLAGS_ADD=-Wno-sign-compare
68export nd6_nbr.o_CFLAGS_ADD=-Wno-sign-compare
69export nd6_rtr.o_CFLAGS_ADD=-Wno-sign-compare
70export raw_ip6.o_CFLAGS_ADD=-Wno-sign-compare
71export route6.o_CFLAGS_ADD=-Wno-sign-compare
72export scope6.o_CFLAGS_ADD=-Wno-sign-compare
73export udp6_usrreq.o_CFLAGS_ADD=-Wno-sign-compare
74export key.o_CFLAGS_ADD=-Wno-sign-compare
75export keysock.o_CFLAGS_ADD=-Wno-sign-compare
76export atp_write.o_CFLAGS_ADD=-Wno-sign-compare
77export keydb.o_CFLAGS_ADD=-Wno-sign-compare
78export des_setkey.o_CFLAGS_ADD=-Wno-sign-compare
79export sys_socket.o_CFLAGS_ADD=-Wno-sign-compare
80export sys_glue.o_CFLAGS_ADD=-Wno-sign-compare
81export uipc_domain.o_CFLAGS_ADD=-Wno-sign-compare
82export uipc_mbuf.o_CFLAGS_ADD=-Wno-sign-compare
83export uipc_mbuf2.o_CFLAGS_ADD=-Wno-sign-compare
84export uipc_socket.o_CFLAGS_ADD=-Wno-sign-compare
85export uipc_socket2.o_CFLAGS_ADD=-Wno-sign-compare
1c79356b
A
86
87include $(MakeInc_cmd)
88include $(MakeInc_def)
89
90SETUP_SUBDIRS = \
91 tools
92
93COMP_SUBDIRS =
94
95INST_SUBDIRS =
96
97ifndef BSD_KERNEL_CONFIG
98export BSD_KERNEL_CONFIG = $(KERNEL_CONFIG)
99endif
100
2d21ac55
A
101ifneq ($(MACHINE_CONFIG), DEFAULT)
102export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT)
103else
55e303ae 104export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)
2d21ac55 105endif
1c79356b 106
2d21ac55
A
107$(COMPOBJROOT)/doconf:
108 @make build_setup
1c79356b
A
109
110$(COMPOBJROOT)/$(BSD_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \
0b4e3aa0 111 $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \
1c79356b 112 $(SOURCE)/Makefile.template \
0b4e3aa0 113 $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \
1c79356b 114 $(SOURCE)/files \
0b4e3aa0 115 $(SOURCE)/files.$(ARCH_CONFIG_LC) \
2d21ac55
A
116 $(COMPOBJROOT)/doconf
117 $(_v)(doconf_target=$(addsuffix /conf, $(TARGET)); \
1c79356b
A
118 $(MKDIR) $${doconf_target}; \
119 cd $${doconf_target}; \
120 rm -f $(notdir $?); \
121 cp $? $${doconf_target}; \
2d21ac55 122 $(COMPOBJROOT)/doconf -c -cpu $(ARCH_CONFIG_LC) -d $(TARGET)/$(BSD_KERNEL_CONFIG) $(BSD_KERNEL_CONFIG); \
1c79356b
A
123 );
124
125.ORDER: $(COMPOBJROOT)/$(BSD_KERNEL_CONFIG)/Makefile
126
2d21ac55 127do_setup_conf: $(COMPOBJROOT)/doconf \
1c79356b
A
128 $(COMPOBJROOT)/$(BSD_KERNEL_CONFIG)/Makefile
129
130do_all: do_setup_conf
2d21ac55 131 $(_v)next_source=$(subst conf/,,$(SOURCE)); \
9bccf70c
A
132 ${MAKE} -C $(COMPOBJROOT)/$(BSD_KERNEL_CONFIG) \
133 MAKEFILES=$(TARGET)/$(BSD_KERNEL_CONFIG)/Makefile \
1c79356b
A
134 SOURCE=$${next_source} \
135 TARGET=$(TARGET) \
0b4e3aa0 136 INCL_MAKEDEP=FALSE \
55e303ae 137 KERNEL_CONFIG=$(BSD_KERNEL_CONFIG) \
2d21ac55 138 build_all;
1c79356b
A
139
140do_build_all: do_all
141
142include $(MakeInc_rule)
143include $(MakeInc_dir)