source: rtems-libbsd/Makefile @ f5a38ad

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since f5a38ad was f5a38ad, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 8, 2013 at 10:52:30 AM

Simplify config.inc and use new reference BSP

Use arm/realview_pbx_a9_qemu as the new reference BSP. This BSP offeres
NULL pointer read/write protection and runs on the Qemu simulator. With
this BSP it is possible to run network tests which use a virtual network
based on TAP devices.

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