]>
Commit | Line | Data |
---|---|---|
1c79356b A |
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 | |
5 | ||
b0d623f7 A |
6 | export dp_backing_file.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 |
7 | export ubc_subr.o_CFLAGS_ADD=-Wno-discard-qual -Wshorten-64-to-32 | |
8 | export vnode_pager.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
9 | export vm_unix.o_CFLAGS_ADD=-Werror -Wshorten-64-to-32 | |
10 | ||
91447636 | 11 | export if_mib.o_CFLAGS_ADD=-Wno-unused-parameter |
2d21ac55 A |
12 | export adsp_Write.o_CFLAGS_ADD=-Wno-sign-compare |
13 | export adsp_Packet.o_CFLAGS_ADD=-Wno-sign-compare | |
14 | export adsp_Control.o_CFLAGS_ADD=-Wno-sign-compare | |
15 | export adsp_RxAttn.o_CFLAGS_ADD=-Wno-sign-compare | |
16 | export adsp_attention.o_CFLAGS_ADD=-Wno-sign-compare | |
17 | export asp_proto.o_CFLAGS_ADD=-Wno-sign-compare | |
18 | export drv_dep.o_CFLAGS_ADD=-Wno-sign-compare | |
19 | export ddp_rtmp.o_CFLAGS_ADD=-Wno-sign-compare | |
20 | export ddp_lap.o_CFLAGS_ADD=-Wno-sign-compare | |
21 | export radix.o_CFLAGS_ADD=-Wno-sign-compare | |
22 | export route.o_CFLAGS_ADD=-Wno-sign-compare | |
23 | export rtsock.o_CFLAGS_ADD=-Wno-sign-compare | |
24 | export dhcp_options.o_CFLAGS_ADD=-Wno-sign-compare | |
25 | export igmp.o_CFLAGS_ADD=-Wno-sign-compare | |
26 | export in_cksum.o_CFLAGS_ADD=-Wno-sign-compare | |
27 | export ip_divert.o_CFLAGS_ADD=-Wno-sign-compare | |
28 | export ip_dummynet.o_CFLAGS_ADD=-Wno-sign-compare | |
29 | export ip_flow.o_CFLAGS_ADD=-Wno-sign-compare | |
30 | export ip_fw2.o_CFLAGS_ADD=-Wno-sign-compare | |
31 | export ip_fw2_compat.o_CFLAGS_ADD=-Wno-sign-compare | |
32 | export ip_icmp.o_CFLAGS_ADD=-Wno-sign-compare | |
33 | export ip_input.o_CFLAGS_ADD=-Wno-sign-compare | |
34 | export ip_mroute.o_CFLAGS_ADD=-Wno-sign-compare | |
35 | export ip_output.o_CFLAGS_ADD=-Wno-sign-compare | |
36 | export raw_ip.o_CFLAGS_ADD=-Wno-sign-compare | |
37 | export tcp_input.o_CFLAGS_ADD=-Wno-sign-compare | |
38 | export tcp_output.o_CFLAGS_ADD=-Wno-sign-compare | |
39 | export tcp_subr.o_CFLAGS_ADD=-Wno-sign-compare | |
40 | export tcp_usrreq.o_CFLAGS_ADD=-Wno-sign-compare | |
41 | export tcp_timer.o_CFLAGS_ADD=-Wno-sign-compare | |
42 | export udp_usrreq.o_CFLAGS_ADD=-Wno-sign-compare | |
43 | export ah_input.o_CFLAGS_ADD=-Wno-sign-compare | |
44 | export ah_core.o_CFLAGS_ADD=-Wno-sign-compare | |
45 | export ah_output.o_CFLAGS_ADD=-Wno-sign-compare | |
46 | export esp_core.o_CFLAGS_ADD=-Wno-sign-compare | |
47 | export esp_input.o_CFLAGS_ADD=-Wno-sign-compare | |
48 | export esp_output.o_CFLAGS_ADD=-Wno-sign-compare | |
49 | export esp_rijndael.o_CFLAGS_ADD=-Wno-sign-compare | |
50 | export ipsec.o_CFLAGS_ADD=-Wno-sign-compare | |
51 | export dest6.o_CFLAGS_ADD=-Wno-sign-compare | |
52 | export frag6.o_CFLAGS_ADD=-Wno-sign-compare | |
53 | export icmp6.o_CFLAGS_ADD=-Wno-sign-compare | |
54 | export in6.o_CFLAGS_ADD=-Wno-sign-compare | |
55 | export in6_src.o_CFLAGS_ADD=-Wno-sign-compare | |
56 | export in6_cksum.o_CFLAGS_ADD=-Wno-sign-compare | |
57 | export ip6_fw.o_CFLAGS_ADD=-Wno-sign-compare | |
58 | export ip6_forward.o_CFLAGS_ADD=-Wno-sign-compare | |
59 | export in6_ifattach.o_CFLAGS_ADD=-Wno-sign-compare | |
60 | export ip6_input.o_CFLAGS_ADD=-Wno-sign-compare | |
61 | export ip6_mroute.o_CFLAGS_ADD=-Wno-sign-compare | |
62 | export ip6_output.o_CFLAGS_ADD=-Wno-sign-compare | |
63 | export ipcomp_input.o_CFLAGS_ADD=-Wno-sign-compare | |
64 | export ipcomp_output.o_CFLAGS_ADD=-Wno-sign-compare | |
65 | export in6_proto.o_CFLAGS_ADD=-Wno-sign-compare | |
66 | export mld6.o_CFLAGS_ADD=-Wno-sign-compare | |
67 | export nd6.o_CFLAGS_ADD=-Wno-sign-compare | |
68 | export nd6_nbr.o_CFLAGS_ADD=-Wno-sign-compare | |
69 | export nd6_rtr.o_CFLAGS_ADD=-Wno-sign-compare | |
70 | export raw_ip6.o_CFLAGS_ADD=-Wno-sign-compare | |
71 | export route6.o_CFLAGS_ADD=-Wno-sign-compare | |
72 | export scope6.o_CFLAGS_ADD=-Wno-sign-compare | |
73 | export udp6_usrreq.o_CFLAGS_ADD=-Wno-sign-compare | |
74 | export key.o_CFLAGS_ADD=-Wno-sign-compare | |
75 | export keysock.o_CFLAGS_ADD=-Wno-sign-compare | |
76 | export atp_write.o_CFLAGS_ADD=-Wno-sign-compare | |
77 | export keydb.o_CFLAGS_ADD=-Wno-sign-compare | |
78 | export des_setkey.o_CFLAGS_ADD=-Wno-sign-compare | |
79 | export sys_socket.o_CFLAGS_ADD=-Wno-sign-compare | |
80 | export sys_glue.o_CFLAGS_ADD=-Wno-sign-compare | |
81 | export uipc_domain.o_CFLAGS_ADD=-Wno-sign-compare | |
82 | export uipc_mbuf.o_CFLAGS_ADD=-Wno-sign-compare | |
83 | export uipc_mbuf2.o_CFLAGS_ADD=-Wno-sign-compare | |
84 | export uipc_socket.o_CFLAGS_ADD=-Wno-sign-compare | |
85 | export uipc_socket2.o_CFLAGS_ADD=-Wno-sign-compare | |
1c79356b A |
86 | |
87 | include $(MakeInc_cmd) | |
88 | include $(MakeInc_def) | |
89 | ||
90 | SETUP_SUBDIRS = \ | |
91 | tools | |
92 | ||
93 | COMP_SUBDIRS = | |
94 | ||
95 | INST_SUBDIRS = | |
96 | ||
97 | ifndef BSD_KERNEL_CONFIG | |
98 | export BSD_KERNEL_CONFIG = $(KERNEL_CONFIG) | |
99 | endif | |
100 | ||
2d21ac55 A |
101 | ifneq ($(MACHINE_CONFIG), DEFAULT) |
102 | export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)_$(MACHINE_CONFIG)/$(COMPONENT) | |
103 | else | |
55e303ae | 104 | export COMPOBJROOT=$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT) |
2d21ac55 | 105 | endif |
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 | 127 | do_setup_conf: $(COMPOBJROOT)/doconf \ |
1c79356b A |
128 | $(COMPOBJROOT)/$(BSD_KERNEL_CONFIG)/Makefile |
129 | ||
130 | do_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 | |
140 | do_build_all: do_all | |
141 | ||
142 | include $(MakeInc_rule) | |
143 | include $(MakeInc_dir) |