source: rtems-libbsd/Makefile @ 917a78b

4.115-freebsd-12freebsd-9.3
Last change on this file since 917a78b was 917a78b, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 12, 2013 at 8:11:00 AM

DHCPCD(8): Add basic support

  • Property mode set to 100644
File size: 66.7 KB
Line 
1include config.inc
2
3RTEMS_MAKEFILE_PATH = $(PREFIX)/$(TARGET)/$(BSP)
4include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
5include $(RTEMS_CUSTOM)
6include $(PROJECT_ROOT)/make/leaf.cfg
7
8CFLAGS += -ffreestanding
9CFLAGS += -fno-common
10CFLAGS += -Irtemsbsd/include
11CFLAGS += -Irtemsbsd/$(RTEMS_CPU)/include
12CFLAGS += -Ifreebsd/sys
13CFLAGS += -Ifreebsd/sys/$(RTEMS_CPU)/include
14CFLAGS += -Ifreebsd/sys/contrib/altq
15CFLAGS += -Ifreebsd/sys/contrib/pf
16CFLAGS += -Icopied/rtemsbsd/$(RTEMS_CPU)/include
17CFLAGS += -Ifreebsd/include
18CFLAGS += -Ifreebsd/lib/libc/include
19CFLAGS += -Ifreebsd/lib/libc/isc/include
20CFLAGS += -Ifreebsd/lib/libc/resolv
21CFLAGS += -Ifreebsd/lib/libutil
22CFLAGS += -Ifreebsd/lib/libkvm
23CFLAGS += -Ifreebsd/lib/libmemstat
24CFLAGS += -Ifreebsd/lib/libipsec
25CFLAGS += -Itestsuite/include
26CFLAGS += -Wall
27CFLAGS += -Wno-format
28CFLAGS += -std=gnu99
29CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d
30NEED_DUMMY_PIC_IRQ=yes
31
32TEST_NETWORK_CONFIG = testsuite/include/rtems/bsd/test/network-config.h
33
34TESTS =
35RUN_TESTS =
36
37NET_TESTS =
38RUN_NET_TESTS =
39
40O_FILES =
41D_FILES =
42
43LIB = libbsd.a
44LIB_GEN_FILES =
45LIB_C_FILES =
46LIB_C_FILES += rtemsbsd/local/bus_if.c
47LIB_C_FILES += rtemsbsd/local/cryptodev_if.c
48LIB_C_FILES += rtemsbsd/local/device_if.c
49LIB_C_FILES += rtemsbsd/local/miibus_if.c
50LIB_C_FILES += rtemsbsd/local/pcib_if.c
51LIB_C_FILES += rtemsbsd/local/pci_if.c
52LIB_C_FILES += rtemsbsd/local/usb_if.c
53LIB_C_FILES += rtemsbsd/rtems/ipsec_get_policylen.c
54LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-assert.c
55LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-arp-processor.c
56LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-autoconf.c
57LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-bus-dma.c
58LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-bus-dma-mbuf.c
59LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-cam.c
60LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-chunk.c
61LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-condvar.c
62LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-conf.c
63LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-delay.c
64LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-get-ethernet-addr.c
65LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-get-file.c
66LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-init.c
67LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-jail.c
68LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-kern_synch.c
69LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-lock.c
70LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-log.c
71LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-malloc.c
72LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-mutex.c
73LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-newproc.c
74LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-nexus.c
75LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-panic.c
76LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-pci_bus.c
77LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-pci_cfgreg.c
78LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-program.c
79LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-rwlock.c
80LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell.c
81LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell-netcmds.c
82LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-signal.c
83LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-support.c
84LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sx.c
85LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-syscall-api.c
86LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sysctlbyname.c
87LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sysctl.c
88LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sysctlnametomib.c
89LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-thread.c
90LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-timesupport.c
91LIB_C_FILES += rtemsbsd/rtems/rtems-kvm.c
92LIB_C_FILES += rtemsbsd/rtems/rtems_mii_ioctl_kern.c
93LIB_C_FILES += rtemsbsd/rtems/rtems-net-setup.c
94LIB_C_FILES += rtemsbsd/rtems/rtems-syslog-initialize.c
95LIB_C_FILES += rtemsbsd/rtems/syslog.c
96LIB_C_FILES += rtemsbsd/ftpd/ftpd.c
97LIB_C_FILES += rtemsbsd/sys/dev/usb/controller/ehci_mpc83xx.c
98LIB_C_FILES += rtemsbsd/sys/dev/usb/controller/ohci_lpc24xx.c
99LIB_C_FILES += rtemsbsd/sys/dev/usb/controller/ohci_lpc32xx.c
100LIB_C_FILES += rtemsbsd/sys/dev/smc/if_smc_nexus.c
101LIB_C_FILES += rtemsbsd/sys/dev/ffec/if_ffec_mcf548x.c
102LIB_C_FILES += rtemsbsd/bsp/bsp-bsd-nexus-devices.c
103LIB_GEN_FILES += rtemsbsd/rtems/rtems-kvm-symbols.c
104LIB_C_FILES += rtemsbsd/rtems/rtems-kvm-symbols.c
105rtemsbsd/rtems/rtems-kvm-symbols.c: rtemsbsd/rtems/generate_kvm_symbols
106        ./$< > $@
107LIB_GEN_FILES += freebsd/lib/libc/net/nslexer.c
108LIB_C_FILES += freebsd/lib/libc/net/nslexer.c
109freebsd/lib/libc/net/nslexer.c: freebsd/lib/libc/net/nslexer.l freebsd/lib/libc/net/nsparser.c
110        ${LEX} -P _nsyy -t $< | sed -e '/YY_BUF_SIZE/s/16384/1024/' > $@
111LIB_GEN_FILES += freebsd/lib/libc/net/nsparser.c
112LIB_C_FILES += freebsd/lib/libc/net/nsparser.c
113freebsd/lib/libc/net/nsparser.c: freebsd/lib/libc/net/nsparser.y
114        yacc -b _nsyy -d -p _nsyy $<
115        sed -e /YY_BUF_SIZE/s/16384/1024/ < _nsyy.tab.c > $@
116        rm -f _nsyy.tab.c
117        mv _nsyy.tab.h freebsd/lib/libc/net/nsparser.h
118LIB_GEN_FILES += freebsd/lib/libipsec/policy_token.c
119LIB_C_FILES += freebsd/lib/libipsec/policy_token.c
120freebsd/lib/libipsec/policy_token.c: freebsd/lib/libipsec/policy_token.l freebsd/lib/libipsec/policy_parse.c
121        ${LEX} -P __libipsecyy -t $< | sed -e '/YY_BUF_SIZE/s/16384/1024/' > $@
122LIB_GEN_FILES += freebsd/lib/libipsec/policy_parse.c
123LIB_C_FILES += freebsd/lib/libipsec/policy_parse.c
124freebsd/lib/libipsec/policy_parse.c: freebsd/lib/libipsec/policy_parse.y
125        yacc -b __libipsecyy -d -p __libipsecyy $<
126        sed -e /YY_BUF_SIZE/s/16384/1024/ < __libipsecyy.tab.c > $@
127        rm -f __libipsecyy.tab.c
128        mv __libipsecyy.tab.h freebsd/lib/libipsec/y.tab.h
129LIB_C_FILES += freebsd/sys/kern/init_main.c
130LIB_C_FILES += freebsd/sys/kern/kern_event.c
131LIB_C_FILES += freebsd/sys/kern/kern_hhook.c
132LIB_C_FILES += freebsd/sys/kern/kern_intr.c
133LIB_C_FILES += freebsd/sys/kern/kern_khelp.c
134LIB_C_FILES += freebsd/sys/kern/kern_linker.c
135LIB_C_FILES += freebsd/sys/kern/kern_mbuf.c
136LIB_C_FILES += freebsd/sys/kern/kern_mib.c
137LIB_C_FILES += freebsd/sys/kern/kern_module.c
138LIB_C_FILES += freebsd/sys/kern/kern_mtxpool.c
139LIB_C_FILES += freebsd/sys/kern/kern_osd.c
140LIB_C_FILES += freebsd/sys/kern/kern_sysctl.c
141LIB_C_FILES += freebsd/sys/kern/kern_time.c
142LIB_C_FILES += freebsd/sys/kern/kern_timeout.c
143LIB_C_FILES += freebsd/sys/kern/subr_bufring.c
144LIB_C_FILES += freebsd/sys/kern/subr_bus.c
145LIB_C_FILES += freebsd/sys/kern/subr_eventhandler.c
146LIB_C_FILES += freebsd/sys/kern/subr_hash.c
147LIB_C_FILES += freebsd/sys/kern/subr_hints.c
148LIB_C_FILES += freebsd/sys/kern/subr_kobj.c
149LIB_C_FILES += freebsd/sys/kern/subr_module.c
150LIB_C_FILES += freebsd/sys/kern/subr_rman.c
151LIB_C_FILES += freebsd/sys/kern/subr_sbuf.c
152LIB_C_FILES += freebsd/sys/kern/subr_taskqueue.c
153LIB_C_FILES += freebsd/sys/kern/subr_uio.c
154LIB_C_FILES += freebsd/sys/kern/subr_unit.c
155LIB_C_FILES += freebsd/sys/kern/sys_generic.c
156LIB_C_FILES += freebsd/sys/kern/uipc_accf.c
157LIB_C_FILES += freebsd/sys/kern/uipc_domain.c
158LIB_C_FILES += freebsd/sys/kern/uipc_mbuf2.c
159LIB_C_FILES += freebsd/sys/kern/uipc_mbuf.c
160LIB_C_FILES += freebsd/sys/kern/uipc_sockbuf.c
161LIB_C_FILES += freebsd/sys/kern/uipc_socket.c
162LIB_C_FILES += freebsd/sys/kern/uipc_usrreq.c
163LIB_C_FILES += freebsd/sys/libkern/arc4random.c
164LIB_C_FILES += freebsd/sys/libkern/fls.c
165LIB_C_FILES += freebsd/sys/libkern/inet_ntoa.c
166LIB_C_FILES += freebsd/sys/libkern/random.c
167LIB_C_FILES += freebsd/sys/vm/uma_core.c
168LIB_C_FILES += freebsd/sys/kern/sys_socket.c
169LIB_C_FILES += freebsd/sys/kern/uipc_syscalls.c
170LIB_C_FILES += freebsd/sys/net/bridgestp.c
171LIB_C_FILES += freebsd/sys/net/ieee8023ad_lacp.c
172LIB_C_FILES += freebsd/sys/net/if_atmsubr.c
173LIB_C_FILES += freebsd/sys/net/if.c
174LIB_C_FILES += freebsd/sys/net/if_clone.c
175LIB_C_FILES += freebsd/sys/net/if_dead.c
176LIB_C_FILES += freebsd/sys/net/if_disc.c
177LIB_C_FILES += freebsd/sys/net/if_edsc.c
178LIB_C_FILES += freebsd/sys/net/if_ef.c
179LIB_C_FILES += freebsd/sys/net/if_enc.c
180LIB_C_FILES += freebsd/sys/net/if_epair.c
181LIB_C_FILES += freebsd/sys/net/if_faith.c
182LIB_C_FILES += freebsd/sys/net/if_fddisubr.c
183LIB_C_FILES += freebsd/sys/net/if_fwsubr.c
184LIB_C_FILES += freebsd/sys/net/if_gif.c
185LIB_C_FILES += freebsd/sys/net/if_gre.c
186LIB_C_FILES += freebsd/sys/net/if_iso88025subr.c
187LIB_C_FILES += freebsd/sys/net/if_lagg.c
188LIB_C_FILES += freebsd/sys/net/if_llatbl.c
189LIB_C_FILES += freebsd/sys/net/if_loop.c
190LIB_C_FILES += freebsd/sys/net/if_media.c
191LIB_C_FILES += freebsd/sys/net/if_mib.c
192LIB_C_FILES += freebsd/sys/net/if_spppfr.c
193LIB_C_FILES += freebsd/sys/net/if_spppsubr.c
194LIB_C_FILES += freebsd/sys/net/if_tap.c
195LIB_C_FILES += freebsd/sys/net/if_tun.c
196LIB_C_FILES += freebsd/sys/net/if_vlan.c
197LIB_C_FILES += freebsd/sys/net/pfil.c
198LIB_C_FILES += freebsd/sys/net/radix.c
199LIB_C_FILES += freebsd/sys/net/radix_mpath.c
200LIB_C_FILES += freebsd/sys/net/raw_cb.c
201LIB_C_FILES += freebsd/sys/net/raw_usrreq.c
202LIB_C_FILES += freebsd/sys/net/route.c
203LIB_C_FILES += freebsd/sys/net/rtsock.c
204LIB_C_FILES += freebsd/sys/net/slcompress.c
205LIB_C_FILES += freebsd/sys/net/bpf_buffer.c
206LIB_C_FILES += freebsd/sys/net/bpf.c
207LIB_C_FILES += freebsd/sys/net/bpf_filter.c
208LIB_C_FILES += freebsd/sys/net/bpf_jitter.c
209LIB_C_FILES += freebsd/sys/net/if_arcsubr.c
210LIB_C_FILES += freebsd/sys/net/if_bridge.c
211LIB_C_FILES += freebsd/sys/net/if_ethersubr.c
212LIB_C_FILES += freebsd/sys/net/netisr.c
213LIB_C_FILES += freebsd/sys/netinet/accf_data.c
214LIB_C_FILES += freebsd/sys/netinet/accf_dns.c
215LIB_C_FILES += freebsd/sys/netinet/accf_http.c
216LIB_C_FILES += freebsd/sys/netinet/cc/cc.c
217LIB_C_FILES += freebsd/sys/netinet/cc/cc_newreno.c
218LIB_C_FILES += freebsd/sys/netinet/if_atm.c
219LIB_C_FILES += freebsd/sys/netinet/if_ether.c
220LIB_C_FILES += freebsd/sys/netinet/igmp.c
221LIB_C_FILES += freebsd/sys/netinet/in.c
222LIB_C_FILES += freebsd/sys/netinet/in_gif.c
223LIB_C_FILES += freebsd/sys/netinet/in_mcast.c
224LIB_C_FILES += freebsd/sys/netinet/in_pcb.c
225LIB_C_FILES += freebsd/sys/netinet/in_proto.c
226LIB_C_FILES += freebsd/sys/netinet/in_rmx.c
227LIB_C_FILES += freebsd/sys/netinet/ip_carp.c
228LIB_C_FILES += freebsd/sys/netinet/ip_divert.c
229LIB_C_FILES += freebsd/sys/netinet/ip_ecn.c
230LIB_C_FILES += freebsd/sys/netinet/ip_encap.c
231LIB_C_FILES += freebsd/sys/netinet/ip_fastfwd.c
232LIB_C_FILES += freebsd/sys/netinet/ip_gre.c
233LIB_C_FILES += freebsd/sys/netinet/ip_icmp.c
234LIB_C_FILES += freebsd/sys/netinet/ip_id.c
235LIB_C_FILES += freebsd/sys/netinet/ip_input.c
236LIB_C_FILES += freebsd/sys/netinet/ip_ipsec.c
237LIB_C_FILES += freebsd/sys/netinet/ip_mroute.c
238LIB_C_FILES += freebsd/sys/netinet/ip_options.c
239LIB_C_FILES += freebsd/sys/netinet/ip_output.c
240LIB_C_FILES += freebsd/sys/netinet/raw_ip.c
241LIB_C_FILES += freebsd/sys/netinet/sctp_asconf.c
242LIB_C_FILES += freebsd/sys/netinet/sctp_auth.c
243LIB_C_FILES += freebsd/sys/netinet/sctp_bsd_addr.c
244LIB_C_FILES += freebsd/sys/netinet/sctp_cc_functions.c
245LIB_C_FILES += freebsd/sys/netinet/sctp_crc32.c
246LIB_C_FILES += freebsd/sys/netinet/sctp_indata.c
247LIB_C_FILES += freebsd/sys/netinet/sctp_input.c
248LIB_C_FILES += freebsd/sys/netinet/sctp_output.c
249LIB_C_FILES += freebsd/sys/netinet/sctp_pcb.c
250LIB_C_FILES += freebsd/sys/netinet/sctp_peeloff.c
251LIB_C_FILES += freebsd/sys/netinet/sctp_sysctl.c
252LIB_C_FILES += freebsd/sys/netinet/sctp_timer.c
253LIB_C_FILES += freebsd/sys/netinet/sctp_usrreq.c
254LIB_C_FILES += freebsd/sys/netinet/sctputil.c
255LIB_C_FILES += freebsd/sys/netinet/tcp_debug.c
256LIB_C_FILES += freebsd/sys/netinet/tcp_input.c
257LIB_C_FILES += freebsd/sys/netinet/tcp_lro.c
258LIB_C_FILES += freebsd/sys/netinet/tcp_offload.c
259LIB_C_FILES += freebsd/sys/netinet/tcp_output.c
260LIB_C_FILES += freebsd/sys/netinet/tcp_reass.c
261LIB_C_FILES += freebsd/sys/netinet/tcp_sack.c
262LIB_C_FILES += freebsd/sys/netinet/tcp_subr.c
263LIB_C_FILES += freebsd/sys/netinet/tcp_syncache.c
264LIB_C_FILES += freebsd/sys/netinet/tcp_timer.c
265LIB_C_FILES += freebsd/sys/netinet/tcp_timewait.c
266LIB_C_FILES += freebsd/sys/netinet/tcp_usrreq.c
267LIB_C_FILES += freebsd/sys/netpfil/ipfw/dn_heap.c
268LIB_C_FILES += freebsd/sys/netpfil/ipfw/dn_sched_fifo.c
269LIB_C_FILES += freebsd/sys/netpfil/ipfw/dn_sched_prio.c
270LIB_C_FILES += freebsd/sys/netpfil/ipfw/dn_sched_qfq.c
271LIB_C_FILES += freebsd/sys/netpfil/ipfw/dn_sched_rr.c
272LIB_C_FILES += freebsd/sys/netpfil/ipfw/dn_sched_wf2q.c
273LIB_C_FILES += freebsd/sys/netpfil/ipfw/ip_dn_glue.c
274LIB_C_FILES += freebsd/sys/netpfil/ipfw/ip_dn_io.c
275LIB_C_FILES += freebsd/sys/netpfil/ipfw/ip_dummynet.c
276LIB_C_FILES += freebsd/sys/netpfil/ipfw/ip_fw2.c
277LIB_C_FILES += freebsd/sys/netpfil/ipfw/ip_fw_log.c
278LIB_C_FILES += freebsd/sys/netpfil/ipfw/ip_fw_nat.c
279LIB_C_FILES += freebsd/sys/netpfil/ipfw/ip_fw_pfil.c
280LIB_C_FILES += freebsd/sys/netpfil/ipfw/ip_fw_sockopt.c
281LIB_C_FILES += freebsd/sys/netpfil/ipfw/ip_fw_table.c
282LIB_C_FILES += freebsd/sys/netinet/udp_usrreq.c
283LIB_C_FILES += freebsd/sys/netinet/libalias/alias_dummy.c
284LIB_C_FILES += freebsd/sys/netinet/libalias/alias_pptp.c
285LIB_C_FILES += freebsd/sys/netinet/libalias/alias_smedia.c
286LIB_C_FILES += freebsd/sys/netinet/libalias/alias_mod.c
287LIB_C_FILES += freebsd/sys/netinet/libalias/alias_cuseeme.c
288LIB_C_FILES += freebsd/sys/netinet/libalias/alias_nbt.c
289LIB_C_FILES += freebsd/sys/netinet/libalias/alias_irc.c
290LIB_C_FILES += freebsd/sys/netinet/libalias/alias_util.c
291LIB_C_FILES += freebsd/sys/netinet/libalias/alias_db.c
292LIB_C_FILES += freebsd/sys/netinet/libalias/alias_ftp.c
293LIB_C_FILES += freebsd/sys/netinet/libalias/alias_proxy.c
294LIB_C_FILES += freebsd/sys/netinet/libalias/alias.c
295LIB_C_FILES += freebsd/sys/netinet/libalias/alias_skinny.c
296LIB_C_FILES += freebsd/sys/netinet/libalias/alias_sctp.c
297LIB_C_FILES += freebsd/sys/net/if_stf.c
298LIB_C_FILES += freebsd/sys/netinet6/dest6.c
299LIB_C_FILES += freebsd/sys/netinet6/frag6.c
300LIB_C_FILES += freebsd/sys/netinet6/icmp6.c
301LIB_C_FILES += freebsd/sys/netinet6/in6.c
302LIB_C_FILES += freebsd/sys/netinet6/in6_cksum.c
303LIB_C_FILES += freebsd/sys/netinet6/in6_gif.c
304LIB_C_FILES += freebsd/sys/netinet6/in6_ifattach.c
305LIB_C_FILES += freebsd/sys/netinet6/in6_mcast.c
306LIB_C_FILES += freebsd/sys/netinet6/in6_pcb.c
307LIB_C_FILES += freebsd/sys/netinet6/in6_proto.c
308LIB_C_FILES += freebsd/sys/netinet6/in6_rmx.c
309LIB_C_FILES += freebsd/sys/netinet6/in6_src.c
310LIB_C_FILES += freebsd/sys/netinet6/ip6_forward.c
311LIB_C_FILES += freebsd/sys/netinet6/ip6_id.c
312LIB_C_FILES += freebsd/sys/netinet6/ip6_input.c
313LIB_C_FILES += freebsd/sys/netinet6/ip6_ipsec.c
314LIB_C_FILES += freebsd/sys/netinet6/ip6_mroute.c
315LIB_C_FILES += freebsd/sys/netinet6/ip6_output.c
316LIB_C_FILES += freebsd/sys/netinet6/mld6.c
317LIB_C_FILES += freebsd/sys/netinet6/nd6.c
318LIB_C_FILES += freebsd/sys/netinet6/nd6_nbr.c
319LIB_C_FILES += freebsd/sys/netinet6/nd6_rtr.c
320LIB_C_FILES += freebsd/sys/netinet6/raw_ip6.c
321LIB_C_FILES += freebsd/sys/netinet6/route6.c
322LIB_C_FILES += freebsd/sys/netinet6/scope6.c
323LIB_C_FILES += freebsd/sys/netinet6/sctp6_usrreq.c
324LIB_C_FILES += freebsd/sys/netinet6/udp6_usrreq.c
325LIB_C_FILES += freebsd/sys/netipsec/ipsec.c
326LIB_C_FILES += freebsd/sys/netipsec/ipsec_input.c
327LIB_C_FILES += freebsd/sys/netipsec/ipsec_mbuf.c
328LIB_C_FILES += freebsd/sys/netipsec/ipsec_output.c
329LIB_C_FILES += freebsd/sys/netipsec/key.c
330LIB_C_FILES += freebsd/sys/netipsec/key_debug.c
331LIB_C_FILES += freebsd/sys/netipsec/keysock.c
332LIB_C_FILES += freebsd/sys/netipsec/xform_ah.c
333LIB_C_FILES += freebsd/sys/netipsec/xform_esp.c
334LIB_C_FILES += freebsd/sys/netipsec/xform_ipcomp.c
335LIB_C_FILES += freebsd/sys/netipsec/xform_ipip.c
336LIB_C_FILES += freebsd/sys/netipsec/xform_tcp.c
337LIB_C_FILES += freebsd/sys/net80211/ieee80211_acl.c
338LIB_C_FILES += freebsd/sys/net80211/ieee80211_action.c
339LIB_C_FILES += freebsd/sys/net80211/ieee80211_adhoc.c
340LIB_C_FILES += freebsd/sys/net80211/ieee80211_ageq.c
341LIB_C_FILES += freebsd/sys/net80211/ieee80211_amrr.c
342LIB_C_FILES += freebsd/sys/net80211/ieee80211.c
343LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto.c
344LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto_ccmp.c
345LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto_none.c
346LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto_tkip.c
347LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto_wep.c
348LIB_C_FILES += freebsd/sys/net80211/ieee80211_ddb.c
349LIB_C_FILES += freebsd/sys/net80211/ieee80211_dfs.c
350LIB_C_FILES += freebsd/sys/net80211/ieee80211_freebsd.c
351LIB_C_FILES += freebsd/sys/net80211/ieee80211_hostap.c
352LIB_C_FILES += freebsd/sys/net80211/ieee80211_ht.c
353LIB_C_FILES += freebsd/sys/net80211/ieee80211_hwmp.c
354LIB_C_FILES += freebsd/sys/net80211/ieee80211_input.c
355LIB_C_FILES += freebsd/sys/net80211/ieee80211_ioctl.c
356LIB_C_FILES += freebsd/sys/net80211/ieee80211_mesh.c
357LIB_C_FILES += freebsd/sys/net80211/ieee80211_monitor.c
358LIB_C_FILES += freebsd/sys/net80211/ieee80211_node.c
359LIB_C_FILES += freebsd/sys/net80211/ieee80211_output.c
360LIB_C_FILES += freebsd/sys/net80211/ieee80211_phy.c
361LIB_C_FILES += freebsd/sys/net80211/ieee80211_power.c
362LIB_C_FILES += freebsd/sys/net80211/ieee80211_proto.c
363LIB_C_FILES += freebsd/sys/net80211/ieee80211_radiotap.c
364LIB_C_FILES += freebsd/sys/net80211/ieee80211_ratectl.c
365LIB_C_FILES += freebsd/sys/net80211/ieee80211_ratectl_none.c
366LIB_C_FILES += freebsd/sys/net80211/ieee80211_regdomain.c
367LIB_C_FILES += freebsd/sys/net80211/ieee80211_rssadapt.c
368LIB_C_FILES += freebsd/sys/net80211/ieee80211_scan.c
369LIB_C_FILES += freebsd/sys/net80211/ieee80211_scan_sta.c
370LIB_C_FILES += freebsd/sys/net80211/ieee80211_sta.c
371LIB_C_FILES += freebsd/sys/net80211/ieee80211_superg.c
372LIB_C_FILES += freebsd/sys/net80211/ieee80211_tdma.c
373LIB_C_FILES += freebsd/sys/net80211/ieee80211_wds.c
374LIB_C_FILES += freebsd/sys/net80211/ieee80211_xauth.c
375LIB_C_FILES += freebsd/sys/opencrypto/crypto.c
376LIB_C_FILES += freebsd/sys/opencrypto/deflate.c
377LIB_C_FILES += freebsd/sys/opencrypto/cryptosoft.c
378LIB_C_FILES += freebsd/sys/opencrypto/criov.c
379LIB_C_FILES += freebsd/sys/opencrypto/rmd160.c
380LIB_C_FILES += freebsd/sys/opencrypto/xform.c
381LIB_C_FILES += freebsd/sys/opencrypto/skipjack.c
382LIB_C_FILES += freebsd/sys/opencrypto/cast.c
383LIB_C_FILES += freebsd/sys/crypto/sha1.c
384LIB_C_FILES += freebsd/sys/crypto/sha2/sha2.c
385LIB_C_FILES += freebsd/sys/crypto/rijndael/rijndael-alg-fst.c
386LIB_C_FILES += freebsd/sys/crypto/rijndael/rijndael-api.c
387LIB_C_FILES += freebsd/sys/crypto/rijndael/rijndael-api-fst.c
388LIB_C_FILES += freebsd/sys/crypto/des/des_setkey.c
389LIB_C_FILES += freebsd/sys/crypto/des/des_enc.c
390LIB_C_FILES += freebsd/sys/crypto/des/des_ecb.c
391LIB_C_FILES += freebsd/sys/crypto/blowfish/bf_enc.c
392LIB_C_FILES += freebsd/sys/crypto/blowfish/bf_skey.c
393LIB_C_FILES += freebsd/sys/crypto/blowfish/bf_ecb.c
394LIB_C_FILES += freebsd/sys/crypto/rc4/rc4.c
395LIB_C_FILES += freebsd/sys/crypto/camellia/camellia-api.c
396LIB_C_FILES += freebsd/sys/crypto/camellia/camellia.c
397LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_rmclass.c
398LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_rio.c
399LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_subr.c
400LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_cdnr.c
401LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_priq.c
402LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_cbq.c
403LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_hfsc.c
404LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_red.c
405LIB_C_FILES += freebsd/sys/contrib/pf/net/if_pflog.c
406LIB_C_FILES += freebsd/sys/contrib/pf/net/if_pfsync.c
407LIB_C_FILES += freebsd/sys/contrib/pf/net/pf.c
408LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_if.c
409LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_ioctl.c
410LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_lb.c
411LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_norm.c
412LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_osfp.c
413LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_ruleset.c
414LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_table.c
415LIB_C_FILES += freebsd/sys/contrib/pf/netinet/in4_cksum.c
416LIB_C_FILES += freebsd/sys/dev/mii/mii.c
417LIB_C_FILES += freebsd/sys/dev/mii/mii_bitbang.c
418LIB_C_FILES += freebsd/sys/dev/mii/mii_physubr.c
419LIB_C_FILES += freebsd/sys/dev/mii/icsphy.c
420LIB_C_FILES += freebsd/sys/dev/mii/brgphy.c
421LIB_C_FILES += freebsd/sys/dev/tsec/if_tsec.c
422LIB_C_FILES += freebsd/sys/dev/usb/usb_busdma.c
423LIB_C_FILES += freebsd/sys/dev/usb/usb_core.c
424LIB_C_FILES += freebsd/sys/dev/usb/usb_debug.c
425LIB_C_FILES += freebsd/sys/dev/usb/usb_dev.c
426LIB_C_FILES += freebsd/sys/dev/usb/usb_device.c
427LIB_C_FILES += freebsd/sys/dev/usb/usb_dynamic.c
428LIB_C_FILES += freebsd/sys/dev/usb/usb_error.c
429LIB_C_FILES += freebsd/sys/dev/usb/usb_generic.c
430LIB_C_FILES += freebsd/sys/dev/usb/usb_handle_request.c
431LIB_C_FILES += freebsd/sys/dev/usb/usb_hid.c
432LIB_C_FILES += freebsd/sys/dev/usb/usb_hub.c
433LIB_C_FILES += freebsd/sys/dev/usb/usb_lookup.c
434LIB_C_FILES += freebsd/sys/dev/usb/usb_mbuf.c
435LIB_C_FILES += freebsd/sys/dev/usb/usb_msctest.c
436LIB_C_FILES += freebsd/sys/dev/usb/usb_parse.c
437LIB_C_FILES += freebsd/sys/dev/usb/usb_process.c
438LIB_C_FILES += freebsd/sys/dev/usb/usb_request.c
439LIB_C_FILES += freebsd/sys/dev/usb/usb_transfer.c
440LIB_C_FILES += freebsd/sys/dev/usb/usb_util.c
441LIB_C_FILES += freebsd/sys/dev/usb/quirk/usb_quirk.c
442LIB_C_FILES += freebsd/sys/dev/usb/controller/ohci.c
443LIB_C_FILES += freebsd/sys/dev/usb/controller/ehci.c
444LIB_C_FILES += freebsd/sys/dev/usb/controller/usb_controller.c
445LIB_C_FILES += freebsd/sys/cam/cam.c
446LIB_C_FILES += freebsd/sys/cam/scsi/scsi_all.c
447LIB_C_FILES += freebsd/sys/dev/usb/storage/umass.c
448LIB_C_FILES += freebsd/sys/dev/pci/pci.c
449LIB_C_FILES += freebsd/sys/dev/pci/pci_user.c
450LIB_C_FILES += freebsd/sys/dev/pci/pci_pci.c
451ifeq ($(RTEMS_CPU), arm)
452LIB_C_FILES += freebsd/sys/arm/arm/legacy.c
453LIB_C_FILES += freebsd/sys/arm/pci/pci_bus.c
454NEED_DUMMY_PIC_IRQ=no
455endif
456ifeq ($(RTEMS_CPU), avr)
457LIB_C_FILES += freebsd/sys/avr/avr/legacy.c
458LIB_C_FILES += freebsd/sys/avr/pci/pci_bus.c
459endif
460ifeq ($(RTEMS_CPU), bfin)
461LIB_C_FILES += freebsd/sys/bfin/bfin/legacy.c
462LIB_C_FILES += freebsd/sys/bfin/pci/pci_bus.c
463endif
464ifeq ($(RTEMS_CPU), h8300)
465LIB_C_FILES += freebsd/sys/h8300/h8300/legacy.c
466LIB_C_FILES += freebsd/sys/h8300/pci/pci_bus.c
467endif
468ifeq ($(RTEMS_CPU), i386)
469LIB_C_FILES += freebsd/sys/i386/i386/legacy.c
470LIB_C_FILES += freebsd/sys/i386/pci/pci_bus.c
471NEED_DUMMY_PIC_IRQ=no
472endif
473ifeq ($(RTEMS_CPU), lm32)
474LIB_C_FILES += freebsd/sys/lm32/lm32/legacy.c
475LIB_C_FILES += freebsd/sys/lm32/pci/pci_bus.c
476NEED_DUMMY_PIC_IRQ=no
477endif
478ifeq ($(RTEMS_CPU), m32c)
479LIB_C_FILES += freebsd/sys/m32c/m32c/legacy.c
480LIB_C_FILES += freebsd/sys/m32c/pci/pci_bus.c
481endif
482ifeq ($(RTEMS_CPU), m32r)
483LIB_C_FILES += freebsd/sys/m32r/m32r/legacy.c
484LIB_C_FILES += freebsd/sys/m32r/pci/pci_bus.c
485endif
486ifeq ($(RTEMS_CPU), m68k)
487LIB_C_FILES += freebsd/sys/m68k/m68k/legacy.c
488LIB_C_FILES += freebsd/sys/m68k/pci/pci_bus.c
489NEED_DUMMY_PIC_IRQ=no
490endif
491ifeq ($(RTEMS_CPU), mips)
492LIB_C_FILES += freebsd/sys/mips/mips/legacy.c
493LIB_C_FILES += freebsd/sys/mips/pci/pci_bus.c
494NEED_DUMMY_PIC_IRQ=no
495endif
496ifeq ($(RTEMS_CPU), nios2)
497LIB_C_FILES += freebsd/sys/nios2/nios2/legacy.c
498LIB_C_FILES += freebsd/sys/nios2/pci/pci_bus.c
499endif
500ifeq ($(RTEMS_CPU), powerpc)
501LIB_C_FILES += freebsd/sys/powerpc/powerpc/legacy.c
502LIB_C_FILES += freebsd/sys/powerpc/pci/pci_bus.c
503NEED_DUMMY_PIC_IRQ=no
504endif
505ifeq ($(RTEMS_CPU), sh)
506LIB_C_FILES += freebsd/sys/sh/sh/legacy.c
507LIB_C_FILES += freebsd/sys/sh/pci/pci_bus.c
508endif
509ifeq ($(RTEMS_CPU), sparc)
510LIB_C_FILES += freebsd/sys/sparc/sparc/legacy.c
511LIB_C_FILES += freebsd/sys/sparc/pci/pci_bus.c
512NEED_DUMMY_PIC_IRQ=no
513endif
514ifeq ($(RTEMS_CPU), sparc64)
515LIB_C_FILES += freebsd/sys/sparc64/sparc64/legacy.c
516LIB_C_FILES += freebsd/sys/sparc64/pci/pci_bus.c
517endif
518ifeq ($(RTEMS_CPU), v850)
519LIB_C_FILES += freebsd/sys/v850/v850/legacy.c
520LIB_C_FILES += freebsd/sys/v850/pci/pci_bus.c
521endif
522LIB_C_FILES += freebsd/sys/dev/random/harvest.c
523LIB_C_FILES += freebsd/sys/netinet/tcp_hostcache.c
524LIB_C_FILES += freebsd/sys/dev/led/led.c
525LIB_C_FILES += freebsd/sys/netatalk/aarp.c
526LIB_C_FILES += freebsd/sys/netatalk/at_control.c
527LIB_C_FILES += freebsd/sys/netatalk/at_rmx.c
528LIB_C_FILES += freebsd/sys/netatalk/ddp_input.c
529LIB_C_FILES += freebsd/sys/netatalk/ddp_pcb.c
530LIB_C_FILES += freebsd/sys/netatalk/ddp_usrreq.c
531LIB_C_FILES += freebsd/sys/netatalk/at_proto.c
532LIB_C_FILES += freebsd/sys/netatalk/ddp_output.c
533LIB_C_FILES += freebsd/sys/dev/re/if_re.c
534LIB_C_FILES += freebsd/sys/dev/fxp/if_fxp.c
535LIB_C_FILES += freebsd/sys/dev/e1000/e1000_80003es2lan.c
536LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82542.c
537LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82575.c
538LIB_C_FILES += freebsd/sys/dev/e1000/e1000_mac.c
539LIB_C_FILES += freebsd/sys/dev/e1000/e1000_nvm.c
540LIB_C_FILES += freebsd/sys/dev/e1000/e1000_vf.c
541LIB_C_FILES += freebsd/sys/dev/e1000/if_lem.c
542LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82540.c
543LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82543.c
544LIB_C_FILES += freebsd/sys/dev/e1000/e1000_api.c
545LIB_C_FILES += freebsd/sys/dev/e1000/e1000_manage.c
546LIB_C_FILES += freebsd/sys/dev/e1000/e1000_osdep.c
547LIB_C_FILES += freebsd/sys/dev/e1000/if_em.c
548LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82541.c
549LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82571.c
550LIB_C_FILES += freebsd/sys/dev/e1000/e1000_ich8lan.c
551LIB_C_FILES += freebsd/sys/dev/e1000/e1000_mbx.c
552LIB_C_FILES += freebsd/sys/dev/e1000/e1000_phy.c
553LIB_C_FILES += freebsd/sys/dev/e1000/if_igb.c
554LIB_C_FILES += freebsd/sys/dev/dc/dcphy.c
555LIB_C_FILES += freebsd/sys/dev/dc/if_dc.c
556LIB_C_FILES += freebsd/sys/dev/dc/pnphy.c
557LIB_C_FILES += freebsd/sys/dev/smc/if_smc.c
558LIB_C_FILES += freebsd/sys/dev/bce/if_bce.c
559LIB_C_FILES += freebsd/sys/dev/bfe/if_bfe.c
560LIB_C_FILES += freebsd/sys/dev/bge/if_bge.c
561ifeq ($(RTEMS_CPU), arm)
562LIB_C_FILES += freebsd/sys/arm/arm/in_cksum.c
563NEED_DUMMY_PIC_IRQ=no
564endif
565ifeq ($(RTEMS_CPU), avr)
566LIB_C_FILES += freebsd/sys/avr/avr/in_cksum.c
567endif
568ifeq ($(RTEMS_CPU), bfin)
569LIB_C_FILES += freebsd/sys/bfin/bfin/in_cksum.c
570endif
571ifeq ($(RTEMS_CPU), h8300)
572LIB_C_FILES += freebsd/sys/h8300/h8300/in_cksum.c
573endif
574ifeq ($(RTEMS_CPU), i386)
575LIB_C_FILES += freebsd/sys/i386/i386/in_cksum.c
576NEED_DUMMY_PIC_IRQ=no
577endif
578ifeq ($(RTEMS_CPU), lm32)
579LIB_C_FILES += freebsd/sys/lm32/lm32/in_cksum.c
580NEED_DUMMY_PIC_IRQ=no
581endif
582ifeq ($(RTEMS_CPU), m32c)
583LIB_C_FILES += freebsd/sys/m32c/m32c/in_cksum.c
584endif
585ifeq ($(RTEMS_CPU), m32r)
586LIB_C_FILES += freebsd/sys/m32r/m32r/in_cksum.c
587endif
588ifeq ($(RTEMS_CPU), m68k)
589LIB_C_FILES += freebsd/sys/m68k/m68k/in_cksum.c
590NEED_DUMMY_PIC_IRQ=no
591endif
592ifeq ($(RTEMS_CPU), mips)
593LIB_C_FILES += freebsd/sys/mips/mips/in_cksum.c
594NEED_DUMMY_PIC_IRQ=no
595endif
596ifeq ($(RTEMS_CPU), nios2)
597LIB_C_FILES += freebsd/sys/nios2/nios2/in_cksum.c
598endif
599ifeq ($(RTEMS_CPU), powerpc)
600LIB_C_FILES += freebsd/sys/powerpc/powerpc/in_cksum.c
601NEED_DUMMY_PIC_IRQ=no
602endif
603ifeq ($(RTEMS_CPU), sh)
604LIB_C_FILES += freebsd/sys/sh/sh/in_cksum.c
605endif
606ifeq ($(RTEMS_CPU), sparc)
607LIB_C_FILES += freebsd/sys/sparc/sparc/in_cksum.c
608LIB_C_FILES += freebsd/sys/mips/mips/in_cksum.c
609NEED_DUMMY_PIC_IRQ=no
610endif
611ifeq ($(RTEMS_CPU), sparc64)
612LIB_C_FILES += freebsd/sys/sparc64/sparc64/in_cksum.c
613endif
614ifeq ($(RTEMS_CPU), v850)
615LIB_C_FILES += freebsd/sys/v850/v850/in_cksum.c
616endif
617LIB_GEN_FILES += freebsd/include/rpc/rpcb_prot.h
618freebsd/include/rpc/rpcb_prot.h: freebsd/include/rpc/rpcb_prot.x
619                rm -f $@
620                rpcgen -h -o $@ $<
621LIB_GEN_FILES += freebsd/sbin/route/keywords.h
622freebsd/sbin/route/keywords.h: freebsd/sbin/route/keywords
623        sed -e '/^#/d' -e '/^$$/d' $< > freebsd/sbin/route/keywords.tmp
624        LC_ALL=C tr 'a-z' 'A-Z' < freebsd/sbin/route/keywords.tmp | paste freebsd/sbin/route/keywords.tmp - | \
625        awk '{ if (NF > 1) printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", $$2, NR, $$1, $$2 }' > $@
626        rm -f freebsd/sbin/route/keywords.tmp
627LIB_C_FILES += freebsd/lib/libc/db/btree/bt_close.c
628freebsd/lib/libc/db/btree/bt_close.o: freebsd/lib/libc/db/btree/bt_close.c
629        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
630LIB_C_FILES += freebsd/lib/libc/db/btree/bt_conv.c
631freebsd/lib/libc/db/btree/bt_conv.o: freebsd/lib/libc/db/btree/bt_conv.c
632        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
633LIB_C_FILES += freebsd/lib/libc/db/btree/bt_debug.c
634freebsd/lib/libc/db/btree/bt_debug.o: freebsd/lib/libc/db/btree/bt_debug.c
635        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
636LIB_C_FILES += freebsd/lib/libc/db/btree/bt_delete.c
637freebsd/lib/libc/db/btree/bt_delete.o: freebsd/lib/libc/db/btree/bt_delete.c
638        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
639LIB_C_FILES += freebsd/lib/libc/db/btree/bt_get.c
640freebsd/lib/libc/db/btree/bt_get.o: freebsd/lib/libc/db/btree/bt_get.c
641        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
642LIB_C_FILES += freebsd/lib/libc/db/btree/bt_open.c
643freebsd/lib/libc/db/btree/bt_open.o: freebsd/lib/libc/db/btree/bt_open.c
644        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
645LIB_C_FILES += freebsd/lib/libc/db/btree/bt_overflow.c
646freebsd/lib/libc/db/btree/bt_overflow.o: freebsd/lib/libc/db/btree/bt_overflow.c
647        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
648LIB_C_FILES += freebsd/lib/libc/db/btree/bt_page.c
649freebsd/lib/libc/db/btree/bt_page.o: freebsd/lib/libc/db/btree/bt_page.c
650        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
651LIB_C_FILES += freebsd/lib/libc/db/btree/bt_put.c
652freebsd/lib/libc/db/btree/bt_put.o: freebsd/lib/libc/db/btree/bt_put.c
653        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
654LIB_C_FILES += freebsd/lib/libc/db/btree/bt_search.c
655freebsd/lib/libc/db/btree/bt_search.o: freebsd/lib/libc/db/btree/bt_search.c
656        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
657LIB_C_FILES += freebsd/lib/libc/db/btree/bt_seq.c
658freebsd/lib/libc/db/btree/bt_seq.o: freebsd/lib/libc/db/btree/bt_seq.c
659        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
660LIB_C_FILES += freebsd/lib/libc/db/btree/bt_split.c
661freebsd/lib/libc/db/btree/bt_split.o: freebsd/lib/libc/db/btree/bt_split.c
662        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
663LIB_C_FILES += freebsd/lib/libc/db/btree/bt_utils.c
664freebsd/lib/libc/db/btree/bt_utils.o: freebsd/lib/libc/db/btree/bt_utils.c
665        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
666LIB_C_FILES += freebsd/lib/libc/db/db/db.c
667freebsd/lib/libc/db/db/db.o: freebsd/lib/libc/db/db/db.c
668        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
669LIB_C_FILES += freebsd/lib/libc/db/mpool/mpool.c
670freebsd/lib/libc/db/mpool/mpool.o: freebsd/lib/libc/db/mpool/mpool.c
671        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
672LIB_C_FILES += freebsd/lib/libc/db/mpool/mpool-compat.c
673freebsd/lib/libc/db/mpool/mpool-compat.o: freebsd/lib/libc/db/mpool/mpool-compat.c
674        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
675LIB_C_FILES += freebsd/lib/libc/db/recno/rec_close.c
676freebsd/lib/libc/db/recno/rec_close.o: freebsd/lib/libc/db/recno/rec_close.c
677        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
678LIB_C_FILES += freebsd/lib/libc/db/recno/rec_delete.c
679freebsd/lib/libc/db/recno/rec_delete.o: freebsd/lib/libc/db/recno/rec_delete.c
680        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
681LIB_C_FILES += freebsd/lib/libc/db/recno/rec_get.c
682freebsd/lib/libc/db/recno/rec_get.o: freebsd/lib/libc/db/recno/rec_get.c
683        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
684LIB_C_FILES += freebsd/lib/libc/db/recno/rec_open.c
685freebsd/lib/libc/db/recno/rec_open.o: freebsd/lib/libc/db/recno/rec_open.c
686        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
687LIB_C_FILES += freebsd/lib/libc/db/recno/rec_put.c
688freebsd/lib/libc/db/recno/rec_put.o: freebsd/lib/libc/db/recno/rec_put.c
689        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
690LIB_C_FILES += freebsd/lib/libc/db/recno/rec_search.c
691freebsd/lib/libc/db/recno/rec_search.o: freebsd/lib/libc/db/recno/rec_search.c
692        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
693LIB_C_FILES += freebsd/lib/libc/db/recno/rec_seq.c
694freebsd/lib/libc/db/recno/rec_seq.o: freebsd/lib/libc/db/recno/rec_seq.c
695        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
696LIB_C_FILES += freebsd/lib/libc/db/recno/rec_utils.c
697freebsd/lib/libc/db/recno/rec_utils.o: freebsd/lib/libc/db/recno/rec_utils.c
698        $(CC) $(CPPFLAGS) $(CFLAGS) -D__DBINTERFACE_PRIVATE -DINET6 -c $< -o $@
699LIB_C_FILES += freebsd/lib/libc/gen/err.c
700freebsd/lib/libc/gen/err.o: freebsd/lib/libc/gen/err.c
701        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
702LIB_C_FILES += freebsd/lib/libc/gen/feature_present.c
703freebsd/lib/libc/gen/feature_present.o: freebsd/lib/libc/gen/feature_present.c
704        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
705LIB_C_FILES += freebsd/lib/libc/gen/gethostname.c
706freebsd/lib/libc/gen/gethostname.o: freebsd/lib/libc/gen/gethostname.c
707        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
708LIB_C_FILES += freebsd/lib/libc/inet/inet_addr.c
709freebsd/lib/libc/inet/inet_addr.o: freebsd/lib/libc/inet/inet_addr.c
710        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
711LIB_C_FILES += freebsd/lib/libc/inet/inet_cidr_ntop.c
712freebsd/lib/libc/inet/inet_cidr_ntop.o: freebsd/lib/libc/inet/inet_cidr_ntop.c
713        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
714LIB_C_FILES += freebsd/lib/libc/inet/inet_cidr_pton.c
715freebsd/lib/libc/inet/inet_cidr_pton.o: freebsd/lib/libc/inet/inet_cidr_pton.c
716        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
717LIB_C_FILES += freebsd/lib/libc/inet/inet_lnaof.c
718freebsd/lib/libc/inet/inet_lnaof.o: freebsd/lib/libc/inet/inet_lnaof.c
719        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
720LIB_C_FILES += freebsd/lib/libc/inet/inet_makeaddr.c
721freebsd/lib/libc/inet/inet_makeaddr.o: freebsd/lib/libc/inet/inet_makeaddr.c
722        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
723LIB_C_FILES += freebsd/lib/libc/inet/inet_neta.c
724freebsd/lib/libc/inet/inet_neta.o: freebsd/lib/libc/inet/inet_neta.c
725        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
726LIB_C_FILES += freebsd/lib/libc/inet/inet_net_ntop.c
727freebsd/lib/libc/inet/inet_net_ntop.o: freebsd/lib/libc/inet/inet_net_ntop.c
728        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
729LIB_C_FILES += freebsd/lib/libc/inet/inet_netof.c
730freebsd/lib/libc/inet/inet_netof.o: freebsd/lib/libc/inet/inet_netof.c
731        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
732LIB_C_FILES += freebsd/lib/libc/inet/inet_net_pton.c
733freebsd/lib/libc/inet/inet_net_pton.o: freebsd/lib/libc/inet/inet_net_pton.c
734        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
735LIB_C_FILES += freebsd/lib/libc/inet/inet_network.c
736freebsd/lib/libc/inet/inet_network.o: freebsd/lib/libc/inet/inet_network.c
737        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
738LIB_C_FILES += freebsd/lib/libc/inet/inet_ntoa.c
739freebsd/lib/libc/inet/inet_ntoa.o: freebsd/lib/libc/inet/inet_ntoa.c
740        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
741LIB_C_FILES += freebsd/lib/libc/inet/inet_ntop.c
742freebsd/lib/libc/inet/inet_ntop.o: freebsd/lib/libc/inet/inet_ntop.c
743        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
744LIB_C_FILES += freebsd/lib/libc/inet/inet_pton.c
745freebsd/lib/libc/inet/inet_pton.o: freebsd/lib/libc/inet/inet_pton.c
746        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
747LIB_C_FILES += freebsd/lib/libc/inet/nsap_addr.c
748freebsd/lib/libc/inet/nsap_addr.o: freebsd/lib/libc/inet/nsap_addr.c
749        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
750LIB_C_FILES += freebsd/lib/libc/isc/ev_streams.c
751freebsd/lib/libc/isc/ev_streams.o: freebsd/lib/libc/isc/ev_streams.c
752        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
753LIB_C_FILES += freebsd/lib/libc/isc/ev_timers.c
754freebsd/lib/libc/isc/ev_timers.o: freebsd/lib/libc/isc/ev_timers.c
755        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
756LIB_C_FILES += freebsd/lib/libc/nameser/ns_name.c
757freebsd/lib/libc/nameser/ns_name.o: freebsd/lib/libc/nameser/ns_name.c
758        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
759LIB_C_FILES += freebsd/lib/libc/nameser/ns_netint.c
760freebsd/lib/libc/nameser/ns_netint.o: freebsd/lib/libc/nameser/ns_netint.c
761        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
762LIB_C_FILES += freebsd/lib/libc/nameser/ns_parse.c
763freebsd/lib/libc/nameser/ns_parse.o: freebsd/lib/libc/nameser/ns_parse.c
764        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
765LIB_C_FILES += freebsd/lib/libc/nameser/ns_print.c
766freebsd/lib/libc/nameser/ns_print.o: freebsd/lib/libc/nameser/ns_print.c
767        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
768LIB_C_FILES += freebsd/lib/libc/nameser/ns_samedomain.c
769freebsd/lib/libc/nameser/ns_samedomain.o: freebsd/lib/libc/nameser/ns_samedomain.c
770        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
771LIB_C_FILES += freebsd/lib/libc/nameser/ns_ttl.c
772freebsd/lib/libc/nameser/ns_ttl.o: freebsd/lib/libc/nameser/ns_ttl.c
773        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
774LIB_C_FILES += freebsd/lib/libc/net/base64.c
775freebsd/lib/libc/net/base64.o: freebsd/lib/libc/net/base64.c
776        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
777LIB_C_FILES += freebsd/lib/libc/net/ether_addr.c
778freebsd/lib/libc/net/ether_addr.o: freebsd/lib/libc/net/ether_addr.c
779        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
780LIB_C_FILES += freebsd/lib/libc/net/gai_strerror.c
781freebsd/lib/libc/net/gai_strerror.o: freebsd/lib/libc/net/gai_strerror.c
782        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
783LIB_C_FILES += freebsd/lib/libc/net/getaddrinfo.c
784freebsd/lib/libc/net/getaddrinfo.o: freebsd/lib/libc/net/getaddrinfo.c
785        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
786LIB_C_FILES += freebsd/lib/libc/net/gethostbydns.c
787freebsd/lib/libc/net/gethostbydns.o: freebsd/lib/libc/net/gethostbydns.c
788        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
789LIB_C_FILES += freebsd/lib/libc/net/gethostbyht.c
790freebsd/lib/libc/net/gethostbyht.o: freebsd/lib/libc/net/gethostbyht.c
791        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
792LIB_C_FILES += freebsd/lib/libc/net/gethostbynis.c
793freebsd/lib/libc/net/gethostbynis.o: freebsd/lib/libc/net/gethostbynis.c
794        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
795LIB_C_FILES += freebsd/lib/libc/net/gethostnamadr.c
796freebsd/lib/libc/net/gethostnamadr.o: freebsd/lib/libc/net/gethostnamadr.c
797        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
798LIB_C_FILES += freebsd/lib/libc/net/getifaddrs.c
799freebsd/lib/libc/net/getifaddrs.o: freebsd/lib/libc/net/getifaddrs.c
800        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
801LIB_C_FILES += freebsd/lib/libc/net/getifmaddrs.c
802freebsd/lib/libc/net/getifmaddrs.o: freebsd/lib/libc/net/getifmaddrs.c
803        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
804LIB_C_FILES += freebsd/lib/libc/net/getnameinfo.c
805freebsd/lib/libc/net/getnameinfo.o: freebsd/lib/libc/net/getnameinfo.c
806        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
807LIB_C_FILES += freebsd/lib/libc/net/getnetbydns.c
808freebsd/lib/libc/net/getnetbydns.o: freebsd/lib/libc/net/getnetbydns.c
809        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
810LIB_C_FILES += freebsd/lib/libc/net/getnetbyht.c
811freebsd/lib/libc/net/getnetbyht.o: freebsd/lib/libc/net/getnetbyht.c
812        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
813LIB_C_FILES += freebsd/lib/libc/net/getnetbynis.c
814freebsd/lib/libc/net/getnetbynis.o: freebsd/lib/libc/net/getnetbynis.c
815        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
816LIB_C_FILES += freebsd/lib/libc/net/getnetnamadr.c
817freebsd/lib/libc/net/getnetnamadr.o: freebsd/lib/libc/net/getnetnamadr.c
818        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
819LIB_C_FILES += freebsd/lib/libc/net/getproto.c
820freebsd/lib/libc/net/getproto.o: freebsd/lib/libc/net/getproto.c
821        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
822LIB_C_FILES += freebsd/lib/libc/net/getprotoent.c
823freebsd/lib/libc/net/getprotoent.o: freebsd/lib/libc/net/getprotoent.c
824        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
825LIB_C_FILES += freebsd/lib/libc/net/getprotoname.c
826freebsd/lib/libc/net/getprotoname.o: freebsd/lib/libc/net/getprotoname.c
827        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
828LIB_C_FILES += freebsd/lib/libc/net/getservent.c
829freebsd/lib/libc/net/getservent.o: freebsd/lib/libc/net/getservent.c
830        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
831LIB_C_FILES += freebsd/lib/libc/net/if_indextoname.c
832freebsd/lib/libc/net/if_indextoname.o: freebsd/lib/libc/net/if_indextoname.c
833        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
834LIB_C_FILES += freebsd/lib/libc/net/if_nameindex.c
835freebsd/lib/libc/net/if_nameindex.o: freebsd/lib/libc/net/if_nameindex.c
836        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
837LIB_C_FILES += freebsd/lib/libc/net/if_nametoindex.c
838freebsd/lib/libc/net/if_nametoindex.o: freebsd/lib/libc/net/if_nametoindex.c
839        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
840LIB_C_FILES += freebsd/lib/libc/net/ip6opt.c
841freebsd/lib/libc/net/ip6opt.o: freebsd/lib/libc/net/ip6opt.c
842        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
843LIB_C_FILES += freebsd/lib/libc/net/linkaddr.c
844freebsd/lib/libc/net/linkaddr.o: freebsd/lib/libc/net/linkaddr.c
845        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
846LIB_C_FILES += freebsd/lib/libc/net/map_v4v6.c
847freebsd/lib/libc/net/map_v4v6.o: freebsd/lib/libc/net/map_v4v6.c
848        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
849LIB_C_FILES += freebsd/lib/libc/net/name6.c
850freebsd/lib/libc/net/name6.o: freebsd/lib/libc/net/name6.c
851        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
852LIB_C_FILES += freebsd/lib/libc/net/nsdispatch.c
853freebsd/lib/libc/net/nsdispatch.o: freebsd/lib/libc/net/nsdispatch.c
854        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
855LIB_C_FILES += freebsd/lib/libc/net/rcmd.c
856freebsd/lib/libc/net/rcmd.o: freebsd/lib/libc/net/rcmd.c
857        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
858LIB_C_FILES += freebsd/lib/libc/net/recv.c
859freebsd/lib/libc/net/recv.o: freebsd/lib/libc/net/recv.c
860        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
861LIB_C_FILES += freebsd/lib/libc/net/rthdr.c
862freebsd/lib/libc/net/rthdr.o: freebsd/lib/libc/net/rthdr.c
863        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
864LIB_C_FILES += freebsd/lib/libc/net/send.c
865freebsd/lib/libc/net/send.o: freebsd/lib/libc/net/send.c
866        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
867LIB_C_FILES += freebsd/lib/libc/posix1e/mac.c
868freebsd/lib/libc/posix1e/mac.o: freebsd/lib/libc/posix1e/mac.c
869        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
870LIB_C_FILES += freebsd/lib/libc/resolv/h_errno.c
871freebsd/lib/libc/resolv/h_errno.o: freebsd/lib/libc/resolv/h_errno.c
872        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
873LIB_C_FILES += freebsd/lib/libc/resolv/herror.c
874freebsd/lib/libc/resolv/herror.o: freebsd/lib/libc/resolv/herror.c
875        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
876LIB_C_FILES += freebsd/lib/libc/resolv/mtctxres.c
877freebsd/lib/libc/resolv/mtctxres.o: freebsd/lib/libc/resolv/mtctxres.c
878        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
879LIB_C_FILES += freebsd/lib/libc/resolv/res_comp.c
880freebsd/lib/libc/resolv/res_comp.o: freebsd/lib/libc/resolv/res_comp.c
881        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
882LIB_C_FILES += freebsd/lib/libc/resolv/res_data.c
883freebsd/lib/libc/resolv/res_data.o: freebsd/lib/libc/resolv/res_data.c
884        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
885LIB_C_FILES += freebsd/lib/libc/resolv/res_debug.c
886freebsd/lib/libc/resolv/res_debug.o: freebsd/lib/libc/resolv/res_debug.c
887        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
888LIB_C_FILES += freebsd/lib/libc/resolv/res_findzonecut.c
889freebsd/lib/libc/resolv/res_findzonecut.o: freebsd/lib/libc/resolv/res_findzonecut.c
890        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
891LIB_C_FILES += freebsd/lib/libc/resolv/res_init.c
892freebsd/lib/libc/resolv/res_init.o: freebsd/lib/libc/resolv/res_init.c
893        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
894LIB_C_FILES += freebsd/lib/libc/resolv/res_mkquery.c
895freebsd/lib/libc/resolv/res_mkquery.o: freebsd/lib/libc/resolv/res_mkquery.c
896        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
897LIB_C_FILES += freebsd/lib/libc/resolv/res_mkupdate.c
898freebsd/lib/libc/resolv/res_mkupdate.o: freebsd/lib/libc/resolv/res_mkupdate.c
899        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
900LIB_C_FILES += freebsd/lib/libc/resolv/res_query.c
901freebsd/lib/libc/resolv/res_query.o: freebsd/lib/libc/resolv/res_query.c
902        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
903LIB_C_FILES += freebsd/lib/libc/resolv/res_send.c
904freebsd/lib/libc/resolv/res_send.o: freebsd/lib/libc/resolv/res_send.c
905        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
906LIB_C_FILES += freebsd/lib/libc/resolv/res_state.c
907freebsd/lib/libc/resolv/res_state.o: freebsd/lib/libc/resolv/res_state.c
908        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
909LIB_C_FILES += freebsd/lib/libc/resolv/res_update.c
910freebsd/lib/libc/resolv/res_update.o: freebsd/lib/libc/resolv/res_update.c
911        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
912LIB_C_FILES += freebsd/lib/libc/stdio/fgetln.c
913freebsd/lib/libc/stdio/fgetln.o: freebsd/lib/libc/stdio/fgetln.c
914        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
915LIB_C_FILES += freebsd/lib/libc/stdlib/strtonum.c
916freebsd/lib/libc/stdlib/strtonum.o: freebsd/lib/libc/stdlib/strtonum.c
917        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
918LIB_C_FILES += freebsd/lib/libc/string/strsep.c
919freebsd/lib/libc/string/strsep.o: freebsd/lib/libc/string/strsep.c
920        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
921LIB_C_FILES += freebsd/lib/libipsec/ipsec_dump_policy.c
922freebsd/lib/libipsec/ipsec_dump_policy.o: freebsd/lib/libipsec/ipsec_dump_policy.c
923        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
924LIB_C_FILES += freebsd/lib/libipsec/ipsec_get_policylen.c
925freebsd/lib/libipsec/ipsec_get_policylen.o: freebsd/lib/libipsec/ipsec_get_policylen.c
926        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
927LIB_C_FILES += freebsd/lib/libipsec/ipsec_strerror.c
928freebsd/lib/libipsec/ipsec_strerror.o: freebsd/lib/libipsec/ipsec_strerror.c
929        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
930LIB_C_FILES += freebsd/lib/libipsec/pfkey.c
931freebsd/lib/libipsec/pfkey.o: freebsd/lib/libipsec/pfkey.c
932        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
933LIB_C_FILES += freebsd/lib/libipsec/pfkey_dump.c
934freebsd/lib/libipsec/pfkey_dump.o: freebsd/lib/libipsec/pfkey_dump.c
935        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
936LIB_C_FILES += freebsd/lib/libmemstat/memstat_all.c
937freebsd/lib/libmemstat/memstat_all.o: freebsd/lib/libmemstat/memstat_all.c
938        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
939LIB_C_FILES += freebsd/lib/libmemstat/memstat.c
940freebsd/lib/libmemstat/memstat.o: freebsd/lib/libmemstat/memstat.c
941        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
942LIB_C_FILES += freebsd/lib/libmemstat/memstat_malloc.c
943freebsd/lib/libmemstat/memstat_malloc.o: freebsd/lib/libmemstat/memstat_malloc.c
944        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
945LIB_C_FILES += freebsd/lib/libmemstat/memstat_uma.c
946freebsd/lib/libmemstat/memstat_uma.o: freebsd/lib/libmemstat/memstat_uma.c
947        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
948LIB_C_FILES += freebsd/lib/libutil/expand_number.c
949freebsd/lib/libutil/expand_number.o: freebsd/lib/libutil/expand_number.c
950        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
951LIB_C_FILES += freebsd/lib/libutil/humanize_number.c
952freebsd/lib/libutil/humanize_number.o: freebsd/lib/libutil/humanize_number.c
953        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
954LIB_C_FILES += freebsd/lib/libutil/trimdomain.c
955freebsd/lib/libutil/trimdomain.o: freebsd/lib/libutil/trimdomain.c
956        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
957LIB_C_FILES += freebsd/sbin/dhclient/alloc.c
958freebsd/sbin/dhclient/alloc.o: freebsd/sbin/dhclient/alloc.c
959        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
960LIB_C_FILES += freebsd/sbin/dhclient/bpf.c
961freebsd/sbin/dhclient/bpf.o: freebsd/sbin/dhclient/bpf.c
962        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
963LIB_C_FILES += freebsd/sbin/dhclient/clparse.c
964freebsd/sbin/dhclient/clparse.o: freebsd/sbin/dhclient/clparse.c
965        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
966LIB_C_FILES += freebsd/sbin/dhclient/conflex.c
967freebsd/sbin/dhclient/conflex.o: freebsd/sbin/dhclient/conflex.c
968        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
969LIB_C_FILES += freebsd/sbin/dhclient/convert.c
970freebsd/sbin/dhclient/convert.o: freebsd/sbin/dhclient/convert.c
971        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
972LIB_C_FILES += freebsd/sbin/dhclient/dhclient.c
973freebsd/sbin/dhclient/dhclient.o: freebsd/sbin/dhclient/dhclient.c
974        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
975LIB_C_FILES += freebsd/sbin/dhclient/dispatch.c
976freebsd/sbin/dhclient/dispatch.o: freebsd/sbin/dhclient/dispatch.c
977        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
978LIB_C_FILES += freebsd/sbin/dhclient/errwarn.c
979freebsd/sbin/dhclient/errwarn.o: freebsd/sbin/dhclient/errwarn.c
980        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
981LIB_C_FILES += freebsd/sbin/dhclient/hash.c
982freebsd/sbin/dhclient/hash.o: freebsd/sbin/dhclient/hash.c
983        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
984LIB_C_FILES += freebsd/sbin/dhclient/inet.c
985freebsd/sbin/dhclient/inet.o: freebsd/sbin/dhclient/inet.c
986        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
987LIB_C_FILES += freebsd/sbin/dhclient/options.c
988freebsd/sbin/dhclient/options.o: freebsd/sbin/dhclient/options.c
989        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
990LIB_C_FILES += freebsd/sbin/dhclient/packet.c
991freebsd/sbin/dhclient/packet.o: freebsd/sbin/dhclient/packet.c
992        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
993LIB_C_FILES += freebsd/sbin/dhclient/parse.c
994freebsd/sbin/dhclient/parse.o: freebsd/sbin/dhclient/parse.c
995        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
996LIB_C_FILES += freebsd/sbin/dhclient/privsep.c
997freebsd/sbin/dhclient/privsep.o: freebsd/sbin/dhclient/privsep.c
998        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
999LIB_C_FILES += freebsd/sbin/dhclient/tables.c
1000freebsd/sbin/dhclient/tables.o: freebsd/sbin/dhclient/tables.c
1001        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1002LIB_C_FILES += freebsd/sbin/dhclient/tree.c
1003freebsd/sbin/dhclient/tree.o: freebsd/sbin/dhclient/tree.c
1004        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1005LIB_C_FILES += freebsd/sbin/ifconfig/af_atalk.c
1006freebsd/sbin/ifconfig/af_atalk.o: freebsd/sbin/ifconfig/af_atalk.c
1007        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1008LIB_C_FILES += freebsd/sbin/ifconfig/af_inet6.c
1009freebsd/sbin/ifconfig/af_inet6.o: freebsd/sbin/ifconfig/af_inet6.c
1010        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1011LIB_C_FILES += freebsd/sbin/ifconfig/af_inet.c
1012freebsd/sbin/ifconfig/af_inet.o: freebsd/sbin/ifconfig/af_inet.c
1013        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1014LIB_C_FILES += freebsd/sbin/ifconfig/af_link.c
1015freebsd/sbin/ifconfig/af_link.o: freebsd/sbin/ifconfig/af_link.c
1016        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1017LIB_C_FILES += freebsd/sbin/ifconfig/af_nd6.c
1018freebsd/sbin/ifconfig/af_nd6.o: freebsd/sbin/ifconfig/af_nd6.c
1019        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1020LIB_C_FILES += freebsd/sbin/ifconfig/ifbridge.c
1021freebsd/sbin/ifconfig/ifbridge.o: freebsd/sbin/ifconfig/ifbridge.c
1022        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1023LIB_C_FILES += freebsd/sbin/ifconfig/ifcarp.c
1024freebsd/sbin/ifconfig/ifcarp.o: freebsd/sbin/ifconfig/ifcarp.c
1025        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1026LIB_C_FILES += freebsd/sbin/ifconfig/ifclone.c
1027freebsd/sbin/ifconfig/ifclone.o: freebsd/sbin/ifconfig/ifclone.c
1028        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1029LIB_C_FILES += freebsd/sbin/ifconfig/ifconfig.c
1030freebsd/sbin/ifconfig/ifconfig.o: freebsd/sbin/ifconfig/ifconfig.c
1031        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1032LIB_C_FILES += freebsd/sbin/ifconfig/ifgif.c
1033freebsd/sbin/ifconfig/ifgif.o: freebsd/sbin/ifconfig/ifgif.c
1034        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1035LIB_C_FILES += freebsd/sbin/ifconfig/ifgre.c
1036freebsd/sbin/ifconfig/ifgre.o: freebsd/sbin/ifconfig/ifgre.c
1037        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1038LIB_C_FILES += freebsd/sbin/ifconfig/ifgroup.c
1039freebsd/sbin/ifconfig/ifgroup.o: freebsd/sbin/ifconfig/ifgroup.c
1040        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1041LIB_C_FILES += freebsd/sbin/ifconfig/iflagg.c
1042freebsd/sbin/ifconfig/iflagg.o: freebsd/sbin/ifconfig/iflagg.c
1043        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1044LIB_C_FILES += freebsd/sbin/ifconfig/ifmac.c
1045freebsd/sbin/ifconfig/ifmac.o: freebsd/sbin/ifconfig/ifmac.c
1046        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1047LIB_C_FILES += freebsd/sbin/ifconfig/ifmedia.c
1048freebsd/sbin/ifconfig/ifmedia.o: freebsd/sbin/ifconfig/ifmedia.c
1049        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1050LIB_C_FILES += freebsd/sbin/ifconfig/ifpfsync.c
1051freebsd/sbin/ifconfig/ifpfsync.o: freebsd/sbin/ifconfig/ifpfsync.c
1052        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1053LIB_C_FILES += freebsd/sbin/ifconfig/ifvlan.c
1054freebsd/sbin/ifconfig/ifvlan.o: freebsd/sbin/ifconfig/ifvlan.c
1055        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1056LIB_C_FILES += freebsd/sbin/ping6/ping6.c
1057freebsd/sbin/ping6/ping6.o: freebsd/sbin/ping6/ping6.c
1058        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1059LIB_C_FILES += freebsd/sbin/ping/ping.c
1060freebsd/sbin/ping/ping.o: freebsd/sbin/ping/ping.c
1061        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1062LIB_C_FILES += freebsd/sbin/route/route.c
1063freebsd/sbin/route/route.o: freebsd/sbin/route/route.c
1064        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1065LIB_C_FILES += freebsd/usr.bin/netstat/atalk.c
1066freebsd/usr.bin/netstat/atalk.o: freebsd/usr.bin/netstat/atalk.c
1067        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1068LIB_C_FILES += freebsd/usr.bin/netstat/bpf.c
1069freebsd/usr.bin/netstat/bpf.o: freebsd/usr.bin/netstat/bpf.c
1070        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1071LIB_C_FILES += freebsd/usr.bin/netstat/if.c
1072freebsd/usr.bin/netstat/if.o: freebsd/usr.bin/netstat/if.c
1073        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1074LIB_C_FILES += freebsd/usr.bin/netstat/inet6.c
1075freebsd/usr.bin/netstat/inet6.o: freebsd/usr.bin/netstat/inet6.c
1076        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1077LIB_C_FILES += freebsd/usr.bin/netstat/inet.c
1078freebsd/usr.bin/netstat/inet.o: freebsd/usr.bin/netstat/inet.c
1079        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1080LIB_C_FILES += freebsd/usr.bin/netstat/ipsec.c
1081freebsd/usr.bin/netstat/ipsec.o: freebsd/usr.bin/netstat/ipsec.c
1082        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1083LIB_C_FILES += freebsd/usr.bin/netstat/main.c
1084freebsd/usr.bin/netstat/main.o: freebsd/usr.bin/netstat/main.c
1085        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1086LIB_C_FILES += freebsd/usr.bin/netstat/mbuf.c
1087freebsd/usr.bin/netstat/mbuf.o: freebsd/usr.bin/netstat/mbuf.c
1088        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1089LIB_C_FILES += freebsd/usr.bin/netstat/mroute6.c
1090freebsd/usr.bin/netstat/mroute6.o: freebsd/usr.bin/netstat/mroute6.c
1091        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1092LIB_C_FILES += freebsd/usr.bin/netstat/mroute.c
1093freebsd/usr.bin/netstat/mroute.o: freebsd/usr.bin/netstat/mroute.c
1094        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1095LIB_C_FILES += freebsd/usr.bin/netstat/route.c
1096freebsd/usr.bin/netstat/route.o: freebsd/usr.bin/netstat/route.c
1097        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1098LIB_C_FILES += freebsd/usr.bin/netstat/pfkey.c
1099freebsd/usr.bin/netstat/pfkey.o: freebsd/usr.bin/netstat/pfkey.c
1100        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1101LIB_C_FILES += freebsd/usr.bin/netstat/sctp.c
1102freebsd/usr.bin/netstat/sctp.o: freebsd/usr.bin/netstat/sctp.c
1103        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1104LIB_C_FILES += freebsd/usr.bin/netstat/unix.c
1105freebsd/usr.bin/netstat/unix.o: freebsd/usr.bin/netstat/unix.c
1106        $(CC) $(CPPFLAGS) $(CFLAGS) -DINET6 -c $< -o $@
1107
1108TEST_DHCPCD01 = testsuite/dhcpcd01/dhcpcd01.exe
1109TEST_DHCPCD01_O_FILES =
1110TEST_DHCPCD01_D_FILES =
1111TEST_DHCPCD01_O_FILES += testsuite/dhcpcd01/test_main.o
1112TEST_DHCPCD01_D_FILES += testsuite/dhcpcd01/test_main.d
1113$(TEST_DHCPCD01): $(TEST_DHCPCD01_O_FILES) $(LIB)
1114        $(LINK.c) -Wl,-Map,testsuite/dhcpcd01/dhcpcd01.map $^ -lm -lz -o $@
1115NET_TESTS += $(TEST_DHCPCD01)
1116O_FILES += $(TEST_DHCPCD01_O_FILES)
1117D_FILES += $(TEST_DHCPCD01_D_FILES)
1118
1119TEST_DHCPCD02 = testsuite/dhcpcd02/dhcpcd02.exe
1120TEST_DHCPCD02_O_FILES =
1121TEST_DHCPCD02_D_FILES =
1122TEST_DHCPCD02_O_FILES += testsuite/dhcpcd02/test_main.o
1123TEST_DHCPCD02_D_FILES += testsuite/dhcpcd02/test_main.d
1124$(TEST_DHCPCD02): $(TEST_DHCPCD02_O_FILES) $(LIB)
1125        $(LINK.c) -Wl,-Map,testsuite/dhcpcd02/dhcpcd02.map $^ -lm -lz -o $@
1126NET_TESTS += $(TEST_DHCPCD02)
1127O_FILES += $(TEST_DHCPCD02_O_FILES)
1128D_FILES += $(TEST_DHCPCD02_D_FILES)
1129
1130TEST_ARPHOLE = testsuite/arphole/arphole.exe
1131TEST_ARPHOLE_O_FILES =
1132TEST_ARPHOLE_D_FILES =
1133TEST_ARPHOLE_O_FILES += testsuite/arphole/test_main.o
1134TEST_ARPHOLE_D_FILES += testsuite/arphole/test_main.d
1135$(TEST_ARPHOLE): $(TEST_ARPHOLE_O_FILES) $(LIB)
1136        $(LINK.c) -Wl,-Map,testsuite/arphole/arphole.map $^ -lm -lz -o $@
1137NET_TESTS += $(TEST_ARPHOLE)
1138O_FILES += $(TEST_ARPHOLE_O_FILES)
1139D_FILES += $(TEST_ARPHOLE_D_FILES)
1140
1141TEST_UNIX01 = testsuite/unix01/unix01.exe
1142TEST_UNIX01_O_FILES =
1143TEST_UNIX01_D_FILES =
1144TEST_UNIX01_O_FILES += testsuite/unix01/test_main.o
1145TEST_UNIX01_D_FILES += testsuite/unix01/test_main.d
1146$(TEST_UNIX01): $(TEST_UNIX01_O_FILES) $(LIB)
1147        $(LINK.c) -Wl,-Map,testsuite/unix01/unix01.map $^ -lm -lz -o $@
1148TESTS += $(TEST_UNIX01)
1149O_FILES += $(TEST_UNIX01_O_FILES)
1150D_FILES += $(TEST_UNIX01_D_FILES)
1151RUN_TESTS += $(TEST_UNIX01)
1152
1153TEST_FTPD01 = testsuite/ftpd01/ftpd01.exe
1154TEST_FTPD01_O_FILES =
1155TEST_FTPD01_D_FILES =
1156TEST_FTPD01_O_FILES += testsuite/ftpd01/test_main.o
1157TEST_FTPD01_D_FILES += testsuite/ftpd01/test_main.d
1158$(TEST_FTPD01): $(TEST_FTPD01_O_FILES) $(LIB)
1159        $(LINK.c) -Wl,-Map,testsuite/ftpd01/ftpd01.map $^ -lm -lz -o $@
1160NET_TESTS += $(TEST_FTPD01)
1161O_FILES += $(TEST_FTPD01_O_FILES)
1162D_FILES += $(TEST_FTPD01_D_FILES)
1163RUN_NET_TESTS += $(TEST_FTPD01)
1164
1165TEST_PING01 = testsuite/ping01/ping01.exe
1166TEST_PING01_O_FILES =
1167TEST_PING01_D_FILES =
1168TEST_PING01_O_FILES += testsuite/ping01/test_main.o
1169TEST_PING01_D_FILES += testsuite/ping01/test_main.d
1170$(TEST_PING01): $(TEST_PING01_O_FILES) $(LIB)
1171        $(LINK.c) -Wl,-Map,testsuite/ping01/ping01.map $^ -lm -lz -o $@
1172NET_TESTS += $(TEST_PING01)
1173O_FILES += $(TEST_PING01_O_FILES)
1174D_FILES += $(TEST_PING01_D_FILES)
1175RUN_NET_TESTS += $(TEST_PING01)
1176
1177TEST_SELECTPOLLKQUEUE01 = testsuite/selectpollkqueue01/selectpollkqueue01.exe
1178TEST_SELECTPOLLKQUEUE01_O_FILES =
1179TEST_SELECTPOLLKQUEUE01_D_FILES =
1180TEST_SELECTPOLLKQUEUE01_O_FILES += testsuite/selectpollkqueue01/test_main.o
1181TEST_SELECTPOLLKQUEUE01_D_FILES += testsuite/selectpollkqueue01/test_main.d
1182$(TEST_SELECTPOLLKQUEUE01): $(TEST_SELECTPOLLKQUEUE01_O_FILES) $(LIB)
1183        $(LINK.c) -Wl,-Map,testsuite/selectpollkqueue01/selectpollkqueue01.map $^ -lm -lz -o $@
1184TESTS += $(TEST_SELECTPOLLKQUEUE01)
1185O_FILES += $(TEST_SELECTPOLLKQUEUE01_O_FILES)
1186D_FILES += $(TEST_SELECTPOLLKQUEUE01_D_FILES)
1187RUN_TESTS += $(TEST_SELECTPOLLKQUEUE01)
1188
1189TEST_RWLOCK01 = testsuite/rwlock01/rwlock01.exe
1190TEST_RWLOCK01_O_FILES =
1191TEST_RWLOCK01_D_FILES =
1192TEST_RWLOCK01_O_FILES += testsuite/rwlock01/test_main.o
1193TEST_RWLOCK01_D_FILES += testsuite/rwlock01/test_main.d
1194$(TEST_RWLOCK01): $(TEST_RWLOCK01_O_FILES) $(LIB)
1195        $(LINK.c) -Wl,-Map,testsuite/rwlock01/rwlock01.map $^ -lm -lz -o $@
1196TESTS += $(TEST_RWLOCK01)
1197O_FILES += $(TEST_RWLOCK01_O_FILES)
1198D_FILES += $(TEST_RWLOCK01_D_FILES)
1199RUN_TESTS += $(TEST_RWLOCK01)
1200
1201TEST_SLEEP01 = testsuite/sleep01/sleep01.exe
1202TEST_SLEEP01_O_FILES =
1203TEST_SLEEP01_D_FILES =
1204TEST_SLEEP01_O_FILES += testsuite/sleep01/test_main.o
1205TEST_SLEEP01_D_FILES += testsuite/sleep01/test_main.d
1206$(TEST_SLEEP01): $(TEST_SLEEP01_O_FILES) $(LIB)
1207        $(LINK.c) -Wl,-Map,testsuite/sleep01/sleep01.map $^ -lm -lz -o $@
1208TESTS += $(TEST_SLEEP01)
1209O_FILES += $(TEST_SLEEP01_O_FILES)
1210D_FILES += $(TEST_SLEEP01_D_FILES)
1211RUN_TESTS += $(TEST_SLEEP01)
1212
1213TEST_SYSCALLS01 = testsuite/syscalls01/syscalls01.exe
1214TEST_SYSCALLS01_O_FILES =
1215TEST_SYSCALLS01_D_FILES =
1216TEST_SYSCALLS01_O_FILES += testsuite/syscalls01/test_main.o
1217TEST_SYSCALLS01_D_FILES += testsuite/syscalls01/test_main.d
1218$(TEST_SYSCALLS01): $(TEST_SYSCALLS01_O_FILES) $(LIB)
1219        $(LINK.c) -Wl,-Map,testsuite/syscalls01/syscalls01.map $^ -lm -lz -o $@
1220TESTS += $(TEST_SYSCALLS01)
1221O_FILES += $(TEST_SYSCALLS01_O_FILES)
1222D_FILES += $(TEST_SYSCALLS01_D_FILES)
1223RUN_TESTS += $(TEST_SYSCALLS01)
1224
1225TEST_COMMANDS01 = testsuite/commands01/commands01.exe
1226TEST_COMMANDS01_O_FILES =
1227TEST_COMMANDS01_D_FILES =
1228TEST_COMMANDS01_O_FILES += testsuite/commands01/test_main.o
1229TEST_COMMANDS01_D_FILES += testsuite/commands01/test_main.d
1230$(TEST_COMMANDS01): $(TEST_COMMANDS01_O_FILES) $(LIB)
1231        $(LINK.c) -Wl,-Map,testsuite/commands01/commands01.map $^ -lm -lz -o $@
1232TESTS += $(TEST_COMMANDS01)
1233O_FILES += $(TEST_COMMANDS01_O_FILES)
1234D_FILES += $(TEST_COMMANDS01_D_FILES)
1235RUN_TESTS += $(TEST_COMMANDS01)
1236
1237TEST_USB01 = testsuite/usb01/usb01.exe
1238TEST_USB01_O_FILES =
1239TEST_USB01_D_FILES =
1240TEST_USB01_O_FILES += testsuite/usb01/init.o
1241TEST_USB01_D_FILES += testsuite/usb01/init.d
1242TEST_USB01_O_FILES += testsuite/usb01/test-file-system.o
1243TEST_USB01_D_FILES += testsuite/usb01/test-file-system.d
1244$(TEST_USB01): $(TEST_USB01_O_FILES) $(LIB)
1245        $(LINK.c) -Wl,-Map,testsuite/usb01/usb01.map $^ -lm -lz -o $@
1246TESTS += $(TEST_USB01)
1247O_FILES += $(TEST_USB01_O_FILES)
1248D_FILES += $(TEST_USB01_D_FILES)
1249
1250TEST_LOOPBACK01 = testsuite/loopback01/loopback01.exe
1251TEST_LOOPBACK01_O_FILES =
1252TEST_LOOPBACK01_D_FILES =
1253TEST_LOOPBACK01_O_FILES += testsuite/loopback01/test_main.o
1254TEST_LOOPBACK01_D_FILES += testsuite/loopback01/test_main.d
1255$(TEST_LOOPBACK01): $(TEST_LOOPBACK01_O_FILES) $(LIB)
1256        $(LINK.c) -Wl,-Map,testsuite/loopback01/loopback01.map $^ -lm -lz -o $@
1257TESTS += $(TEST_LOOPBACK01)
1258O_FILES += $(TEST_LOOPBACK01_O_FILES)
1259D_FILES += $(TEST_LOOPBACK01_D_FILES)
1260RUN_TESTS += $(TEST_LOOPBACK01)
1261
1262TEST_NETSHELL01 = testsuite/netshell01/netshell01.exe
1263TEST_NETSHELL01_O_FILES =
1264TEST_NETSHELL01_D_FILES =
1265TEST_NETSHELL01_O_FILES += testsuite/netshell01/test_main.o
1266TEST_NETSHELL01_D_FILES += testsuite/netshell01/test_main.d
1267TEST_NETSHELL01_O_FILES += testsuite/netshell01/shellconfig.o
1268TEST_NETSHELL01_D_FILES += testsuite/netshell01/shellconfig.d
1269$(TEST_NETSHELL01): $(TEST_NETSHELL01_O_FILES) $(LIB)
1270        $(LINK.c) -Wl,-Map,testsuite/netshell01/netshell01.map $^ -lm -lz -o $@
1271TESTS += $(TEST_NETSHELL01)
1272O_FILES += $(TEST_NETSHELL01_O_FILES)
1273D_FILES += $(TEST_NETSHELL01_D_FILES)
1274
1275TEST_SWI01 = testsuite/swi01/swi01.exe
1276TEST_SWI01_O_FILES =
1277TEST_SWI01_D_FILES =
1278TEST_SWI01_O_FILES += testsuite/swi01/init.o
1279TEST_SWI01_D_FILES += testsuite/swi01/init.d
1280TEST_SWI01_O_FILES += testsuite/swi01/swi_test.o
1281TEST_SWI01_D_FILES += testsuite/swi01/swi_test.d
1282$(TEST_SWI01): $(TEST_SWI01_O_FILES) $(LIB)
1283        $(LINK.c) -Wl,-Map,testsuite/swi01/swi01.map $^ -lm -lz -o $@
1284TESTS += $(TEST_SWI01)
1285O_FILES += $(TEST_SWI01_O_FILES)
1286D_FILES += $(TEST_SWI01_D_FILES)
1287RUN_TESTS += $(TEST_SWI01)
1288
1289TEST_TIMEOUT01 = testsuite/timeout01/timeout01.exe
1290TEST_TIMEOUT01_O_FILES =
1291TEST_TIMEOUT01_D_FILES =
1292TEST_TIMEOUT01_O_FILES += testsuite/timeout01/init.o
1293TEST_TIMEOUT01_D_FILES += testsuite/timeout01/init.d
1294TEST_TIMEOUT01_O_FILES += testsuite/timeout01/timeout_test.o
1295TEST_TIMEOUT01_D_FILES += testsuite/timeout01/timeout_test.d
1296$(TEST_TIMEOUT01): $(TEST_TIMEOUT01_O_FILES) $(LIB)
1297        $(LINK.c) -Wl,-Map,testsuite/timeout01/timeout01.map $^ -lm -lz -o $@
1298TESTS += $(TEST_TIMEOUT01)
1299O_FILES += $(TEST_TIMEOUT01_O_FILES)
1300D_FILES += $(TEST_TIMEOUT01_D_FILES)
1301RUN_TESTS += $(TEST_TIMEOUT01)
1302
1303TEST_INIT01 = testsuite/init01/init01.exe
1304TEST_INIT01_O_FILES =
1305TEST_INIT01_D_FILES =
1306TEST_INIT01_O_FILES += testsuite/init01/test_main.o
1307TEST_INIT01_D_FILES += testsuite/init01/test_main.d
1308$(TEST_INIT01): $(TEST_INIT01_O_FILES) $(LIB)
1309        $(LINK.c) -Wl,-Map,testsuite/init01/init01.map $^ -lm -lz -o $@
1310TESTS += $(TEST_INIT01)
1311O_FILES += $(TEST_INIT01_O_FILES)
1312D_FILES += $(TEST_INIT01_D_FILES)
1313RUN_TESTS += $(TEST_INIT01)
1314
1315TEST_THREAD01 = testsuite/thread01/thread01.exe
1316TEST_THREAD01_O_FILES =
1317TEST_THREAD01_D_FILES =
1318TEST_THREAD01_O_FILES += testsuite/thread01/test_main.o
1319TEST_THREAD01_D_FILES += testsuite/thread01/test_main.d
1320$(TEST_THREAD01): $(TEST_THREAD01_O_FILES) $(LIB)
1321        $(LINK.c) -Wl,-Map,testsuite/thread01/thread01.map $^ -lm -lz -o $@
1322TESTS += $(TEST_THREAD01)
1323O_FILES += $(TEST_THREAD01_O_FILES)
1324D_FILES += $(TEST_THREAD01_D_FILES)
1325RUN_TESTS += $(TEST_THREAD01)
1326LIB_C_FILES += dhcpcd/arp.c
1327dhcpcd/arp.o: dhcpcd/arp.c
1328        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1329LIB_C_FILES += dhcpcd/auth.c
1330dhcpcd/auth.o: dhcpcd/auth.c
1331        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1332LIB_C_FILES += dhcpcd/bpf.c
1333dhcpcd/bpf.o: dhcpcd/bpf.c
1334        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1335LIB_C_FILES += dhcpcd/common.c
1336dhcpcd/common.o: dhcpcd/common.c
1337        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1338LIB_C_FILES += dhcpcd/dhcp6.c
1339dhcpcd/dhcp6.o: dhcpcd/dhcp6.c
1340        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1341LIB_C_FILES += dhcpcd/dhcp.c
1342dhcpcd/dhcp.o: dhcpcd/dhcp.c
1343        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1344LIB_C_FILES += dhcpcd/dhcpcd.c
1345dhcpcd/dhcpcd.o: dhcpcd/dhcpcd.c
1346        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1347LIB_C_FILES += dhcpcd/dhcpcd-embedded.c
1348dhcpcd/dhcpcd-embedded.o: dhcpcd/dhcpcd-embedded.c
1349        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1350LIB_C_FILES += dhcpcd/dhcp-common.c
1351dhcpcd/dhcp-common.o: dhcpcd/dhcp-common.c
1352        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1353LIB_C_FILES += dhcpcd/duid.c
1354dhcpcd/duid.o: dhcpcd/duid.c
1355        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1356LIB_C_FILES += dhcpcd/eloop.c
1357dhcpcd/eloop.o: dhcpcd/eloop.c
1358        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1359LIB_C_FILES += dhcpcd/if-bsd.c
1360dhcpcd/if-bsd.o: dhcpcd/if-bsd.c
1361        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1362LIB_C_FILES += dhcpcd/if-options.c
1363dhcpcd/if-options.o: dhcpcd/if-options.c
1364        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1365LIB_C_FILES += dhcpcd/if-pref.c
1366dhcpcd/if-pref.o: dhcpcd/if-pref.c
1367        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1368LIB_C_FILES += dhcpcd/ipv4.c
1369dhcpcd/ipv4.o: dhcpcd/ipv4.c
1370        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1371LIB_C_FILES += dhcpcd/ipv4ll.c
1372dhcpcd/ipv4ll.o: dhcpcd/ipv4ll.c
1373        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1374LIB_C_FILES += dhcpcd/ipv6.c
1375dhcpcd/ipv6.o: dhcpcd/ipv6.c
1376        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1377LIB_C_FILES += dhcpcd/ipv6nd.c
1378dhcpcd/ipv6nd.o: dhcpcd/ipv6nd.c
1379        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1380LIB_C_FILES += dhcpcd/net.c
1381dhcpcd/net.o: dhcpcd/net.c
1382        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1383LIB_C_FILES += dhcpcd/platform-bsd.c
1384dhcpcd/platform-bsd.o: dhcpcd/platform-bsd.c
1385        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1386LIB_C_FILES += dhcpcd/compat/pselect.c
1387dhcpcd/compat/pselect.o: dhcpcd/compat/pselect.c
1388        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1389LIB_C_FILES += dhcpcd/crypt/hmac_md5.c
1390dhcpcd/crypt/hmac_md5.o: dhcpcd/crypt/hmac_md5.c
1391        $(CC) $(CPPFLAGS) $(CFLAGS) -D__FreeBSD__ -DTHERE_IS_NO_FORK -DMASTER_ONLY -DINET -DINET6 -c $< -o $@
1392LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell-dhcpcd.c
1393
1394ifeq ($(NEED_DUMMY_PIC_IRQ),yes)
1395CFLAGS += -I rtems-dummy-pic-irq/include
1396endif
1397LIB_O_FILES = $(LIB_C_FILES:%.c=%.o)
1398O_FILES += $(LIB_O_FILES)
1399D_FILES += $(LIB_C_FILES:%.c=%.d)
1400
1401all: $(LIB) $(TESTS) $(TEST_NETWORK_CONFIG) $(NET_TESTS)
1402
1403$(LIB): $(LIB_GEN_FILES) $(LIB_O_FILES)
1404        $(AR) rcu $@ $^
1405
1406run_tests: $(RUN_TESTS)
1407        $(TEST_RUNNER) $^
1408        check_endof
1409
1410run_net_tests: $(RUN_NET_TESTS)
1411        $(TEST_RUNNER) -N -T $(NET_TAP_INTERFACE) $^
1412        check_endof
1413
1414$(TEST_NETWORK_CONFIG): $(TEST_NETWORK_CONFIG).in config.inc
1415        sed -e 's/@NET_CFG_SELF_IP@/$(NET_CFG_SELF_IP)/' \
1416        -e 's/@NET_CFG_NETMASK@/$(NET_CFG_NETMASK)/' \
1417        -e 's/@NET_CFG_PEER_IP@/$(NET_CFG_PEER_IP)/' \
1418        -e 's/@NET_CFG_GATEWAY_IP@/$(NET_CFG_GATEWAY_IP)/' \
1419        < $< > $@
1420
1421CPU_SED  = sed
1422CPU_SED += -e '/arm/d'
1423CPU_SED += -e '/i386/d'
1424CPU_SED += -e '/powerpc/d'
1425CPU_SED += -e '/mips/d'
1426CPU_SED += -e '/sparc64/d'
1427
1428LIB_DIR = $(INSTALL_BASE)/lib
1429INCLUDE_DIR = $(INSTALL_BASE)/lib/include
1430
1431install: $(LIB)
1432        install -d $(LIB_DIR)
1433        install -m 644 $(LIB) $(LIB_DIR)
1434        cd rtemsbsd/include ; for i in `find . -type d` ; do \
1435          install -d $(INCLUDE_DIR)/$$i ; \
1436          install -m 644 $$i/*.h $(INCLUDE_DIR)/$$i ; done
1437        cd freebsd/include ; for i in `find . -type d` ; do \
1438          install -d $(INCLUDE_DIR)/$$i ; \
1439          install -m 644 $$i/*.h $(INCLUDE_DIR)/$$i ; done
1440        for i in bsm cam net net80211 netatalk netinet netinet6 netipsec sys ; do \
1441          install -d $(INCLUDE_DIR)/$$i ; \
1442          install -m 644 freebsd/sys/$$i/*.h $(INCLUDE_DIR)/$$i ; done
1443
1444clean:
1445        rm -f $(LIB_GEN_FILES) $(LIB) $(TESTS) $(O_FILES) $(D_FILES)
1446        rm -f libbsd.html
1447
1448-include $(D_FILES)
1449
1450doc: libbsd.html
1451
1452libbsd.html: libbsd.txt
1453        asciidoc -o libbsd.html libbsd.txt
Note: See TracBrowser for help on using the repository browser.