source: rtems-libbsd/Makefile @ 87fdc14

4.115-freebsd-12freebsd-9.3
Last change on this file since 87fdc14 was 87fdc14, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 24, 2013 at 6:54:58 AM

Use RTEMS provides zlib

  • 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/bpf_buffer.c
202LIB_C_FILES += freebsd/sys/net/bpf.c
203LIB_C_FILES += freebsd/sys/net/bpf_filter.c
204LIB_C_FILES += freebsd/sys/net/bpf_jitter.c
205LIB_C_FILES += freebsd/sys/net/if_arcsubr.c
206LIB_C_FILES += freebsd/sys/net/if_bridge.c
207LIB_C_FILES += freebsd/sys/net/if_ethersubr.c
208LIB_C_FILES += freebsd/sys/net/netisr.c
209LIB_C_FILES += freebsd/sys/netinet/accf_data.c
210LIB_C_FILES += freebsd/sys/netinet/accf_dns.c
211LIB_C_FILES += freebsd/sys/netinet/accf_http.c
212LIB_C_FILES += freebsd/sys/netinet/if_atm.c
213LIB_C_FILES += freebsd/sys/netinet/if_ether.c
214LIB_C_FILES += freebsd/sys/netinet/igmp.c
215LIB_C_FILES += freebsd/sys/netinet/in.c
216LIB_C_FILES += freebsd/sys/netinet/in_gif.c
217LIB_C_FILES += freebsd/sys/netinet/in_mcast.c
218LIB_C_FILES += freebsd/sys/netinet/in_pcb.c
219LIB_C_FILES += freebsd/sys/netinet/in_proto.c
220LIB_C_FILES += freebsd/sys/netinet/in_rmx.c
221LIB_C_FILES += freebsd/sys/netinet/ip_carp.c
222LIB_C_FILES += freebsd/sys/netinet/ip_divert.c
223LIB_C_FILES += freebsd/sys/netinet/ip_ecn.c
224LIB_C_FILES += freebsd/sys/netinet/ip_encap.c
225LIB_C_FILES += freebsd/sys/netinet/ip_fastfwd.c
226LIB_C_FILES += freebsd/sys/netinet/ip_gre.c
227LIB_C_FILES += freebsd/sys/netinet/ip_icmp.c
228LIB_C_FILES += freebsd/sys/netinet/ip_id.c
229LIB_C_FILES += freebsd/sys/netinet/ip_input.c
230LIB_C_FILES += freebsd/sys/netinet/ip_ipsec.c
231LIB_C_FILES += freebsd/sys/netinet/ip_mroute.c
232LIB_C_FILES += freebsd/sys/netinet/ip_options.c
233LIB_C_FILES += freebsd/sys/netinet/ip_output.c
234LIB_C_FILES += freebsd/sys/netinet/raw_ip.c
235LIB_C_FILES += freebsd/sys/netinet/sctp_asconf.c
236LIB_C_FILES += freebsd/sys/netinet/sctp_auth.c
237LIB_C_FILES += freebsd/sys/netinet/sctp_bsd_addr.c
238LIB_C_FILES += freebsd/sys/netinet/sctp_cc_functions.c
239LIB_C_FILES += freebsd/sys/netinet/sctp_crc32.c
240LIB_C_FILES += freebsd/sys/netinet/sctp_indata.c
241LIB_C_FILES += freebsd/sys/netinet/sctp_input.c
242LIB_C_FILES += freebsd/sys/netinet/sctp_output.c
243LIB_C_FILES += freebsd/sys/netinet/sctp_pcb.c
244LIB_C_FILES += freebsd/sys/netinet/sctp_peeloff.c
245LIB_C_FILES += freebsd/sys/netinet/sctp_sysctl.c
246LIB_C_FILES += freebsd/sys/netinet/sctp_timer.c
247LIB_C_FILES += freebsd/sys/netinet/sctp_usrreq.c
248LIB_C_FILES += freebsd/sys/netinet/sctputil.c
249LIB_C_FILES += freebsd/sys/netinet/tcp_debug.c
250LIB_C_FILES += freebsd/sys/netinet/tcp_input.c
251LIB_C_FILES += freebsd/sys/netinet/tcp_lro.c
252LIB_C_FILES += freebsd/sys/netinet/tcp_offload.c
253LIB_C_FILES += freebsd/sys/netinet/tcp_output.c
254LIB_C_FILES += freebsd/sys/netinet/tcp_reass.c
255LIB_C_FILES += freebsd/sys/netinet/tcp_sack.c
256LIB_C_FILES += freebsd/sys/netinet/tcp_subr.c
257LIB_C_FILES += freebsd/sys/netinet/tcp_syncache.c
258LIB_C_FILES += freebsd/sys/netinet/tcp_timer.c
259LIB_C_FILES += freebsd/sys/netinet/tcp_timewait.c
260LIB_C_FILES += freebsd/sys/netinet/tcp_usrreq.c
261LIB_C_FILES += freebsd/sys/netinet/udp_usrreq.c
262LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_fifo.c
263LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_rr.c
264LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_log.c
265LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_qfq.c
266LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_prio.c
267LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_dn_glue.c
268LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw2.c
269LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_heap.c
270LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_dummynet.c
271LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_sockopt.c
272LIB_C_FILES += freebsd/sys/netinet/ipfw/dn_sched_wf2q.c
273LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_nat.c
274LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_pfil.c
275LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_dn_io.c
276LIB_C_FILES += freebsd/sys/netinet/ipfw/ip_fw_table.c
277LIB_C_FILES += freebsd/sys/netinet/libalias/alias_dummy.c
278LIB_C_FILES += freebsd/sys/netinet/libalias/alias_pptp.c
279LIB_C_FILES += freebsd/sys/netinet/libalias/alias_smedia.c
280LIB_C_FILES += freebsd/sys/netinet/libalias/alias_mod.c
281LIB_C_FILES += freebsd/sys/netinet/libalias/alias_cuseeme.c
282LIB_C_FILES += freebsd/sys/netinet/libalias/alias_nbt.c
283LIB_C_FILES += freebsd/sys/netinet/libalias/alias_irc.c
284LIB_C_FILES += freebsd/sys/netinet/libalias/alias_util.c
285LIB_C_FILES += freebsd/sys/netinet/libalias/alias_db.c
286LIB_C_FILES += freebsd/sys/netinet/libalias/alias_ftp.c
287LIB_C_FILES += freebsd/sys/netinet/libalias/alias_proxy.c
288LIB_C_FILES += freebsd/sys/netinet/libalias/alias.c
289LIB_C_FILES += freebsd/sys/netinet/libalias/alias_skinny.c
290LIB_C_FILES += freebsd/sys/netinet/libalias/alias_sctp.c
291ifneq ($(DISABLE_IPV6),yes)
292LIB_C_FILES += freebsd/sys/net/if_stf.c
293LIB_C_FILES += freebsd/sys/netinet6/dest6.c
294LIB_C_FILES += freebsd/sys/netinet6/frag6.c
295LIB_C_FILES += freebsd/sys/netinet6/icmp6.c
296LIB_C_FILES += freebsd/sys/netinet6/in6.c
297LIB_C_FILES += freebsd/sys/netinet6/in6_cksum.c
298LIB_C_FILES += freebsd/sys/netinet6/in6_gif.c
299LIB_C_FILES += freebsd/sys/netinet6/in6_ifattach.c
300LIB_C_FILES += freebsd/sys/netinet6/in6_mcast.c
301LIB_C_FILES += freebsd/sys/netinet6/in6_pcb.c
302LIB_C_FILES += freebsd/sys/netinet6/in6_proto.c
303LIB_C_FILES += freebsd/sys/netinet6/in6_rmx.c
304LIB_C_FILES += freebsd/sys/netinet6/in6_src.c
305LIB_C_FILES += freebsd/sys/netinet6/ip6_forward.c
306LIB_C_FILES += freebsd/sys/netinet6/ip6_id.c
307LIB_C_FILES += freebsd/sys/netinet6/ip6_input.c
308LIB_C_FILES += freebsd/sys/netinet6/ip6_ipsec.c
309LIB_C_FILES += freebsd/sys/netinet6/ip6_mroute.c
310LIB_C_FILES += freebsd/sys/netinet6/ip6_output.c
311LIB_C_FILES += freebsd/sys/netinet6/mld6.c
312LIB_C_FILES += freebsd/sys/netinet6/nd6.c
313LIB_C_FILES += freebsd/sys/netinet6/nd6_nbr.c
314LIB_C_FILES += freebsd/sys/netinet6/nd6_rtr.c
315LIB_C_FILES += freebsd/sys/netinet6/raw_ip6.c
316LIB_C_FILES += freebsd/sys/netinet6/route6.c
317LIB_C_FILES += freebsd/sys/netinet6/scope6.c
318LIB_C_FILES += freebsd/sys/netinet6/sctp6_usrreq.c
319LIB_C_FILES += freebsd/sys/netinet6/udp6_usrreq.c
320else
321SED_PATTERN += -e 's/^\#define INET6 1/\/\/ \#define INET6 1/'
322endif # DISABLE_IPV6
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/opencrypto/cryptodev.c
382LIB_C_FILES += freebsd/sys/crypto/sha1.c
383LIB_C_FILES += freebsd/sys/crypto/sha2/sha2.c
384LIB_C_FILES += freebsd/sys/crypto/rijndael/rijndael-alg-fst.c
385LIB_C_FILES += freebsd/sys/crypto/rijndael/rijndael-api.c
386LIB_C_FILES += freebsd/sys/crypto/rijndael/rijndael-api-fst.c
387LIB_C_FILES += freebsd/sys/crypto/des/des_setkey.c
388LIB_C_FILES += freebsd/sys/crypto/des/des_enc.c
389LIB_C_FILES += freebsd/sys/crypto/des/des_ecb.c
390LIB_C_FILES += freebsd/sys/crypto/blowfish/bf_enc.c
391LIB_C_FILES += freebsd/sys/crypto/blowfish/bf_skey.c
392LIB_C_FILES += freebsd/sys/crypto/blowfish/bf_ecb.c
393LIB_C_FILES += freebsd/sys/crypto/rc4/rc4.c
394LIB_C_FILES += freebsd/sys/crypto/camellia/camellia-api.c
395LIB_C_FILES += freebsd/sys/crypto/camellia/camellia.c
396LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_rmclass.c
397LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_rio.c
398LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_subr.c
399LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_cdnr.c
400LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_priq.c
401LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_cbq.c
402LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_hfsc.c
403LIB_C_FILES += freebsd/sys/contrib/altq/altq/altq_red.c
404LIB_C_FILES += freebsd/sys/contrib/pf/netinet/in4_cksum.c
405LIB_C_FILES += freebsd/sys/contrib/pf/net/pf.c
406LIB_C_FILES += freebsd/sys/contrib/pf/net/if_pflog.c
407LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_subr.c
408LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_ioctl.c
409LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_table.c
410LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_if.c
411LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_osfp.c
412LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_norm.c
413LIB_C_FILES += freebsd/sys/contrib/pf/net/pf_ruleset.c
414LIB_C_FILES += freebsd/sys/contrib/pf/net/if_pfsync.c
415LIB_C_FILES += freebsd/sys/dev/mii/mii.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/usb/usb_busdma.c
420LIB_C_FILES += freebsd/sys/dev/usb/usb_core.c
421LIB_C_FILES += freebsd/sys/dev/usb/usb_debug.c
422LIB_C_FILES += freebsd/sys/dev/usb/usb_dev.c
423LIB_C_FILES += freebsd/sys/dev/usb/usb_device.c
424LIB_C_FILES += freebsd/sys/dev/usb/usb_dynamic.c
425LIB_C_FILES += freebsd/sys/dev/usb/usb_error.c
426LIB_C_FILES += freebsd/sys/dev/usb/usb_generic.c
427LIB_C_FILES += freebsd/sys/dev/usb/usb_handle_request.c
428LIB_C_FILES += freebsd/sys/dev/usb/usb_hid.c
429LIB_C_FILES += freebsd/sys/dev/usb/usb_hub.c
430LIB_C_FILES += freebsd/sys/dev/usb/usb_lookup.c
431LIB_C_FILES += freebsd/sys/dev/usb/usb_mbuf.c
432LIB_C_FILES += freebsd/sys/dev/usb/usb_msctest.c
433LIB_C_FILES += freebsd/sys/dev/usb/usb_parse.c
434LIB_C_FILES += freebsd/sys/dev/usb/usb_process.c
435LIB_C_FILES += freebsd/sys/dev/usb/usb_request.c
436LIB_C_FILES += freebsd/sys/dev/usb/usb_transfer.c
437LIB_C_FILES += freebsd/sys/dev/usb/usb_util.c
438LIB_C_FILES += freebsd/sys/dev/usb/quirk/usb_quirk.c
439LIB_C_FILES += freebsd/sys/dev/usb/controller/ohci.c
440LIB_C_FILES += freebsd/sys/dev/usb/controller/ehci.c
441LIB_C_FILES += freebsd/sys/dev/usb/controller/usb_controller.c
442LIB_C_FILES += freebsd/sys/cam/cam.c
443LIB_C_FILES += freebsd/sys/cam/scsi/scsi_all.c
444LIB_C_FILES += freebsd/sys/dev/usb/storage/umass.c
445LIB_C_FILES += freebsd/sys/dev/pci/pci.c
446LIB_C_FILES += freebsd/sys/dev/pci/pci_user.c
447LIB_C_FILES += freebsd/sys/dev/pci/pci_pci.c
448ifeq ($(RTEMS_CPU), arm)
449LIB_C_FILES += freebsd/sys/arm/pci/pci_bus.c
450LIB_C_FILES += freebsd/sys/arm/arm/legacy.c
451NEED_DUMMY_PIC_IRQ=no
452endif
453ifeq ($(RTEMS_CPU), avr)
454LIB_C_FILES += freebsd/sys/avr/pci/pci_bus.c
455LIB_C_FILES += freebsd/sys/avr/avr/legacy.c
456endif
457ifeq ($(RTEMS_CPU), bfin)
458LIB_C_FILES += freebsd/sys/bfin/pci/pci_bus.c
459LIB_C_FILES += freebsd/sys/bfin/bfin/legacy.c
460endif
461ifeq ($(RTEMS_CPU), h8300)
462LIB_C_FILES += freebsd/sys/h8300/pci/pci_bus.c
463LIB_C_FILES += freebsd/sys/h8300/h8300/legacy.c
464endif
465ifeq ($(RTEMS_CPU), i386)
466LIB_C_FILES += freebsd/sys/i386/pci/pci_bus.c
467LIB_C_FILES += freebsd/sys/i386/i386/legacy.c
468NEED_DUMMY_PIC_IRQ=no
469endif
470ifeq ($(RTEMS_CPU), lm32)
471LIB_C_FILES += freebsd/sys/lm32/pci/pci_bus.c
472LIB_C_FILES += freebsd/sys/lm32/lm32/legacy.c
473NEED_DUMMY_PIC_IRQ=no
474endif
475ifeq ($(RTEMS_CPU), m32c)
476LIB_C_FILES += freebsd/sys/m32c/pci/pci_bus.c
477LIB_C_FILES += freebsd/sys/m32c/m32c/legacy.c
478endif
479ifeq ($(RTEMS_CPU), m32r)
480LIB_C_FILES += freebsd/sys/m32r/pci/pci_bus.c
481LIB_C_FILES += freebsd/sys/m32r/m32r/legacy.c
482endif
483ifeq ($(RTEMS_CPU), m68k)
484LIB_C_FILES += freebsd/sys/m68k/pci/pci_bus.c
485LIB_C_FILES += freebsd/sys/m68k/m68k/legacy.c
486endif
487ifeq ($(RTEMS_CPU), mips)
488LIB_C_FILES += freebsd/sys/mips/pci/pci_bus.c
489LIB_C_FILES += freebsd/sys/mips/mips/legacy.c
490NEED_DUMMY_PIC_IRQ=no
491endif
492ifeq ($(RTEMS_CPU), nios2)
493LIB_C_FILES += freebsd/sys/nios2/pci/pci_bus.c
494LIB_C_FILES += freebsd/sys/nios2/nios2/legacy.c
495endif
496ifeq ($(RTEMS_CPU), powerpc)
497LIB_C_FILES += freebsd/sys/powerpc/pci/pci_bus.c
498LIB_C_FILES += freebsd/sys/powerpc/powerpc/legacy.c
499NEED_DUMMY_PIC_IRQ=no
500endif
501ifeq ($(RTEMS_CPU), sh)
502LIB_C_FILES += freebsd/sys/sh/pci/pci_bus.c
503LIB_C_FILES += freebsd/sys/sh/sh/legacy.c
504endif
505ifeq ($(RTEMS_CPU), sparc)
506LIB_C_FILES += freebsd/sys/sparc/pci/pci_bus.c
507LIB_C_FILES += freebsd/sys/sparc/sparc/legacy.c
508NEED_DUMMY_PIC_IRQ=no
509endif
510ifeq ($(RTEMS_CPU), sparc64)
511LIB_C_FILES += freebsd/sys/sparc64/pci/pci_bus.c
512LIB_C_FILES += freebsd/sys/sparc64/sparc64/legacy.c
513endif
514ifeq ($(RTEMS_CPU), v850)
515LIB_C_FILES += freebsd/sys/v850/pci/pci_bus.c
516LIB_C_FILES += freebsd/sys/v850/v850/legacy.c
517endif
518LIB_C_FILES += freebsd/sys/dev/random/harvest.c
519LIB_C_FILES += freebsd/sys/netinet/tcp_hostcache.c
520LIB_C_FILES += freebsd/sys/dev/led/led.c
521LIB_C_FILES += freebsd/sys/netatalk/aarp.c
522LIB_C_FILES += freebsd/sys/netatalk/at_control.c
523LIB_C_FILES += freebsd/sys/netatalk/at_rmx.c
524LIB_C_FILES += freebsd/sys/netatalk/ddp_input.c
525LIB_C_FILES += freebsd/sys/netatalk/ddp_pcb.c
526LIB_C_FILES += freebsd/sys/netatalk/ddp_usrreq.c
527LIB_C_FILES += freebsd/sys/netatalk/at_proto.c
528LIB_C_FILES += freebsd/sys/netatalk/ddp_output.c
529LIB_C_FILES += freebsd/sys/dev/re/if_re.c
530LIB_C_FILES += freebsd/sys/dev/fxp/if_fxp.c
531LIB_C_FILES += freebsd/sys/dev/e1000/e1000_80003es2lan.c
532LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82542.c
533LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82575.c
534LIB_C_FILES += freebsd/sys/dev/e1000/e1000_mac.c
535LIB_C_FILES += freebsd/sys/dev/e1000/e1000_nvm.c
536LIB_C_FILES += freebsd/sys/dev/e1000/e1000_vf.c
537LIB_C_FILES += freebsd/sys/dev/e1000/if_lem.c
538LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82540.c
539LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82543.c
540LIB_C_FILES += freebsd/sys/dev/e1000/e1000_api.c
541LIB_C_FILES += freebsd/sys/dev/e1000/e1000_manage.c
542LIB_C_FILES += freebsd/sys/dev/e1000/e1000_osdep.c
543LIB_C_FILES += freebsd/sys/dev/e1000/if_em.c
544LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82541.c
545LIB_C_FILES += freebsd/sys/dev/e1000/e1000_82571.c
546LIB_C_FILES += freebsd/sys/dev/e1000/e1000_ich8lan.c
547LIB_C_FILES += freebsd/sys/dev/e1000/e1000_mbx.c
548LIB_C_FILES += freebsd/sys/dev/e1000/e1000_phy.c
549LIB_C_FILES += freebsd/sys/dev/e1000/if_igb.c
550LIB_C_FILES += freebsd/sys/dev/dc/dcphy.c
551LIB_C_FILES += freebsd/sys/dev/dc/if_dc.c
552LIB_C_FILES += freebsd/sys/dev/dc/pnphy.c
553LIB_C_FILES += freebsd/sys/dev/smc/if_smc.c
554LIB_C_FILES += freebsd/sys/dev/bce/if_bce.c
555LIB_C_FILES += freebsd/sys/dev/bfe/if_bfe.c
556LIB_C_FILES += freebsd/sys/dev/bge/if_bge.c
557ifeq ($(RTEMS_CPU), arm)
558LIB_C_FILES += freebsd/sys/arm/arm/in_cksum.c
559NEED_DUMMY_PIC_IRQ=no
560endif
561ifeq ($(RTEMS_CPU), avr)
562LIB_C_FILES += freebsd/sys/avr/avr/in_cksum.c
563endif
564ifeq ($(RTEMS_CPU), bfin)
565LIB_C_FILES += freebsd/sys/bfin/bfin/in_cksum.c
566endif
567ifeq ($(RTEMS_CPU), h8300)
568LIB_C_FILES += freebsd/sys/h8300/h8300/in_cksum.c
569endif
570ifeq ($(RTEMS_CPU), i386)
571LIB_C_FILES += freebsd/sys/i386/i386/in_cksum.c
572NEED_DUMMY_PIC_IRQ=no
573endif
574ifeq ($(RTEMS_CPU), lm32)
575LIB_C_FILES += freebsd/sys/lm32/lm32/in_cksum.c
576NEED_DUMMY_PIC_IRQ=no
577endif
578ifeq ($(RTEMS_CPU), m32c)
579LIB_C_FILES += freebsd/sys/m32c/m32c/in_cksum.c
580endif
581ifeq ($(RTEMS_CPU), m32r)
582LIB_C_FILES += freebsd/sys/m32r/m32r/in_cksum.c
583endif
584ifeq ($(RTEMS_CPU), m68k)
585LIB_C_FILES += freebsd/sys/m68k/m68k/in_cksum.c
586endif
587ifeq ($(RTEMS_CPU), mips)
588LIB_C_FILES += freebsd/sys/mips/mips/in_cksum.c
589NEED_DUMMY_PIC_IRQ=no
590endif
591ifeq ($(RTEMS_CPU), nios2)
592LIB_C_FILES += freebsd/sys/nios2/nios2/in_cksum.c
593endif
594ifeq ($(RTEMS_CPU), powerpc)
595LIB_C_FILES += freebsd/sys/powerpc/powerpc/in_cksum.c
596NEED_DUMMY_PIC_IRQ=no
597endif
598ifeq ($(RTEMS_CPU), sh)
599LIB_C_FILES += freebsd/sys/sh/sh/in_cksum.c
600endif
601ifeq ($(RTEMS_CPU), sparc)
602LIB_C_FILES += freebsd/sys/sparc/sparc/in_cksum.c
603LIB_C_FILES += freebsd/sys/mips/mips/in_cksum.c
604NEED_DUMMY_PIC_IRQ=no
605endif
606ifeq ($(RTEMS_CPU), sparc64)
607LIB_C_FILES += freebsd/sys/sparc64/sparc64/in_cksum.c
608endif
609ifeq ($(RTEMS_CPU), v850)
610LIB_C_FILES += freebsd/sys/v850/v850/in_cksum.c
611endif
612LIB_GEN_FILES += freebsd/include/rpc/rpcb_prot.h
613freebsd/include/rpc/rpcb_prot.h: freebsd/include/rpc/rpcb_prot.x
614                rm -f $@
615                rpcgen -h -o $@ $<
616LIB_GEN_FILES += freebsd/sbin/route/keywords.h
617freebsd/sbin/route/keywords.h: freebsd/sbin/route/keywords
618        sed -e '/^#/d' -e '/^$$/d' $< > freebsd/sbin/route/keywords.tmp
619        LC_ALL=C tr 'a-z' 'A-Z' < freebsd/sbin/route/keywords.tmp | paste freebsd/sbin/route/keywords.tmp - | \
620        awk '{ if (NF > 1) printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", $$2, NR, $$1, $$2 }' > $@
621        rm -f freebsd/sbin/route/keywords.tmp
622LIB_C_FILES += freebsd/lib/libc/db/btree/bt_close.c
623LIB_C_FILES += freebsd/lib/libc/db/btree/bt_conv.c
624LIB_C_FILES += freebsd/lib/libc/db/btree/bt_debug.c
625LIB_C_FILES += freebsd/lib/libc/db/btree/bt_delete.c
626LIB_C_FILES += freebsd/lib/libc/db/btree/bt_get.c
627LIB_C_FILES += freebsd/lib/libc/db/btree/bt_open.c
628LIB_C_FILES += freebsd/lib/libc/db/btree/bt_overflow.c
629LIB_C_FILES += freebsd/lib/libc/db/btree/bt_page.c
630LIB_C_FILES += freebsd/lib/libc/db/btree/bt_put.c
631LIB_C_FILES += freebsd/lib/libc/db/btree/bt_search.c
632LIB_C_FILES += freebsd/lib/libc/db/btree/bt_seq.c
633LIB_C_FILES += freebsd/lib/libc/db/btree/bt_split.c
634LIB_C_FILES += freebsd/lib/libc/db/btree/bt_utils.c
635LIB_C_FILES += freebsd/lib/libc/db/db/db.c
636LIB_C_FILES += freebsd/lib/libc/db/mpool/mpool.c
637LIB_C_FILES += freebsd/lib/libc/db/mpool/mpool-compat.c
638LIB_C_FILES += freebsd/lib/libc/db/recno/rec_close.c
639LIB_C_FILES += freebsd/lib/libc/db/recno/rec_delete.c
640LIB_C_FILES += freebsd/lib/libc/db/recno/rec_get.c
641LIB_C_FILES += freebsd/lib/libc/db/recno/rec_open.c
642LIB_C_FILES += freebsd/lib/libc/db/recno/rec_put.c
643LIB_C_FILES += freebsd/lib/libc/db/recno/rec_search.c
644LIB_C_FILES += freebsd/lib/libc/db/recno/rec_seq.c
645LIB_C_FILES += freebsd/lib/libc/db/recno/rec_utils.c
646LIB_C_FILES += freebsd/lib/libc/gen/err.c
647LIB_C_FILES += freebsd/lib/libc/gen/gethostname.c
648LIB_C_FILES += freebsd/lib/libc/inet/inet_addr.c
649LIB_C_FILES += freebsd/lib/libc/inet/inet_cidr_ntop.c
650LIB_C_FILES += freebsd/lib/libc/inet/inet_cidr_pton.c
651LIB_C_FILES += freebsd/lib/libc/inet/inet_lnaof.c
652LIB_C_FILES += freebsd/lib/libc/inet/inet_makeaddr.c
653LIB_C_FILES += freebsd/lib/libc/inet/inet_neta.c
654LIB_C_FILES += freebsd/lib/libc/inet/inet_net_ntop.c
655LIB_C_FILES += freebsd/lib/libc/inet/inet_netof.c
656LIB_C_FILES += freebsd/lib/libc/inet/inet_net_pton.c
657LIB_C_FILES += freebsd/lib/libc/inet/inet_network.c
658LIB_C_FILES += freebsd/lib/libc/inet/inet_ntoa.c
659LIB_C_FILES += freebsd/lib/libc/inet/inet_ntop.c
660LIB_C_FILES += freebsd/lib/libc/inet/inet_pton.c
661LIB_C_FILES += freebsd/lib/libc/inet/nsap_addr.c
662LIB_C_FILES += freebsd/lib/libc/isc/ev_streams.c
663LIB_C_FILES += freebsd/lib/libc/isc/ev_timers.c
664LIB_C_FILES += freebsd/lib/libc/nameser/ns_name.c
665LIB_C_FILES += freebsd/lib/libc/nameser/ns_netint.c
666LIB_C_FILES += freebsd/lib/libc/nameser/ns_parse.c
667LIB_C_FILES += freebsd/lib/libc/nameser/ns_print.c
668LIB_C_FILES += freebsd/lib/libc/nameser/ns_samedomain.c
669LIB_C_FILES += freebsd/lib/libc/nameser/ns_ttl.c
670LIB_C_FILES += freebsd/lib/libc/net/base64.c
671LIB_C_FILES += freebsd/lib/libc/net/ether_addr.c
672LIB_C_FILES += freebsd/lib/libc/net/gai_strerror.c
673LIB_C_FILES += freebsd/lib/libc/net/getaddrinfo.c
674LIB_C_FILES += freebsd/lib/libc/net/gethostbydns.c
675LIB_C_FILES += freebsd/lib/libc/net/gethostbyht.c
676LIB_C_FILES += freebsd/lib/libc/net/gethostbynis.c
677LIB_C_FILES += freebsd/lib/libc/net/gethostnamadr.c
678LIB_C_FILES += freebsd/lib/libc/net/getifaddrs.c
679LIB_C_FILES += freebsd/lib/libc/net/getifmaddrs.c
680LIB_C_FILES += freebsd/lib/libc/net/getnameinfo.c
681LIB_C_FILES += freebsd/lib/libc/net/getnetbydns.c
682LIB_C_FILES += freebsd/lib/libc/net/getnetbyht.c
683LIB_C_FILES += freebsd/lib/libc/net/getnetbynis.c
684LIB_C_FILES += freebsd/lib/libc/net/getnetnamadr.c
685LIB_C_FILES += freebsd/lib/libc/net/getproto.c
686LIB_C_FILES += freebsd/lib/libc/net/getprotoent.c
687LIB_C_FILES += freebsd/lib/libc/net/getprotoname.c
688LIB_C_FILES += freebsd/lib/libc/net/getservent.c
689LIB_C_FILES += freebsd/lib/libc/net/if_indextoname.c
690LIB_C_FILES += freebsd/lib/libc/net/if_nameindex.c
691LIB_C_FILES += freebsd/lib/libc/net/if_nametoindex.c
692LIB_C_FILES += freebsd/lib/libc/net/linkaddr.c
693LIB_C_FILES += freebsd/lib/libc/net/map_v4v6.c
694LIB_C_FILES += freebsd/lib/libc/net/name6.c
695LIB_C_FILES += freebsd/lib/libc/net/nsdispatch.c
696LIB_C_FILES += freebsd/lib/libc/net/rcmd.c
697LIB_C_FILES += freebsd/lib/libc/net/recv.c
698LIB_C_FILES += freebsd/lib/libc/net/send.c
699LIB_C_FILES += freebsd/lib/libc/net/vars.c
700LIB_C_FILES += freebsd/lib/libc/posix1e/mac.c
701LIB_C_FILES += freebsd/lib/libc/resolv/h_errno.c
702LIB_C_FILES += freebsd/lib/libc/resolv/herror.c
703LIB_C_FILES += freebsd/lib/libc/resolv/mtctxres.c
704LIB_C_FILES += freebsd/lib/libc/resolv/res_comp.c
705LIB_C_FILES += freebsd/lib/libc/resolv/res_data.c
706LIB_C_FILES += freebsd/lib/libc/resolv/res_debug.c
707LIB_C_FILES += freebsd/lib/libc/resolv/res_findzonecut.c
708LIB_C_FILES += freebsd/lib/libc/resolv/res_init.c
709LIB_C_FILES += freebsd/lib/libc/resolv/res_mkquery.c
710LIB_C_FILES += freebsd/lib/libc/resolv/res_mkupdate.c
711LIB_C_FILES += freebsd/lib/libc/resolv/res_query.c
712LIB_C_FILES += freebsd/lib/libc/resolv/res_send.c
713LIB_C_FILES += freebsd/lib/libc/resolv/res_state.c
714LIB_C_FILES += freebsd/lib/libc/resolv/res_update.c
715LIB_C_FILES += freebsd/lib/libc/stdio/fgetln.c
716LIB_C_FILES += freebsd/lib/libc/stdlib/strtonum.c
717LIB_C_FILES += freebsd/lib/libc/string/strsep.c
718LIB_C_FILES += freebsd/lib/libipsec/ipsec_dump_policy.c
719LIB_C_FILES += freebsd/lib/libipsec/ipsec_get_policylen.c
720LIB_C_FILES += freebsd/lib/libipsec/ipsec_strerror.c
721LIB_C_FILES += freebsd/lib/libipsec/pfkey.c
722LIB_C_FILES += freebsd/lib/libipsec/pfkey_dump.c
723LIB_C_FILES += freebsd/lib/libmemstat/memstat_all.c
724LIB_C_FILES += freebsd/lib/libmemstat/memstat.c
725LIB_C_FILES += freebsd/lib/libmemstat/memstat_malloc.c
726LIB_C_FILES += freebsd/lib/libmemstat/memstat_uma.c
727LIB_C_FILES += freebsd/lib/libutil/expand_number.c
728LIB_C_FILES += freebsd/lib/libutil/humanize_number.c
729LIB_C_FILES += freebsd/lib/libutil/trimdomain.c
730LIB_C_FILES += freebsd/sbin/dhclient/alloc.c
731LIB_C_FILES += freebsd/sbin/dhclient/bpf.c
732LIB_C_FILES += freebsd/sbin/dhclient/clparse.c
733LIB_C_FILES += freebsd/sbin/dhclient/conflex.c
734LIB_C_FILES += freebsd/sbin/dhclient/convert.c
735LIB_C_FILES += freebsd/sbin/dhclient/dhclient.c
736LIB_C_FILES += freebsd/sbin/dhclient/dispatch.c
737LIB_C_FILES += freebsd/sbin/dhclient/errwarn.c
738LIB_C_FILES += freebsd/sbin/dhclient/hash.c
739LIB_C_FILES += freebsd/sbin/dhclient/inet.c
740LIB_C_FILES += freebsd/sbin/dhclient/options.c
741LIB_C_FILES += freebsd/sbin/dhclient/packet.c
742LIB_C_FILES += freebsd/sbin/dhclient/parse.c
743LIB_C_FILES += freebsd/sbin/dhclient/privsep.c
744LIB_C_FILES += freebsd/sbin/dhclient/tables.c
745LIB_C_FILES += freebsd/sbin/dhclient/tree.c
746LIB_C_FILES += freebsd/sbin/ifconfig/af_atalk.c
747LIB_C_FILES += freebsd/sbin/ifconfig/af_inet6.c
748LIB_C_FILES += freebsd/sbin/ifconfig/af_inet.c
749LIB_C_FILES += freebsd/sbin/ifconfig/af_link.c
750LIB_C_FILES += freebsd/sbin/ifconfig/af_nd6.c
751LIB_C_FILES += freebsd/sbin/ifconfig/ifbridge.c
752LIB_C_FILES += freebsd/sbin/ifconfig/ifcarp.c
753LIB_C_FILES += freebsd/sbin/ifconfig/ifclone.c
754LIB_C_FILES += freebsd/sbin/ifconfig/ifconfig.c
755LIB_C_FILES += freebsd/sbin/ifconfig/ifgif.c
756LIB_C_FILES += freebsd/sbin/ifconfig/ifgre.c
757LIB_C_FILES += freebsd/sbin/ifconfig/ifgroup.c
758LIB_C_FILES += freebsd/sbin/ifconfig/iflagg.c
759LIB_C_FILES += freebsd/sbin/ifconfig/ifmac.c
760LIB_C_FILES += freebsd/sbin/ifconfig/ifmedia.c
761LIB_C_FILES += freebsd/sbin/ifconfig/ifpfsync.c
762LIB_C_FILES += freebsd/sbin/ifconfig/ifvlan.c
763LIB_C_FILES += freebsd/sbin/ping6/ping6.c
764LIB_C_FILES += freebsd/sbin/ping/ping.c
765LIB_C_FILES += freebsd/sbin/route/route.c
766LIB_C_FILES += freebsd/usr.bin/netstat/atalk.c
767LIB_C_FILES += freebsd/usr.bin/netstat/bpf.c
768LIB_C_FILES += freebsd/usr.bin/netstat/if.c
769LIB_C_FILES += freebsd/usr.bin/netstat/inet6.c
770LIB_C_FILES += freebsd/usr.bin/netstat/inet.c
771LIB_C_FILES += freebsd/usr.bin/netstat/ipsec.c
772LIB_C_FILES += freebsd/usr.bin/netstat/main.c
773LIB_C_FILES += freebsd/usr.bin/netstat/mbuf.c
774LIB_C_FILES += freebsd/usr.bin/netstat/mroute6.c
775LIB_C_FILES += freebsd/usr.bin/netstat/mroute.c
776LIB_C_FILES += freebsd/usr.bin/netstat/route.c
777LIB_C_FILES += freebsd/usr.bin/netstat/pfkey.c
778LIB_C_FILES += freebsd/usr.bin/netstat/sctp.c
779LIB_C_FILES += freebsd/usr.bin/netstat/unix.c
780
781TEST_SLEEP01 = testsuite/sleep01/sleep01.exe
782TEST_SLEEP01_O_FILES =
783TEST_SLEEP01_D_FILES =
784TEST_SLEEP01_O_FILES += testsuite/sleep01/test_main.o
785TEST_SLEEP01_D_FILES += testsuite/sleep01/test_main.d
786$(TEST_SLEEP01): $(TEST_SLEEP01_O_FILES) $(LIB)
787        $(LINK.c) -Wl,-Map,testsuite/sleep01/sleep01.map $^ -lm -lz -o $@
788TESTS += $(TEST_SLEEP01)
789O_FILES += $(TEST_SLEEP01_O_FILES)
790D_FILES += $(TEST_SLEEP01_D_FILES)
791RUN_TESTS += $(TEST_SLEEP01)
792
793TEST_SYSCALLS01 = testsuite/syscalls01/syscalls01.exe
794TEST_SYSCALLS01_O_FILES =
795TEST_SYSCALLS01_D_FILES =
796TEST_SYSCALLS01_O_FILES += testsuite/syscalls01/test_main.o
797TEST_SYSCALLS01_D_FILES += testsuite/syscalls01/test_main.d
798$(TEST_SYSCALLS01): $(TEST_SYSCALLS01_O_FILES) $(LIB)
799        $(LINK.c) -Wl,-Map,testsuite/syscalls01/syscalls01.map $^ -lm -lz -o $@
800TESTS += $(TEST_SYSCALLS01)
801O_FILES += $(TEST_SYSCALLS01_O_FILES)
802D_FILES += $(TEST_SYSCALLS01_D_FILES)
803RUN_TESTS += $(TEST_SYSCALLS01)
804
805TEST_COMMANDS01 = testsuite/commands01/commands01.exe
806TEST_COMMANDS01_O_FILES =
807TEST_COMMANDS01_D_FILES =
808TEST_COMMANDS01_O_FILES += testsuite/commands01/test_main.o
809TEST_COMMANDS01_D_FILES += testsuite/commands01/test_main.d
810$(TEST_COMMANDS01): $(TEST_COMMANDS01_O_FILES) $(LIB)
811        $(LINK.c) -Wl,-Map,testsuite/commands01/commands01.map $^ -lm -lz -o $@
812TESTS += $(TEST_COMMANDS01)
813O_FILES += $(TEST_COMMANDS01_O_FILES)
814D_FILES += $(TEST_COMMANDS01_D_FILES)
815RUN_TESTS += $(TEST_COMMANDS01)
816
817TEST_USB01 = testsuite/usb01/usb01.exe
818TEST_USB01_O_FILES =
819TEST_USB01_D_FILES =
820TEST_USB01_O_FILES += testsuite/usb01/init.o
821TEST_USB01_D_FILES += testsuite/usb01/init.d
822TEST_USB01_O_FILES += testsuite/usb01/test-file-system.o
823TEST_USB01_D_FILES += testsuite/usb01/test-file-system.d
824$(TEST_USB01): $(TEST_USB01_O_FILES) $(LIB)
825        $(LINK.c) -Wl,-Map,testsuite/usb01/usb01.map $^ -lm -lz -o $@
826TESTS += $(TEST_USB01)
827O_FILES += $(TEST_USB01_O_FILES)
828D_FILES += $(TEST_USB01_D_FILES)
829
830TEST_LOOPBACK01 = testsuite/loopback01/loopback01.exe
831TEST_LOOPBACK01_O_FILES =
832TEST_LOOPBACK01_D_FILES =
833TEST_LOOPBACK01_O_FILES += testsuite/loopback01/test_main.o
834TEST_LOOPBACK01_D_FILES += testsuite/loopback01/test_main.d
835$(TEST_LOOPBACK01): $(TEST_LOOPBACK01_O_FILES) $(LIB)
836        $(LINK.c) -Wl,-Map,testsuite/loopback01/loopback01.map $^ -lm -lz -o $@
837TESTS += $(TEST_LOOPBACK01)
838O_FILES += $(TEST_LOOPBACK01_O_FILES)
839D_FILES += $(TEST_LOOPBACK01_D_FILES)
840RUN_TESTS += $(TEST_LOOPBACK01)
841
842TEST_NETSHELL01 = testsuite/netshell01/netshell01.exe
843TEST_NETSHELL01_O_FILES =
844TEST_NETSHELL01_D_FILES =
845TEST_NETSHELL01_O_FILES += testsuite/netshell01/test_main.o
846TEST_NETSHELL01_D_FILES += testsuite/netshell01/test_main.d
847TEST_NETSHELL01_O_FILES += testsuite/netshell01/shellconfig.o
848TEST_NETSHELL01_D_FILES += testsuite/netshell01/shellconfig.d
849TEST_NETSHELL01_O_FILES += testsuite/netshell01/ns_parser_vars.o
850TEST_NETSHELL01_D_FILES += testsuite/netshell01/ns_parser_vars.d
851$(TEST_NETSHELL01): $(TEST_NETSHELL01_O_FILES) $(LIB)
852        $(LINK.c) -Wl,-Map,testsuite/netshell01/netshell01.map $^ -lm -lz -o $@
853TESTS += $(TEST_NETSHELL01)
854O_FILES += $(TEST_NETSHELL01_O_FILES)
855D_FILES += $(TEST_NETSHELL01_D_FILES)
856
857TEST_SWI01 = testsuite/swi01/swi01.exe
858TEST_SWI01_O_FILES =
859TEST_SWI01_D_FILES =
860TEST_SWI01_O_FILES += testsuite/swi01/init.o
861TEST_SWI01_D_FILES += testsuite/swi01/init.d
862TEST_SWI01_O_FILES += testsuite/swi01/swi_test.o
863TEST_SWI01_D_FILES += testsuite/swi01/swi_test.d
864$(TEST_SWI01): $(TEST_SWI01_O_FILES) $(LIB)
865        $(LINK.c) -Wl,-Map,testsuite/swi01/swi01.map $^ -lm -lz -o $@
866TESTS += $(TEST_SWI01)
867O_FILES += $(TEST_SWI01_O_FILES)
868D_FILES += $(TEST_SWI01_D_FILES)
869RUN_TESTS += $(TEST_SWI01)
870
871TEST_TIMEOUT01 = testsuite/timeout01/timeout01.exe
872TEST_TIMEOUT01_O_FILES =
873TEST_TIMEOUT01_D_FILES =
874TEST_TIMEOUT01_O_FILES += testsuite/timeout01/init.o
875TEST_TIMEOUT01_D_FILES += testsuite/timeout01/init.d
876TEST_TIMEOUT01_O_FILES += testsuite/timeout01/timeout_test.o
877TEST_TIMEOUT01_D_FILES += testsuite/timeout01/timeout_test.d
878TEST_TIMEOUT01_O_FILES += testsuite/timeout01/timeout_helper.o
879TEST_TIMEOUT01_D_FILES += testsuite/timeout01/timeout_helper.d
880$(TEST_TIMEOUT01): $(TEST_TIMEOUT01_O_FILES) $(LIB)
881        $(LINK.c) -Wl,-Map,testsuite/timeout01/timeout01.map $^ -lm -lz -o $@
882TESTS += $(TEST_TIMEOUT01)
883O_FILES += $(TEST_TIMEOUT01_O_FILES)
884D_FILES += $(TEST_TIMEOUT01_D_FILES)
885RUN_TESTS += $(TEST_TIMEOUT01)
886
887TEST_INIT01 = testsuite/init01/init01.exe
888TEST_INIT01_O_FILES =
889TEST_INIT01_D_FILES =
890TEST_INIT01_O_FILES += testsuite/init01/test_main.o
891TEST_INIT01_D_FILES += testsuite/init01/test_main.d
892$(TEST_INIT01): $(TEST_INIT01_O_FILES) $(LIB)
893        $(LINK.c) -Wl,-Map,testsuite/init01/init01.map $^ -lm -lz -o $@
894TESTS += $(TEST_INIT01)
895O_FILES += $(TEST_INIT01_O_FILES)
896D_FILES += $(TEST_INIT01_D_FILES)
897RUN_TESTS += $(TEST_INIT01)
898
899TEST_THREAD01 = testsuite/thread01/thread01.exe
900TEST_THREAD01_O_FILES =
901TEST_THREAD01_D_FILES =
902TEST_THREAD01_O_FILES += testsuite/thread01/test_main.o
903TEST_THREAD01_D_FILES += testsuite/thread01/test_main.d
904$(TEST_THREAD01): $(TEST_THREAD01_O_FILES) $(LIB)
905        $(LINK.c) -Wl,-Map,testsuite/thread01/thread01.map $^ -lm -lz -o $@
906TESTS += $(TEST_THREAD01)
907O_FILES += $(TEST_THREAD01_O_FILES)
908D_FILES += $(TEST_THREAD01_D_FILES)
909RUN_TESTS += $(TEST_THREAD01)
910
911ifeq ($(NEED_DUMMY_PIC_IRQ),yes)
912CFLAGS += -I rtems-dummy-pic-irq/include
913endif
914LIB_O_FILES = $(LIB_C_FILES:%.c=%.o)
915O_FILES += $(LIB_O_FILES)
916D_FILES += $(LIB_C_FILES:%.c=%.d)
917
918all: $(LIB) $(TESTS)
919
920$(LIB): $(LIB_GEN_FILES) $(LIB_O_FILES)
921        $(AR) rcu $@ $^
922run_tests: $(RUN_TESTS)
923        $(TEST_RUNNER) $^
924        check_endof
925
926# The following targets use the MIPS Generic in_cksum routine
927rtemsbsd/include/machine/rtems-bsd-config.h: rtemsbsd/include/machine/rtems-bsd-config.h.in
928        sed $(SED_PATTERN) <$< >$@
929
930CPU_SED  = sed
931CPU_SED += -e '/arm/d'
932CPU_SED += -e '/i386/d'
933CPU_SED += -e '/powerpc/d'
934CPU_SED += -e '/mips/d'
935CPU_SED += -e '/sparc64/d'
936
937install: $(LIB)
938        install -d $(INSTALL_BASE)/include
939        install -c -m 644 $(LIB) $(INSTALL_BASE)
940        cd rtemsbsd; for i in `find freebsd -name '*.h'` ; do \
941          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
942        cd contrib/altq; for i in `find freebsd -name '*.h'` ; do \
943          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
944        cd contrib/pf; for i in `find freebsd -name '*.h'` ; do \
945          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
946        for i in `find freebsd -name '*.h' | $(CPU_SED)` ; do \
947          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
948        -cd freebsd/$(RTEMS_CPU)/include && for i in `find . -name '*.h'` ; do \
949          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
950        -cd rtemsbsd/$(RTEMS_CPU)/include && \
951          for i in `find . -name '*.h' | $(CPU_SED)` ; do \
952            install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
953        -cd copied/rtemsbsd/$(RTEMS_CPU)/include && for i in `find . -name '*.h'` ; do \
954          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
955
956clean:
957        rm -f $(LIB_GEN_FILES) $(LIB) $(TESTS) $(O_FILES) $(D_FILES)
958        rm -f libbsd.html
959
960-include $(D_FILES)
961
962doc: libbsd.html
963
964libbsd.html: libbsd.txt
965        asciidoc -o libbsd.html libbsd.txt
Note: See TracBrowser for help on using the repository browser.