source: rtems-libbsd/Makefile @ 8a5d1da

4.115-freebsd-12freebsd-9.3
Last change on this file since 8a5d1da was 8a5d1da, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 31, 2013 at 9:46:08 AM

lib/libc/net/rthdr.c: Add from FreeBSD

  • Property mode set to 100644
File size: 41.1 KB
Line 
1include config.inc
2
3include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
4include $(RTEMS_CUSTOM)
5include $(PROJECT_ROOT)/make/leaf.cfg
6
7CFLAGS += -ffreestanding
8CFLAGS += -fno-common
9CFLAGS += -Irtemsbsd/include
10CFLAGS += -Irtemsbsd/$(RTEMS_CPU)/include
11CFLAGS += -Ifreebsd/sys
12CFLAGS += -Ifreebsd/sys/$(RTEMS_CPU)/include
13CFLAGS += -Ifreebsd/sys/contrib/altq
14CFLAGS += -Ifreebsd/sys/contrib/pf
15CFLAGS += -Icopied/rtemsbsd/$(RTEMS_CPU)/include
16CFLAGS += -Ifreebsd/include
17CFLAGS += -Ifreebsd/lib/libc/include
18CFLAGS += -Ifreebsd/lib/libc/isc/include
19CFLAGS += -Ifreebsd/lib/libc/resolv
20CFLAGS += -Ifreebsd/lib/libutil
21CFLAGS += -Ifreebsd/lib/libkvm
22CFLAGS += -Ifreebsd/lib/libmemstat
23CFLAGS += -Ifreebsd/lib/libipsec
24CFLAGS += -Itestsuite/include
25CFLAGS += -D__FreeBSD__
26CFLAGS += -D__DBINTERFACE_PRIVATE
27CFLAGS += -w
28CFLAGS += -std=gnu99
29CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d
30NEED_DUMMY_PIC_IRQ=yes
31
32# do nothing default so sed on rtems-bsd-config.h always works.
33SED_PATTERN += -e 's/^//'
34
35TESTS =
36RUN_TESTS =
37O_FILES =
38D_FILES =
39
40LIB = libbsd.a
41LIB_GEN_FILES = rtemsbsd/include/machine/rtems-bsd-config.h
42LIB_C_FILES =
43LIB_C_FILES += rtemsbsd/local/bus_if.c
44LIB_C_FILES += rtemsbsd/local/cryptodev_if.c
45LIB_C_FILES += rtemsbsd/local/device_if.c
46LIB_C_FILES += rtemsbsd/local/miibus_if.c
47LIB_C_FILES += rtemsbsd/local/pcib_if.c
48LIB_C_FILES += rtemsbsd/local/pci_if.c
49LIB_C_FILES += rtemsbsd/local/usb_if.c
50LIB_C_FILES += rtemsbsd/rtems/ipsec_get_policylen.c
51LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-assert.c
52LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-autoconf.c
53LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-bus-dma.c
54LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-bus-dma-mbuf.c
55LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-cam.c
56LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-chunk.c
57LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-condvar.c
58LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-conf.c
59LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-delay.c
60LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-get-file.c
61LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-init.c
62LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-init-with-irq.c
63LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-jail.c
64LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-kern_synch.c
65LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-lock.c
66LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-log.c
67LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-malloc.c
68LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-mutex.c
69LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-newproc.c
70LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-nexus.c
71LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-panic.c
72LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-pci_bus.c
73LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-pci_cfgreg.c
74LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-program.c
75LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-rwlock.c
76LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell.c
77LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-shell-netcmds.c
78LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-signal.c
79LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-support.c
80LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sx.c
81LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-syscall-api.c
82LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sysctlbyname.c
83LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sysctl.c
84LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-sysctlnametomib.c
85LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-thread.c
86LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-timesupport.c
87LIB_C_FILES += rtemsbsd/rtems/rtems-kvm.c
88LIB_C_FILES += rtemsbsd/rtems/rtems-net-setup.c
89LIB_C_FILES += rtemsbsd/rtems/rtems-syslog-initialize.c
90LIB_C_FILES += rtemsbsd/rtems/syslog.c
91LIB_C_FILES += rtemsbsd/sys/dev/usb/controller/ehci_mpc83xx.c
92LIB_C_FILES += rtemsbsd/sys/dev/usb/controller/ohci_lpc24xx.c
93LIB_C_FILES += rtemsbsd/sys/dev/usb/controller/ohci_lpc32xx.c
94LIB_GEN_FILES += rtemsbsd/rtems/rtems-kvm-symbols.c
95LIB_C_FILES += rtemsbsd/rtems/rtems-kvm-symbols.c
96rtemsbsd/rtems/rtems-kvm-symbols.c: rtemsbsd/rtems/generate_kvm_symbols
97        ./$< > $@
98LIB_GEN_FILES += freebsd/lib/libc/net/nslexer.c
99LIB_C_FILES += freebsd/lib/libc/net/nslexer.c
100freebsd/lib/libc/net/nslexer.c: freebsd/lib/libc/net/nslexer.l freebsd/lib/libc/net/nsparser.c
101        ${LEX} -P _nsyy -t $< | sed -e '/YY_BUF_SIZE/s/16384/1024/' > $@
102LIB_GEN_FILES += freebsd/lib/libc/net/nsparser.c
103LIB_C_FILES += freebsd/lib/libc/net/nsparser.c
104freebsd/lib/libc/net/nsparser.c: freebsd/lib/libc/net/nsparser.y
105        yacc -b _nsyy -d -p _nsyy $<
106        sed -e /YY_BUF_SIZE/s/16384/1024/ < _nsyy.tab.c > $@
107        rm -f _nsyy.tab.c
108        mv _nsyy.tab.h freebsd/lib/libc/net/nsparser.h
109LIB_GEN_FILES += freebsd/lib/libipsec/policy_token.c
110LIB_C_FILES += freebsd/lib/libipsec/policy_token.c
111freebsd/lib/libipsec/policy_token.c: freebsd/lib/libipsec/policy_token.l freebsd/lib/libipsec/policy_parse.c
112        ${LEX} -P __libipsecyy -t $< | sed -e '/YY_BUF_SIZE/s/16384/1024/' > $@
113LIB_GEN_FILES += freebsd/lib/libipsec/policy_parse.c
114LIB_C_FILES += freebsd/lib/libipsec/policy_parse.c
115freebsd/lib/libipsec/policy_parse.c: freebsd/lib/libipsec/policy_parse.y
116        yacc -b __libipsecyy -d -p __libipsecyy $<
117        sed -e /YY_BUF_SIZE/s/16384/1024/ < __libipsecyy.tab.c > $@
118        rm -f __libipsecyy.tab.c
119        mv __libipsecyy.tab.h freebsd/lib/libipsec/y.tab.h
120LIB_C_FILES += freebsd/sys/kern/init_main.c
121LIB_C_FILES += freebsd/sys/kern/kern_event.c
122LIB_C_FILES += freebsd/sys/kern/kern_intr.c
123LIB_C_FILES += freebsd/sys/kern/kern_linker.c
124LIB_C_FILES += freebsd/sys/kern/kern_mbuf.c
125LIB_C_FILES += freebsd/sys/kern/kern_mib.c
126LIB_C_FILES += freebsd/sys/kern/kern_module.c
127LIB_C_FILES += freebsd/sys/kern/kern_mtxpool.c
128LIB_C_FILES += freebsd/sys/kern/kern_subr.c
129LIB_C_FILES += freebsd/sys/kern/kern_sysctl.c
130LIB_C_FILES += freebsd/sys/kern/kern_time.c
131LIB_C_FILES += freebsd/sys/kern/kern_timeout.c
132LIB_C_FILES += freebsd/sys/kern/subr_bufring.c
133LIB_C_FILES += freebsd/sys/kern/subr_bus.c
134LIB_C_FILES += freebsd/sys/kern/subr_eventhandler.c
135LIB_C_FILES += freebsd/sys/kern/subr_hints.c
136LIB_C_FILES += freebsd/sys/kern/subr_kobj.c
137LIB_C_FILES += freebsd/sys/kern/subr_module.c
138LIB_C_FILES += freebsd/sys/kern/subr_rman.c
139LIB_C_FILES += freebsd/sys/kern/subr_sbuf.c
140LIB_C_FILES += freebsd/sys/kern/subr_taskqueue.c
141LIB_C_FILES += freebsd/sys/kern/subr_unit.c
142LIB_C_FILES += freebsd/sys/kern/sys_generic.c
143LIB_C_FILES += freebsd/sys/kern/uipc_accf.c
144LIB_C_FILES += freebsd/sys/kern/uipc_domain.c
145LIB_C_FILES += freebsd/sys/kern/uipc_mbuf2.c
146LIB_C_FILES += freebsd/sys/kern/uipc_mbuf.c
147LIB_C_FILES += freebsd/sys/kern/uipc_sockbuf.c
148LIB_C_FILES += freebsd/sys/kern/uipc_socket.c
149LIB_C_FILES += freebsd/sys/libkern/arc4random.c
150LIB_C_FILES += freebsd/sys/libkern/fls.c
151LIB_C_FILES += freebsd/sys/libkern/inet_ntoa.c
152LIB_C_FILES += freebsd/sys/libkern/random.c
153LIB_C_FILES += freebsd/sys/vm/uma_core.c
154LIB_C_FILES += freebsd/sys/kern/sys_socket.c
155LIB_C_FILES += freebsd/sys/kern/uipc_syscalls.c
156LIB_C_FILES += freebsd/sys/net/bridgestp.c
157LIB_C_FILES += freebsd/sys/net/ieee8023ad_lacp.c
158LIB_C_FILES += freebsd/sys/net/if_atmsubr.c
159LIB_C_FILES += freebsd/sys/net/if.c
160LIB_C_FILES += freebsd/sys/net/if_clone.c
161LIB_C_FILES += freebsd/sys/net/if_dead.c
162LIB_C_FILES += freebsd/sys/net/if_disc.c
163LIB_C_FILES += freebsd/sys/net/if_edsc.c
164LIB_C_FILES += freebsd/sys/net/if_ef.c
165LIB_C_FILES += freebsd/sys/net/if_enc.c
166LIB_C_FILES += freebsd/sys/net/if_epair.c
167LIB_C_FILES += freebsd/sys/net/if_faith.c
168LIB_C_FILES += freebsd/sys/net/if_fddisubr.c
169LIB_C_FILES += freebsd/sys/net/if_fwsubr.c
170LIB_C_FILES += freebsd/sys/net/if_gif.c
171LIB_C_FILES += freebsd/sys/net/if_gre.c
172LIB_C_FILES += freebsd/sys/net/if_iso88025subr.c
173LIB_C_FILES += freebsd/sys/net/if_lagg.c
174LIB_C_FILES += freebsd/sys/net/if_llatbl.c
175LIB_C_FILES += freebsd/sys/net/if_loop.c
176LIB_C_FILES += freebsd/sys/net/if_media.c
177LIB_C_FILES += freebsd/sys/net/if_mib.c
178LIB_C_FILES += freebsd/sys/net/if_spppfr.c
179LIB_C_FILES += freebsd/sys/net/if_spppsubr.c
180LIB_C_FILES += freebsd/sys/net/if_tap.c
181LIB_C_FILES += freebsd/sys/net/if_tun.c
182LIB_C_FILES += freebsd/sys/net/if_vlan.c
183LIB_C_FILES += freebsd/sys/net/pfil.c
184LIB_C_FILES += freebsd/sys/net/radix.c
185LIB_C_FILES += freebsd/sys/net/radix_mpath.c
186LIB_C_FILES += freebsd/sys/net/raw_cb.c
187LIB_C_FILES += freebsd/sys/net/raw_usrreq.c
188LIB_C_FILES += freebsd/sys/net/route.c
189LIB_C_FILES += freebsd/sys/net/rtsock.c
190LIB_C_FILES += freebsd/sys/net/slcompress.c
191LIB_C_FILES += freebsd/sys/net/bpf_buffer.c
192LIB_C_FILES += freebsd/sys/net/bpf.c
193LIB_C_FILES += freebsd/sys/net/bpf_filter.c
194LIB_C_FILES += freebsd/sys/net/bpf_jitter.c
195LIB_C_FILES += freebsd/sys/net/if_arcsubr.c
196LIB_C_FILES += freebsd/sys/net/if_bridge.c
197LIB_C_FILES += freebsd/sys/net/if_ethersubr.c
198LIB_C_FILES += freebsd/sys/net/netisr.c
199LIB_C_FILES += freebsd/sys/netinet/accf_data.c
200LIB_C_FILES += freebsd/sys/netinet/accf_dns.c
201LIB_C_FILES += freebsd/sys/netinet/accf_http.c
202LIB_C_FILES += freebsd/sys/netinet/if_atm.c
203LIB_C_FILES += freebsd/sys/netinet/if_ether.c
204LIB_C_FILES += freebsd/sys/netinet/igmp.c
205LIB_C_FILES += freebsd/sys/netinet/in.c
206LIB_C_FILES += freebsd/sys/netinet/in_gif.c
207LIB_C_FILES += freebsd/sys/netinet/in_mcast.c
208LIB_C_FILES += freebsd/sys/netinet/in_pcb.c
209LIB_C_FILES += freebsd/sys/netinet/in_proto.c
210LIB_C_FILES += freebsd/sys/netinet/in_rmx.c
211LIB_C_FILES += freebsd/sys/netinet/ip_carp.c
212LIB_C_FILES += freebsd/sys/netinet/ip_divert.c
213LIB_C_FILES += freebsd/sys/netinet/ip_ecn.c
214LIB_C_FILES += freebsd/sys/netinet/ip_encap.c
215LIB_C_FILES += freebsd/sys/netinet/ip_fastfwd.c
216LIB_C_FILES += freebsd/sys/netinet/ip_gre.c
217LIB_C_FILES += freebsd/sys/netinet/ip_icmp.c
218LIB_C_FILES += freebsd/sys/netinet/ip_id.c
219LIB_C_FILES += freebsd/sys/netinet/ip_input.c
220LIB_C_FILES += freebsd/sys/netinet/ip_ipsec.c
221LIB_C_FILES += freebsd/sys/netinet/ip_mroute.c
222LIB_C_FILES += freebsd/sys/netinet/ip_options.c
223LIB_C_FILES += freebsd/sys/netinet/ip_output.c
224LIB_C_FILES += freebsd/sys/netinet/raw_ip.c
225LIB_C_FILES += freebsd/sys/netinet/sctp_asconf.c
226LIB_C_FILES += freebsd/sys/netinet/sctp_auth.c
227LIB_C_FILES += freebsd/sys/netinet/sctp_bsd_addr.c
228LIB_C_FILES += freebsd/sys/netinet/sctp_cc_functions.c
229LIB_C_FILES += freebsd/sys/netinet/sctp_crc32.c
230LIB_C_FILES += freebsd/sys/netinet/sctp_indata.c
231LIB_C_FILES += freebsd/sys/netinet/sctp_input.c
232LIB_C_FILES += freebsd/sys/netinet/sctp_output.c
233LIB_C_FILES += freebsd/sys/netinet/sctp_pcb.c
234LIB_C_FILES += freebsd/sys/netinet/sctp_peeloff.c
235LIB_C_FILES += freebsd/sys/netinet/sctp_sysctl.c
236LIB_C_FILES += freebsd/sys/netinet/sctp_timer.c
237LIB_C_FILES += freebsd/sys/netinet/sctp_usrreq.c
238LIB_C_FILES += freebsd/sys/netinet/sctputil.c
239LIB_C_FILES += freebsd/sys/netinet/tcp_debug.c
240LIB_C_FILES += freebsd/sys/netinet/tcp_input.c
241LIB_C_FILES += freebsd/sys/netinet/tcp_lro.c
242LIB_C_FILES += freebsd/sys/netinet/tcp_offload.c
243LIB_C_FILES += freebsd/sys/netinet/tcp_output.c
244LIB_C_FILES += freebsd/sys/netinet/tcp_reass.c
245LIB_C_FILES += freebsd/sys/netinet/tcp_sack.c
246LIB_C_FILES += freebsd/sys/netinet/tcp_subr.c
247LIB_C_FILES += freebsd/sys/netinet/tcp_syncache.c
248LIB_C_FILES += freebsd/sys/netinet/tcp_timer.c
249LIB_C_FILES += freebsd/sys/netinet/tcp_timewait.c
250LIB_C_FILES += freebsd/sys/netinet/tcp_usrreq.c
251LIB_C_FILES += freebsd/sys/netinet/udp_usrreq.c
252LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_fifo.c
253LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_rr.c
254LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_log.c
255LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_qfq.c
256LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_prio.c
257LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_dn_glue.c
258LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw2.c
259LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_heap.c
260LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_dummynet.c
261LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_sockopt.c
262LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_wf2q.c
263LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_nat.c
264LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_pfil.c
265LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_dn_io.c
266LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_table.c
267LIB_C_FILES += freebsd/sys/netinet/libalias/alias_dummy.c
268LIB_C_FILES += freebsd/sys/netinet/libalias/alias_pptp.c
269LIB_C_FILES += freebsd/sys/netinet/libalias/alias_smedia.c
270LIB_C_FILES += freebsd/sys/netinet/libalias/alias_mod.c
271LIB_C_FILES += freebsd/sys/netinet/libalias/alias_cuseeme.c
272LIB_C_FILES += freebsd/sys/netinet/libalias/alias_nbt.c
273LIB_C_FILES += freebsd/sys/netinet/libalias/alias_irc.c
274LIB_C_FILES += freebsd/sys/netinet/libalias/alias_util.c
275LIB_C_FILES += freebsd/sys/netinet/libalias/alias_db.c
276LIB_C_FILES += freebsd/sys/netinet/libalias/alias_ftp.c
277LIB_C_FILES += freebsd/sys/netinet/libalias/alias_proxy.c
278LIB_C_FILES += freebsd/sys/netinet/libalias/alias.c
279LIB_C_FILES += freebsd/sys/netinet/libalias/alias_skinny.c
280LIB_C_FILES += freebsd/sys/netinet/libalias/alias_sctp.c
281ifneq ($(DISABLE_IPV6),yes)
282LIB_C_FILES += freebsd/sys/net/if_stf.c
283LIB_C_FILES += freebsd/sys/netinet6/dest6.c
284LIB_C_FILES += freebsd/sys/netinet6/frag6.c
285LIB_C_FILES += freebsd/sys/netinet6/icmp6.c
286LIB_C_FILES += freebsd/sys/netinet6/in6.c
287LIB_C_FILES += freebsd/sys/netinet6/in6_cksum.c
288LIB_C_FILES += freebsd/sys/netinet6/in6_gif.c
289LIB_C_FILES += freebsd/sys/netinet6/in6_ifattach.c
290LIB_C_FILES += freebsd/sys/netinet6/in6_mcast.c
291LIB_C_FILES += freebsd/sys/netinet6/in6_pcb.c
292LIB_C_FILES += freebsd/sys/netinet6/in6_proto.c
293LIB_C_FILES += freebsd/sys/netinet6/in6_rmx.c
294LIB_C_FILES += freebsd/sys/netinet6/in6_src.c
295LIB_C_FILES += freebsd/sys/netinet6/ip6_forward.c
296LIB_C_FILES += freebsd/sys/netinet6/ip6_id.c
297LIB_C_FILES += freebsd/sys/netinet6/ip6_input.c
298LIB_C_FILES += freebsd/sys/netinet6/ip6_ipsec.c
299LIB_C_FILES += freebsd/sys/netinet6/ip6_mroute.c
300LIB_C_FILES += freebsd/sys/netinet6/ip6_output.c
301LIB_C_FILES += freebsd/sys/netinet6/mld6.c
302LIB_C_FILES += freebsd/sys/netinet6/nd6.c
303LIB_C_FILES += freebsd/sys/netinet6/nd6_nbr.c
304LIB_C_FILES += freebsd/sys/netinet6/nd6_rtr.c
305LIB_C_FILES += freebsd/sys/netinet6/raw_ip6.c
306LIB_C_FILES += freebsd/sys/netinet6/route6.c
307LIB_C_FILES += freebsd/sys/netinet6/scope6.c
308LIB_C_FILES += freebsd/sys/netinet6/sctp6_usrreq.c
309LIB_C_FILES += freebsd/sys/netinet6/udp6_usrreq.c
310else
311SED_PATTERN += -e 's/^\#define INET6 1/\/\/ \#define INET6 1/'
312endif # DISABLE_IPV6
313LIB_C_FILES += freebsd/sys/netipsec/ipsec.c
314LIB_C_FILES += freebsd/sys/netipsec/ipsec_input.c
315LIB_C_FILES += freebsd/sys/netipsec/ipsec_mbuf.c
316LIB_C_FILES += freebsd/sys/netipsec/ipsec_output.c
317LIB_C_FILES += freebsd/sys/netipsec/key.c
318LIB_C_FILES += freebsd/sys/netipsec/key_debug.c
319LIB_C_FILES += freebsd/sys/netipsec/keysock.c
320LIB_C_FILES += freebsd/sys/netipsec/xform_ah.c
321LIB_C_FILES += freebsd/sys/netipsec/xform_esp.c
322LIB_C_FILES += freebsd/sys/netipsec/xform_ipcomp.c
323LIB_C_FILES += freebsd/sys/netipsec/xform_ipip.c
324LIB_C_FILES += freebsd/sys/netipsec/xform_tcp.c
325LIB_C_FILES += freebsd/sys/net80211/ieee80211_acl.c
326LIB_C_FILES += freebsd/sys/net80211/ieee80211_action.c
327LIB_C_FILES += freebsd/sys/net80211/ieee80211_adhoc.c
328LIB_C_FILES += freebsd/sys/net80211/ieee80211_ageq.c
329LIB_C_FILES += freebsd/sys/net80211/ieee80211_amrr.c
330LIB_C_FILES += freebsd/sys/net80211/ieee80211.c
331LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto.c
332LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto_ccmp.c
333LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto_none.c
334LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto_tkip.c
335LIB_C_FILES += freebsd/sys/net80211/ieee80211_crypto_wep.c
336LIB_C_FILES += freebsd/sys/net80211/ieee80211_ddb.c
337LIB_C_FILES += freebsd/sys/net80211/ieee80211_dfs.c
338LIB_C_FILES += freebsd/sys/net80211/ieee80211_freebsd.c
339LIB_C_FILES += freebsd/sys/net80211/ieee80211_hostap.c
340LIB_C_FILES += freebsd/sys/net80211/ieee80211_ht.c
341LIB_C_FILES += freebsd/sys/net80211/ieee80211_hwmp.c
342LIB_C_FILES += freebsd/sys/net80211/ieee80211_input.c
343LIB_C_FILES += freebsd/sys/net80211/ieee80211_ioctl.c
344LIB_C_FILES += freebsd/sys/net80211/ieee80211_mesh.c
345LIB_C_FILES += freebsd/sys/net80211/ieee80211_monitor.c
346LIB_C_FILES += freebsd/sys/net80211/ieee80211_node.c
347LIB_C_FILES += freebsd/sys/net80211/ieee80211_output.c
348LIB_C_FILES += freebsd/sys/net80211/ieee80211_phy.c
349LIB_C_FILES += freebsd/sys/net80211/ieee80211_power.c
350LIB_C_FILES += freebsd/sys/net80211/ieee80211_proto.c
351LIB_C_FILES += freebsd/sys/net80211/ieee80211_radiotap.c
352LIB_C_FILES += freebsd/sys/net80211/ieee80211_ratectl.c
353LIB_C_FILES += freebsd/sys/net80211/ieee80211_ratectl_none.c
354LIB_C_FILES += freebsd/sys/net80211/ieee80211_regdomain.c
355LIB_C_FILES += freebsd/sys/net80211/ieee80211_rssadapt.c
356LIB_C_FILES += freebsd/sys/net80211/ieee80211_scan.c
357LIB_C_FILES += freebsd/sys/net80211/ieee80211_scan_sta.c
358LIB_C_FILES += freebsd/sys/net80211/ieee80211_sta.c
359LIB_C_FILES += freebsd/sys/net80211/ieee80211_superg.c
360LIB_C_FILES += freebsd/sys/net80211/ieee80211_tdma.c
361LIB_C_FILES += freebsd/sys/net80211/ieee80211_wds.c
362LIB_C_FILES += freebsd/sys/net80211/ieee80211_xauth.c
363LIB_C_FILES += freebsd/sys/opencrypto/crypto.c
364LIB_C_FILES += freebsd/sys/opencrypto/deflate.c
365LIB_C_FILES += freebsd/sys/opencrypto/cryptosoft.c
366LIB_C_FILES += freebsd/sys/opencrypto/criov.c
367LIB_C_FILES += freebsd/sys/opencrypto/rmd160.c
368LIB_C_FILES += freebsd/sys/opencrypto/xform.c
369LIB_C_FILES += freebsd/sys/opencrypto/skipjack.c
370LIB_C_FILES += freebsd/sys/opencrypto/cast.c
371LIB_C_FILES += freebsd/sys/opencrypto/cryptodev.c
372LIB_C_FILES += freebsd/sys/crypto/sha1.c
373LIB_C_FILES += freebsd/sys/crypto/sha2/sha2.c
374LIB_C_FILES += freebsd/sys/crypto/rijndael/rijndael-alg-fst.c
375LIB_C_FILES += freebsd/sys/crypto/rijndael/rijndael-api.c
376LIB_C_FILES += freebsd/sys/crypto/rijndael/rijndael-api-fst.c
377LIB_C_FILES += freebsd/sys/crypto/des/des_setkey.c
378LIB_C_FILES += freebsd/sys/crypto/des/des_enc.c
379LIB_C_FILES += freebsd/sys/crypto/des/des_ecb.c
380LIB_C_FILES += freebsd/sys/crypto/blowfish/bf_enc.c
381LIB_C_FILES += freebsd/sys/crypto/blowfish/bf_skey.c
382LIB_C_FILES += freebsd/sys/crypto/blowfish/bf_ecb.c
383LIB_C_FILES += freebsd/sys/crypto/rc4/rc4.c
384LIB_C_FILES += freebsd/sys/crypto/camellia/camellia-api.c
385LIB_C_FILES += freebsd/sys/crypto/camellia/camellia.c
386LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_rmclass.c
387LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_rio.c
388LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_subr.c
389LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_cdnr.c
390LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_priq.c
391LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_cbq.c
392LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_hfsc.c
393LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_red.c
394LIB_C_FILES += freebsd/sys/contrib/pf/netinet/in4_cksum.c
395LIB_C_FILES += freebsd/sys/contrib/pf/net/pf.c
396LIB_C_FILES += freebsd/sys/contrib/pf/net/if_pflog.c
397LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_subr.c
398LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_ioctl.c
399LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_table.c
400LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_if.c
401LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_osfp.c
402LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_norm.c
403LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_ruleset.c
404LIB_C_FILES += freebsd/sys/contrib/pf/net/if_pfsync.c
405LIB_C_FILES += freebsd/sys/dev/mii/mii.c
406LIB_C_FILES += freebsd/sys/dev/mii/mii_physubr.c
407LIB_C_FILES += freebsd/sys/dev/mii/icsphy.c
408LIB_C_FILES += freebsd/sys/dev/mii/brgphy.c
409LIB_C_FILES += freebsd/sys/dev/usb/usb_busdma.c
410LIB_C_FILES += freebsd/sys/dev/usb/usb_core.c
411LIB_C_FILES += freebsd/sys/dev/usb/usb_debug.c
412LIB_C_FILES += freebsd/sys/dev/usb/usb_dev.c
413LIB_C_FILES += freebsd/sys/dev/usb/usb_device.c
414LIB_C_FILES += freebsd/sys/dev/usb/usb_dynamic.c
415LIB_C_FILES += freebsd/sys/dev/usb/usb_error.c
416LIB_C_FILES += freebsd/sys/dev/usb/usb_generic.c
417LIB_C_FILES += freebsd/sys/dev/usb/usb_handle_request.c
418LIB_C_FILES += freebsd/sys/dev/usb/usb_hid.c
419LIB_C_FILES += freebsd/sys/dev/usb/usb_hub.c
420LIB_C_FILES += freebsd/sys/dev/usb/usb_lookup.c
421LIB_C_FILES += freebsd/sys/dev/usb/usb_mbuf.c
422LIB_C_FILES += freebsd/sys/dev/usb/usb_msctest.c
423LIB_C_FILES += freebsd/sys/dev/usb/usb_parse.c
424LIB_C_FILES += freebsd/sys/dev/usb/usb_process.c
425LIB_C_FILES += freebsd/sys/dev/usb/usb_request.c
426LIB_C_FILES += freebsd/sys/dev/usb/usb_transfer.c
427LIB_C_FILES += freebsd/sys/dev/usb/usb_util.c
428LIB_C_FILES += freebsd/sys/dev/usb/quirk/usb_quirk.c
429LIB_C_FILES += freebsd/sys/dev/usb/controller/ohci.c
430LIB_C_FILES += freebsd/sys/dev/usb/controller/ehci.c
431LIB_C_FILES += freebsd/sys/dev/usb/controller/usb_controller.c
432LIB_C_FILES += freebsd/sys/cam/cam.c
433LIB_C_FILES += freebsd/sys/cam/scsi/scsi_all.c
434LIB_C_FILES += freebsd/sys/dev/usb/storage/umass.c
435LIB_C_FILES += freebsd/sys/dev/pci/pci.c
436LIB_C_FILES += freebsd/sys/dev/pci/pci_user.c
437LIB_C_FILES += freebsd/sys/dev/pci/pci_pci.c
438ifeq ($(RTEMS_CPU), arm)
439LIB_C_FILES += freebsd/sys/arm/pci/pci_bus.c
440LIB_C_FILES += freebsd/sys/arm/arm/legacy.c
441NEED_DUMMY_PIC_IRQ=no
442endif
443ifeq ($(RTEMS_CPU), avr)
444LIB_C_FILES += freebsd/sys/avr/pci/pci_bus.c
445LIB_C_FILES += freebsd/sys/avr/avr/legacy.c
446endif
447ifeq ($(RTEMS_CPU), bfin)
448LIB_C_FILES += freebsd/sys/bfin/pci/pci_bus.c
449LIB_C_FILES += freebsd/sys/bfin/bfin/legacy.c
450endif
451ifeq ($(RTEMS_CPU), h8300)
452LIB_C_FILES += freebsd/sys/h8300/pci/pci_bus.c
453LIB_C_FILES += freebsd/sys/h8300/h8300/legacy.c
454endif
455ifeq ($(RTEMS_CPU), i386)
456LIB_C_FILES += freebsd/sys/i386/pci/pci_bus.c
457LIB_C_FILES += freebsd/sys/i386/i386/legacy.c
458NEED_DUMMY_PIC_IRQ=no
459endif
460ifeq ($(RTEMS_CPU), lm32)
461LIB_C_FILES += freebsd/sys/lm32/pci/pci_bus.c
462LIB_C_FILES += freebsd/sys/lm32/lm32/legacy.c
463NEED_DUMMY_PIC_IRQ=no
464endif
465ifeq ($(RTEMS_CPU), m32c)
466LIB_C_FILES += freebsd/sys/m32c/pci/pci_bus.c
467LIB_C_FILES += freebsd/sys/m32c/m32c/legacy.c
468endif
469ifeq ($(RTEMS_CPU), m32r)
470LIB_C_FILES += freebsd/sys/m32r/pci/pci_bus.c
471LIB_C_FILES += freebsd/sys/m32r/m32r/legacy.c
472endif
473ifeq ($(RTEMS_CPU), m68k)
474LIB_C_FILES += freebsd/sys/m68k/pci/pci_bus.c
475LIB_C_FILES += freebsd/sys/m68k/m68k/legacy.c
476endif
477ifeq ($(RTEMS_CPU), mips)
478LIB_C_FILES += freebsd/sys/mips/pci/pci_bus.c
479LIB_C_FILES += freebsd/sys/mips/mips/legacy.c
480NEED_DUMMY_PIC_IRQ=no
481endif
482ifeq ($(RTEMS_CPU), nios2)
483LIB_C_FILES += freebsd/sys/nios2/pci/pci_bus.c
484LIB_C_FILES += freebsd/sys/nios2/nios2/legacy.c
485endif
486ifeq ($(RTEMS_CPU), powerpc)
487LIB_C_FILES += freebsd/sys/powerpc/pci/pci_bus.c
488LIB_C_FILES += freebsd/sys/powerpc/powerpc/legacy.c
489NEED_DUMMY_PIC_IRQ=no
490endif
491ifeq ($(RTEMS_CPU), sh)
492LIB_C_FILES += freebsd/sys/sh/pci/pci_bus.c
493LIB_C_FILES += freebsd/sys/sh/sh/legacy.c
494endif
495ifeq ($(RTEMS_CPU), sparc)
496LIB_C_FILES += freebsd/sys/sparc/pci/pci_bus.c
497LIB_C_FILES += freebsd/sys/sparc/sparc/legacy.c
498NEED_DUMMY_PIC_IRQ=no
499endif
500ifeq ($(RTEMS_CPU), sparc64)
501LIB_C_FILES += freebsd/sys/sparc64/pci/pci_bus.c
502LIB_C_FILES += freebsd/sys/sparc64/sparc64/legacy.c
503endif
504ifeq ($(RTEMS_CPU), v850)
505LIB_C_FILES += freebsd/sys/v850/pci/pci_bus.c
506LIB_C_FILES += freebsd/sys/v850/v850/legacy.c
507endif
508LIB_C_FILES += freebsd/sys/dev/random/harvest.c
509LIB_C_FILES += freebsd/sys/netinet/tcp_hostcache.c
510LIB_C_FILES += freebsd/sys/dev/led/led.c
511LIB_C_FILES += freebsd/sys/netatalk/aarp.c
512LIB_C_FILES += freebsd/sys/netatalk/at_control.c
513LIB_C_FILES += freebsd/sys/netatalk/at_rmx.c
514LIB_C_FILES += freebsd/sys/netatalk/ddp_input.c
515LIB_C_FILES += freebsd/sys/netatalk/ddp_pcb.c
516LIB_C_FILES += freebsd/sys/netatalk/ddp_usrreq.c
517LIB_C_FILES += freebsd/sys/netatalk/at_proto.c
518LIB_C_FILES += freebsd/sys/netatalk/ddp_output.c
519LIB_C_FILES += freebsd/sys/dev/re/if_re.c
520LIB_C_FILES += freebsd/sys/dev/fxp/if_fxp.c
521LIB_C_FILES += freebsd/sys/dev/e1000/e1000_80003es2lan.c
522LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82542.c
523LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82575.c
524LIB_C_FILES += freebsd/sys/dev/e1000/e1000_mac.c
525LIB_C_FILES += freebsd/sys/dev/e1000/e1000_nvm.c
526LIB_C_FILES += freebsd/sys/dev/e1000/e1000_vf.c
527LIB_C_FILES += freebsd/sys/dev/e1000/if_lem.c
528LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82540.c
529LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82543.c
530LIB_C_FILES += freebsd/sys/dev/e1000/e1000_api.c
531LIB_C_FILES += freebsd/sys/dev/e1000/e1000_manage.c
532LIB_C_FILES += freebsd/sys/dev/e1000/e1000_osdep.c
533LIB_C_FILES += freebsd/sys/dev/e1000/if_em.c
534LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82541.c
535LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82571.c
536LIB_C_FILES += freebsd/sys/dev/e1000/e1000_ich8lan.c
537LIB_C_FILES += freebsd/sys/dev/e1000/e1000_mbx.c
538LIB_C_FILES += freebsd/sys/dev/e1000/e1000_phy.c
539LIB_C_FILES += freebsd/sys/dev/e1000/if_igb.c
540LIB_C_FILES += freebsd/sys/dev/dc/dcphy.c
541LIB_C_FILES += freebsd/sys/dev/dc/if_dc.c
542LIB_C_FILES += freebsd/sys/dev/dc/pnphy.c
543LIB_C_FILES += freebsd/sys/dev/smc/if_smc.c
544LIB_C_FILES += freebsd/sys/dev/bce/if_bce.c
545LIB_C_FILES += freebsd/sys/dev/bfe/if_bfe.c
546LIB_C_FILES += freebsd/sys/dev/bge/if_bge.c
547ifeq ($(RTEMS_CPU), arm)
548LIB_C_FILES += freebsd/sys/arm/arm/in_cksum.c
549NEED_DUMMY_PIC_IRQ=no
550endif
551ifeq ($(RTEMS_CPU), avr)
552LIB_C_FILES += freebsd/sys/avr/avr/in_cksum.c
553endif
554ifeq ($(RTEMS_CPU), bfin)
555LIB_C_FILES += freebsd/sys/bfin/bfin/in_cksum.c
556endif
557ifeq ($(RTEMS_CPU), h8300)
558LIB_C_FILES += freebsd/sys/h8300/h8300/in_cksum.c
559endif
560ifeq ($(RTEMS_CPU), i386)
561LIB_C_FILES += freebsd/sys/i386/i386/in_cksum.c
562NEED_DUMMY_PIC_IRQ=no
563endif
564ifeq ($(RTEMS_CPU), lm32)
565LIB_C_FILES += freebsd/sys/lm32/lm32/in_cksum.c
566NEED_DUMMY_PIC_IRQ=no
567endif
568ifeq ($(RTEMS_CPU), m32c)
569LIB_C_FILES += freebsd/sys/m32c/m32c/in_cksum.c
570endif
571ifeq ($(RTEMS_CPU), m32r)
572LIB_C_FILES += freebsd/sys/m32r/m32r/in_cksum.c
573endif
574ifeq ($(RTEMS_CPU), m68k)
575LIB_C_FILES += freebsd/sys/m68k/m68k/in_cksum.c
576endif
577ifeq ($(RTEMS_CPU), mips)
578LIB_C_FILES += freebsd/sys/mips/mips/in_cksum.c
579NEED_DUMMY_PIC_IRQ=no
580endif
581ifeq ($(RTEMS_CPU), nios2)
582LIB_C_FILES += freebsd/sys/nios2/nios2/in_cksum.c
583endif
584ifeq ($(RTEMS_CPU), powerpc)
585LIB_C_FILES += freebsd/sys/powerpc/powerpc/in_cksum.c
586NEED_DUMMY_PIC_IRQ=no
587endif
588ifeq ($(RTEMS_CPU), sh)
589LIB_C_FILES += freebsd/sys/sh/sh/in_cksum.c
590endif
591ifeq ($(RTEMS_CPU), sparc)
592LIB_C_FILES += freebsd/sys/sparc/sparc/in_cksum.c
593LIB_C_FILES += freebsd/sys/mips/mips/in_cksum.c
594NEED_DUMMY_PIC_IRQ=no
595endif
596ifeq ($(RTEMS_CPU), sparc64)
597LIB_C_FILES += freebsd/sys/sparc64/sparc64/in_cksum.c
598endif
599ifeq ($(RTEMS_CPU), v850)
600LIB_C_FILES += freebsd/sys/v850/v850/in_cksum.c
601endif
602LIB_GEN_FILES += freebsd/include/rpc/rpcb_prot.h
603freebsd/include/rpc/rpcb_prot.h: freebsd/include/rpc/rpcb_prot.x
604                rm -f $@
605                rpcgen -h -o $@ $<
606LIB_GEN_FILES += freebsd/sbin/route/keywords.h
607freebsd/sbin/route/keywords.h: freebsd/sbin/route/keywords
608        sed -e '/^#/d' -e '/^$$/d' $< > freebsd/sbin/route/keywords.tmp
609        LC_ALL=C tr 'a-z' 'A-Z' < freebsd/sbin/route/keywords.tmp | paste freebsd/sbin/route/keywords.tmp - | \
610        awk '{ if (NF > 1) printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", $$2, NR, $$1, $$2 }' > $@
611        rm -f freebsd/sbin/route/keywords.tmp
612LIB_C_FILES += freebsd/lib/libc/db/btree/bt_close.c
613LIB_C_FILES += freebsd/lib/libc/db/btree/bt_conv.c
614LIB_C_FILES += freebsd/lib/libc/db/btree/bt_debug.c
615LIB_C_FILES += freebsd/lib/libc/db/btree/bt_delete.c
616LIB_C_FILES += freebsd/lib/libc/db/btree/bt_get.c
617LIB_C_FILES += freebsd/lib/libc/db/btree/bt_open.c
618LIB_C_FILES += freebsd/lib/libc/db/btree/bt_overflow.c
619LIB_C_FILES += freebsd/lib/libc/db/btree/bt_page.c
620LIB_C_FILES += freebsd/lib/libc/db/btree/bt_put.c
621LIB_C_FILES += freebsd/lib/libc/db/btree/bt_search.c
622LIB_C_FILES += freebsd/lib/libc/db/btree/bt_seq.c
623LIB_C_FILES += freebsd/lib/libc/db/btree/bt_split.c
624LIB_C_FILES += freebsd/lib/libc/db/btree/bt_utils.c
625LIB_C_FILES += freebsd/lib/libc/db/db/db.c
626LIB_C_FILES += freebsd/lib/libc/db/mpool/mpool.c
627LIB_C_FILES += freebsd/lib/libc/db/mpool/mpool-compat.c
628LIB_C_FILES += freebsd/lib/libc/db/recno/rec_close.c
629LIB_C_FILES += freebsd/lib/libc/db/recno/rec_delete.c
630LIB_C_FILES += freebsd/lib/libc/db/recno/rec_get.c
631LIB_C_FILES += freebsd/lib/libc/db/recno/rec_open.c
632LIB_C_FILES += freebsd/lib/libc/db/recno/rec_put.c
633LIB_C_FILES += freebsd/lib/libc/db/recno/rec_search.c
634LIB_C_FILES += freebsd/lib/libc/db/recno/rec_seq.c
635LIB_C_FILES += freebsd/lib/libc/db/recno/rec_utils.c
636LIB_C_FILES += freebsd/lib/libc/gen/err.c
637LIB_C_FILES += freebsd/lib/libc/gen/gethostname.c
638LIB_C_FILES += freebsd/lib/libc/inet/inet_addr.c
639LIB_C_FILES += freebsd/lib/libc/inet/inet_cidr_ntop.c
640LIB_C_FILES += freebsd/lib/libc/inet/inet_cidr_pton.c
641LIB_C_FILES += freebsd/lib/libc/inet/inet_lnaof.c
642LIB_C_FILES += freebsd/lib/libc/inet/inet_makeaddr.c
643LIB_C_FILES += freebsd/lib/libc/inet/inet_neta.c
644LIB_C_FILES += freebsd/lib/libc/inet/inet_net_ntop.c
645LIB_C_FILES += freebsd/lib/libc/inet/inet_netof.c
646LIB_C_FILES += freebsd/lib/libc/inet/inet_net_pton.c
647LIB_C_FILES += freebsd/lib/libc/inet/inet_network.c
648LIB_C_FILES += freebsd/lib/libc/inet/inet_ntoa.c
649LIB_C_FILES += freebsd/lib/libc/inet/inet_ntop.c
650LIB_C_FILES += freebsd/lib/libc/inet/inet_pton.c
651LIB_C_FILES += freebsd/lib/libc/inet/nsap_addr.c
652LIB_C_FILES += freebsd/lib/libc/isc/ev_streams.c
653LIB_C_FILES += freebsd/lib/libc/isc/ev_timers.c
654LIB_C_FILES += freebsd/lib/libc/nameser/ns_name.c
655LIB_C_FILES += freebsd/lib/libc/nameser/ns_netint.c
656LIB_C_FILES += freebsd/lib/libc/nameser/ns_parse.c
657LIB_C_FILES += freebsd/lib/libc/nameser/ns_print.c
658LIB_C_FILES += freebsd/lib/libc/nameser/ns_samedomain.c
659LIB_C_FILES += freebsd/lib/libc/nameser/ns_ttl.c
660LIB_C_FILES += freebsd/lib/libc/net/base64.c
661LIB_C_FILES += freebsd/lib/libc/net/ether_addr.c
662LIB_C_FILES += freebsd/lib/libc/net/gai_strerror.c
663LIB_C_FILES += freebsd/lib/libc/net/getaddrinfo.c
664LIB_C_FILES += freebsd/lib/libc/net/gethostbydns.c
665LIB_C_FILES += freebsd/lib/libc/net/gethostbyht.c
666LIB_C_FILES += freebsd/lib/libc/net/gethostbynis.c
667LIB_C_FILES += freebsd/lib/libc/net/gethostnamadr.c
668LIB_C_FILES += freebsd/lib/libc/net/getifaddrs.c
669LIB_C_FILES += freebsd/lib/libc/net/getifmaddrs.c
670LIB_C_FILES += freebsd/lib/libc/net/getnameinfo.c
671LIB_C_FILES += freebsd/lib/libc/net/getnetbydns.c
672LIB_C_FILES += freebsd/lib/libc/net/getnetbyht.c
673LIB_C_FILES += freebsd/lib/libc/net/getnetbynis.c
674LIB_C_FILES += freebsd/lib/libc/net/getnetnamadr.c
675LIB_C_FILES += freebsd/lib/libc/net/getproto.c
676LIB_C_FILES += freebsd/lib/libc/net/getprotoent.c
677LIB_C_FILES += freebsd/lib/libc/net/getprotoname.c
678LIB_C_FILES += freebsd/lib/libc/net/getservent.c
679LIB_C_FILES += freebsd/lib/libc/net/if_indextoname.c
680LIB_C_FILES += freebsd/lib/libc/net/if_nameindex.c
681LIB_C_FILES += freebsd/lib/libc/net/if_nametoindex.c
682LIB_C_FILES += freebsd/lib/libc/net/linkaddr.c
683LIB_C_FILES += freebsd/lib/libc/net/map_v4v6.c
684LIB_C_FILES += freebsd/lib/libc/net/name6.c
685LIB_C_FILES += freebsd/lib/libc/net/nsdispatch.c
686LIB_C_FILES += freebsd/lib/libc/net/rcmd.c
687LIB_C_FILES += freebsd/lib/libc/net/recv.c
688LIB_C_FILES += freebsd/lib/libc/net/rthdr.c
689LIB_C_FILES += freebsd/lib/libc/net/send.c
690LIB_C_FILES += freebsd/lib/libc/net/vars.c
691LIB_C_FILES += freebsd/lib/libc/posix1e/mac.c
692LIB_C_FILES += freebsd/lib/libc/resolv/h_errno.c
693LIB_C_FILES += freebsd/lib/libc/resolv/herror.c
694LIB_C_FILES += freebsd/lib/libc/resolv/mtctxres.c
695LIB_C_FILES += freebsd/lib/libc/resolv/res_comp.c
696LIB_C_FILES += freebsd/lib/libc/resolv/res_data.c
697LIB_C_FILES += freebsd/lib/libc/resolv/res_debug.c
698LIB_C_FILES += freebsd/lib/libc/resolv/res_findzonecut.c
699LIB_C_FILES += freebsd/lib/libc/resolv/res_init.c
700LIB_C_FILES += freebsd/lib/libc/resolv/res_mkquery.c
701LIB_C_FILES += freebsd/lib/libc/resolv/res_mkupdate.c
702LIB_C_FILES += freebsd/lib/libc/resolv/res_query.c
703LIB_C_FILES += freebsd/lib/libc/resolv/res_send.c
704LIB_C_FILES += freebsd/lib/libc/resolv/res_state.c
705LIB_C_FILES += freebsd/lib/libc/resolv/res_update.c
706LIB_C_FILES += freebsd/lib/libc/stdio/fgetln.c
707LIB_C_FILES += freebsd/lib/libc/stdlib/strtonum.c
708LIB_C_FILES += freebsd/lib/libc/string/strsep.c
709LIB_C_FILES += freebsd/lib/libipsec/ipsec_dump_policy.c
710LIB_C_FILES += freebsd/lib/libipsec/ipsec_get_policylen.c
711LIB_C_FILES += freebsd/lib/libipsec/ipsec_strerror.c
712LIB_C_FILES += freebsd/lib/libipsec/pfkey.c
713LIB_C_FILES += freebsd/lib/libipsec/pfkey_dump.c
714LIB_C_FILES += freebsd/lib/libmemstat/memstat_all.c
715LIB_C_FILES += freebsd/lib/libmemstat/memstat.c
716LIB_C_FILES += freebsd/lib/libmemstat/memstat_malloc.c
717LIB_C_FILES += freebsd/lib/libmemstat/memstat_uma.c
718LIB_C_FILES += freebsd/lib/libutil/expand_number.c
719LIB_C_FILES += freebsd/lib/libutil/humanize_number.c
720LIB_C_FILES += freebsd/lib/libutil/trimdomain.c
721LIB_C_FILES += freebsd/sbin/dhclient/alloc.c
722LIB_C_FILES += freebsd/sbin/dhclient/bpf.c
723LIB_C_FILES += freebsd/sbin/dhclient/clparse.c
724LIB_C_FILES += freebsd/sbin/dhclient/conflex.c
725LIB_C_FILES += freebsd/sbin/dhclient/convert.c
726LIB_C_FILES += freebsd/sbin/dhclient/dhclient.c
727LIB_C_FILES += freebsd/sbin/dhclient/dispatch.c
728LIB_C_FILES += freebsd/sbin/dhclient/errwarn.c
729LIB_C_FILES += freebsd/sbin/dhclient/hash.c
730LIB_C_FILES += freebsd/sbin/dhclient/inet.c
731LIB_C_FILES += freebsd/sbin/dhclient/options.c
732LIB_C_FILES += freebsd/sbin/dhclient/packet.c
733LIB_C_FILES += freebsd/sbin/dhclient/parse.c
734LIB_C_FILES += freebsd/sbin/dhclient/privsep.c
735LIB_C_FILES += freebsd/sbin/dhclient/tables.c
736LIB_C_FILES += freebsd/sbin/dhclient/tree.c
737LIB_C_FILES += freebsd/sbin/ifconfig/af_atalk.c
738LIB_C_FILES += freebsd/sbin/ifconfig/af_inet6.c
739LIB_C_FILES += freebsd/sbin/ifconfig/af_inet.c
740LIB_C_FILES += freebsd/sbin/ifconfig/af_link.c
741LIB_C_FILES += freebsd/sbin/ifconfig/af_nd6.c
742LIB_C_FILES += freebsd/sbin/ifconfig/ifbridge.c
743LIB_C_FILES += freebsd/sbin/ifconfig/ifcarp.c
744LIB_C_FILES += freebsd/sbin/ifconfig/ifclone.c
745LIB_C_FILES += freebsd/sbin/ifconfig/ifconfig.c
746LIB_C_FILES += freebsd/sbin/ifconfig/ifgif.c
747LIB_C_FILES += freebsd/sbin/ifconfig/ifgre.c
748LIB_C_FILES += freebsd/sbin/ifconfig/ifgroup.c
749LIB_C_FILES += freebsd/sbin/ifconfig/iflagg.c
750LIB_C_FILES += freebsd/sbin/ifconfig/ifmac.c
751LIB_C_FILES += freebsd/sbin/ifconfig/ifmedia.c
752LIB_C_FILES += freebsd/sbin/ifconfig/ifpfsync.c
753LIB_C_FILES += freebsd/sbin/ifconfig/ifvlan.c
754LIB_C_FILES += freebsd/sbin/ping6/ping6.c
755LIB_C_FILES += freebsd/sbin/ping/ping.c
756LIB_C_FILES += freebsd/sbin/route/route.c
757LIB_C_FILES += freebsd/usr.bin/netstat/atalk.c
758LIB_C_FILES += freebsd/usr.bin/netstat/bpf.c
759LIB_C_FILES += freebsd/usr.bin/netstat/if.c
760LIB_C_FILES += freebsd/usr.bin/netstat/inet6.c
761LIB_C_FILES += freebsd/usr.bin/netstat/inet.c
762LIB_C_FILES += freebsd/usr.bin/netstat/ipsec.c
763LIB_C_FILES += freebsd/usr.bin/netstat/main.c
764LIB_C_FILES += freebsd/usr.bin/netstat/mbuf.c
765LIB_C_FILES += freebsd/usr.bin/netstat/mroute6.c
766LIB_C_FILES += freebsd/usr.bin/netstat/mroute.c
767LIB_C_FILES += freebsd/usr.bin/netstat/route.c
768LIB_C_FILES += freebsd/usr.bin/netstat/pfkey.c
769LIB_C_FILES += freebsd/usr.bin/netstat/sctp.c
770LIB_C_FILES += freebsd/usr.bin/netstat/unix.c
771
772TEST_SELECTPOLLKQUEUE01 = testsuite/selectpollkqueue01/selectpollkqueue01.exe
773TEST_SELECTPOLLKQUEUE01_O_FILES =
774TEST_SELECTPOLLKQUEUE01_D_FILES =
775TEST_SELECTPOLLKQUEUE01_O_FILES += testsuite/selectpollkqueue01/test_main.o
776TEST_SELECTPOLLKQUEUE01_D_FILES += testsuite/selectpollkqueue01/test_main.d
777$(TEST_SELECTPOLLKQUEUE01): $(TEST_SELECTPOLLKQUEUE01_O_FILES) $(LIB)
778        $(LINK.c) -Wl,-Map,testsuite/selectpollkqueue01/selectpollkqueue01.map $^ -lm -lz -o $@
779TESTS += $(TEST_SELECTPOLLKQUEUE01)
780O_FILES += $(TEST_SELECTPOLLKQUEUE01_O_FILES)
781D_FILES += $(TEST_SELECTPOLLKQUEUE01_D_FILES)
782RUN_TESTS += $(TEST_SELECTPOLLKQUEUE01)
783
784TEST_RWLOCK01 = testsuite/rwlock01/rwlock01.exe
785TEST_RWLOCK01_O_FILES =
786TEST_RWLOCK01_D_FILES =
787TEST_RWLOCK01_O_FILES += testsuite/rwlock01/test_main.o
788TEST_RWLOCK01_D_FILES += testsuite/rwlock01/test_main.d
789$(TEST_RWLOCK01): $(TEST_RWLOCK01_O_FILES) $(LIB)
790        $(LINK.c) -Wl,-Map,testsuite/rwlock01/rwlock01.map $^ -lm -lz -o $@
791TESTS += $(TEST_RWLOCK01)
792O_FILES += $(TEST_RWLOCK01_O_FILES)
793D_FILES += $(TEST_RWLOCK01_D_FILES)
794RUN_TESTS += $(TEST_RWLOCK01)
795
796TEST_SLEEP01 = testsuite/sleep01/sleep01.exe
797TEST_SLEEP01_O_FILES =
798TEST_SLEEP01_D_FILES =
799TEST_SLEEP01_O_FILES += testsuite/sleep01/test_main.o
800TEST_SLEEP01_D_FILES += testsuite/sleep01/test_main.d
801$(TEST_SLEEP01): $(TEST_SLEEP01_O_FILES) $(LIB)
802        $(LINK.c) -Wl,-Map,testsuite/sleep01/sleep01.map $^ -lm -lz -o $@
803TESTS += $(TEST_SLEEP01)
804O_FILES += $(TEST_SLEEP01_O_FILES)
805D_FILES += $(TEST_SLEEP01_D_FILES)
806RUN_TESTS += $(TEST_SLEEP01)
807
808TEST_SYSCALLS01 = testsuite/syscalls01/syscalls01.exe
809TEST_SYSCALLS01_O_FILES =
810TEST_SYSCALLS01_D_FILES =
811TEST_SYSCALLS01_O_FILES += testsuite/syscalls01/test_main.o
812TEST_SYSCALLS01_D_FILES += testsuite/syscalls01/test_main.d
813$(TEST_SYSCALLS01): $(TEST_SYSCALLS01_O_FILES) $(LIB)
814        $(LINK.c) -Wl,-Map,testsuite/syscalls01/syscalls01.map $^ -lm -lz -o $@
815TESTS += $(TEST_SYSCALLS01)
816O_FILES += $(TEST_SYSCALLS01_O_FILES)
817D_FILES += $(TEST_SYSCALLS01_D_FILES)
818RUN_TESTS += $(TEST_SYSCALLS01)
819
820TEST_COMMANDS01 = testsuite/commands01/commands01.exe
821TEST_COMMANDS01_O_FILES =
822TEST_COMMANDS01_D_FILES =
823TEST_COMMANDS01_O_FILES += testsuite/commands01/test_main.o
824TEST_COMMANDS01_D_FILES += testsuite/commands01/test_main.d
825$(TEST_COMMANDS01): $(TEST_COMMANDS01_O_FILES) $(LIB)
826        $(LINK.c) -Wl,-Map,testsuite/commands01/commands01.map $^ -lm -lz -o $@
827TESTS += $(TEST_COMMANDS01)
828O_FILES += $(TEST_COMMANDS01_O_FILES)
829D_FILES += $(TEST_COMMANDS01_D_FILES)
830RUN_TESTS += $(TEST_COMMANDS01)
831
832TEST_USB01 = testsuite/usb01/usb01.exe
833TEST_USB01_O_FILES =
834TEST_USB01_D_FILES =
835TEST_USB01_O_FILES += testsuite/usb01/init.o
836TEST_USB01_D_FILES += testsuite/usb01/init.d
837TEST_USB01_O_FILES += testsuite/usb01/test-file-system.o
838TEST_USB01_D_FILES += testsuite/usb01/test-file-system.d
839$(TEST_USB01): $(TEST_USB01_O_FILES) $(LIB)
840        $(LINK.c) -Wl,-Map,testsuite/usb01/usb01.map $^ -lm -lz -o $@
841TESTS += $(TEST_USB01)
842O_FILES += $(TEST_USB01_O_FILES)
843D_FILES += $(TEST_USB01_D_FILES)
844
845TEST_LOOPBACK01 = testsuite/loopback01/loopback01.exe
846TEST_LOOPBACK01_O_FILES =
847TEST_LOOPBACK01_D_FILES =
848TEST_LOOPBACK01_O_FILES += testsuite/loopback01/test_main.o
849TEST_LOOPBACK01_D_FILES += testsuite/loopback01/test_main.d
850$(TEST_LOOPBACK01): $(TEST_LOOPBACK01_O_FILES) $(LIB)
851        $(LINK.c) -Wl,-Map,testsuite/loopback01/loopback01.map $^ -lm -lz -o $@
852TESTS += $(TEST_LOOPBACK01)
853O_FILES += $(TEST_LOOPBACK01_O_FILES)
854D_FILES += $(TEST_LOOPBACK01_D_FILES)
855RUN_TESTS += $(TEST_LOOPBACK01)
856
857TEST_NETSHELL01 = testsuite/netshell01/netshell01.exe
858TEST_NETSHELL01_O_FILES =
859TEST_NETSHELL01_D_FILES =
860TEST_NETSHELL01_O_FILES += testsuite/netshell01/test_main.o
861TEST_NETSHELL01_D_FILES += testsuite/netshell01/test_main.d
862TEST_NETSHELL01_O_FILES += testsuite/netshell01/shellconfig.o
863TEST_NETSHELL01_D_FILES += testsuite/netshell01/shellconfig.d
864$(TEST_NETSHELL01): $(TEST_NETSHELL01_O_FILES) $(LIB)
865        $(LINK.c) -Wl,-Map,testsuite/netshell01/netshell01.map $^ -lm -lz -o $@
866TESTS += $(TEST_NETSHELL01)
867O_FILES += $(TEST_NETSHELL01_O_FILES)
868D_FILES += $(TEST_NETSHELL01_D_FILES)
869
870TEST_SWI01 = testsuite/swi01/swi01.exe
871TEST_SWI01_O_FILES =
872TEST_SWI01_D_FILES =
873TEST_SWI01_O_FILES += testsuite/swi01/init.o
874TEST_SWI01_D_FILES += testsuite/swi01/init.d
875TEST_SWI01_O_FILES += testsuite/swi01/swi_test.o
876TEST_SWI01_D_FILES += testsuite/swi01/swi_test.d
877$(TEST_SWI01): $(TEST_SWI01_O_FILES) $(LIB)
878        $(LINK.c) -Wl,-Map,testsuite/swi01/swi01.map $^ -lm -lz -o $@
879TESTS += $(TEST_SWI01)
880O_FILES += $(TEST_SWI01_O_FILES)
881D_FILES += $(TEST_SWI01_D_FILES)
882RUN_TESTS += $(TEST_SWI01)
883
884TEST_TIMEOUT01 = testsuite/timeout01/timeout01.exe
885TEST_TIMEOUT01_O_FILES =
886TEST_TIMEOUT01_D_FILES =
887TEST_TIMEOUT01_O_FILES += testsuite/timeout01/init.o
888TEST_TIMEOUT01_D_FILES += testsuite/timeout01/init.d
889TEST_TIMEOUT01_O_FILES += testsuite/timeout01/timeout_test.o
890TEST_TIMEOUT01_D_FILES += testsuite/timeout01/timeout_test.d
891$(TEST_TIMEOUT01): $(TEST_TIMEOUT01_O_FILES) $(LIB)
892        $(LINK.c) -Wl,-Map,testsuite/timeout01/timeout01.map $^ -lm -lz -o $@
893TESTS += $(TEST_TIMEOUT01)
894O_FILES += $(TEST_TIMEOUT01_O_FILES)
895D_FILES += $(TEST_TIMEOUT01_D_FILES)
896RUN_TESTS += $(TEST_TIMEOUT01)
897
898TEST_INIT01 = testsuite/init01/init01.exe
899TEST_INIT01_O_FILES =
900TEST_INIT01_D_FILES =
901TEST_INIT01_O_FILES += testsuite/init01/test_main.o
902TEST_INIT01_D_FILES += testsuite/init01/test_main.d
903$(TEST_INIT01): $(TEST_INIT01_O_FILES) $(LIB)
904        $(LINK.c) -Wl,-Map,testsuite/init01/init01.map $^ -lm -lz -o $@
905TESTS += $(TEST_INIT01)
906O_FILES += $(TEST_INIT01_O_FILES)
907D_FILES += $(TEST_INIT01_D_FILES)
908RUN_TESTS += $(TEST_INIT01)
909
910TEST_THREAD01 = testsuite/thread01/thread01.exe
911TEST_THREAD01_O_FILES =
912TEST_THREAD01_D_FILES =
913TEST_THREAD01_O_FILES += testsuite/thread01/test_main.o
914TEST_THREAD01_D_FILES += testsuite/thread01/test_main.d
915$(TEST_THREAD01): $(TEST_THREAD01_O_FILES) $(LIB)
916        $(LINK.c) -Wl,-Map,testsuite/thread01/thread01.map $^ -lm -lz -o $@
917TESTS += $(TEST_THREAD01)
918O_FILES += $(TEST_THREAD01_O_FILES)
919D_FILES += $(TEST_THREAD01_D_FILES)
920RUN_TESTS += $(TEST_THREAD01)
921
922ifeq ($(NEED_DUMMY_PIC_IRQ),yes)
923CFLAGS += -I rtems-dummy-pic-irq/include
924endif
925LIB_O_FILES = $(LIB_C_FILES:%.c=%.o)
926O_FILES += $(LIB_O_FILES)
927D_FILES += $(LIB_C_FILES:%.c=%.d)
928
929all: $(LIB) $(TESTS)
930
931$(LIB): $(LIB_GEN_FILES) $(LIB_O_FILES)
932        $(AR) rcu $@ $^
933run_tests: $(RUN_TESTS)
934        $(TEST_RUNNER) $^
935        check_endof
936
937# The following targets use the MIPS Generic in_cksum routine
938rtemsbsd/include/machine/rtems-bsd-config.h: rtemsbsd/include/machine/rtems-bsd-config.h.in
939        sed $(SED_PATTERN) <$< >$@
940
941CPU_SED  = sed
942CPU_SED += -e '/arm/d'
943CPU_SED += -e '/i386/d'
944CPU_SED += -e '/powerpc/d'
945CPU_SED += -e '/mips/d'
946CPU_SED += -e '/sparc64/d'
947
948install: $(LIB)
949        install -d $(INSTALL_BASE)/include
950        install -c -m 644 $(LIB) $(INSTALL_BASE)
951        cd rtemsbsd; for i in `find freebsd -name '*.h'` ; do \
952          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
953        cd contrib/altq; for i in `find freebsd -name '*.h'` ; do \
954          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
955        cd contrib/pf; for i in `find freebsd -name '*.h'` ; do \
956          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
957        for i in `find freebsd -name '*.h' | $(CPU_SED)` ; do \
958          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
959        -cd freebsd/$(RTEMS_CPU)/include && for i in `find . -name '*.h'` ; do \
960          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
961        -cd rtemsbsd/$(RTEMS_CPU)/include && \
962          for i in `find . -name '*.h' | $(CPU_SED)` ; do \
963            install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
964        -cd copied/rtemsbsd/$(RTEMS_CPU)/include && for i in `find . -name '*.h'` ; do \
965          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
966
967clean:
968        rm -f $(LIB_GEN_FILES) $(LIB) $(TESTS) $(O_FILES) $(D_FILES)
969        rm -f libbsd.html
970
971-include $(D_FILES)
972
973doc: libbsd.html
974
975libbsd.html: libbsd.txt
976        asciidoc -o libbsd.html libbsd.txt
Note: See TracBrowser for help on using the repository browser.