source: rtems-libbsd/Makefile @ 0967858

4.115-freebsd-12freebsd-9.3
Last change on this file since 0967858 was 0967858, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 22, 2013 at 11:42:11 AM

sleep01: New test

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