source: rtems-libbsd/Makefile @ e599318

4.115-freebsd-12freebsd-9.3
Last change on this file since e599318 was e599318, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 9, 2013 at 8:52:54 PM

Update files to match FreeBSD layout

Add compatibility with Newlib header files. Some FreeBSD header files
are mapped by the translation script:

o rtems/bsd/sys/_types.h
o rtems/bsd/sys/errno.h
o rtems/bsd/sys/lock.h
o rtems/bsd/sys/param.h
o rtems/bsd/sys/resource.h
o rtems/bsd/sys/time.h
o rtems/bsd/sys/timespec.h
o rtems/bsd/sys/types.h
o rtems/bsd/sys/unistd.h

It is now possible to include <sys/socket.h> directly for example.

Generate one Makefile which builds everything including tests.

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