source: rtems-libbsd/Makefile @ c6cbb24

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since c6cbb24 was c6cbb24, checked in by Jennifer Averett <jennifer.averett@…>, on Sep 7, 2012 at 4:38:35 PM

Added contrib/pf

This will be needed for adding the ifconfig command.

  • Property mode set to 100644
File size: 43.3 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 += -I .
9CFLAGS += -I rtemsbsd
10CFLAGS += -I rtemsbsd/$(RTEMS_CPU)/include
11CFLAGS += -I freebsd/$(RTEMS_CPU)/include
12CFLAGS += -I contrib/altq
13CFLAGS += -I contrib/pf
14CFLAGS += -I copied/rtemsbsd/$(RTEMS_CPU)/include
15CFLAGS += -w
16CFLAGS += -std=gnu99
17CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d
18NEED_DUMMY_PIC_IRQ=yes
19
20# do nothing default so sed on rtems-bsd-config.h always works.
21SED_PATTERN += -e 's/^//'
22GENERATED_FILES = rtemsbsd/freebsd/machine/rtems-bsd-config.h
23
24C_FILES =
25C_FILES += rtemsbsd/dev/usb/controller/ohci_lpc24xx.c
26C_FILES += rtemsbsd/dev/usb/controller/ohci_lpc32xx.c
27C_FILES += rtemsbsd/dev/usb/controller/ehci_mpc83xx.c
28C_FILES += rtemsbsd/src/rtems-bsd-thread0-ucred.c
29C_FILES += rtemsbsd/src/rtems-bsd-cam.c
30C_FILES += rtemsbsd/src/rtems-bsd-nexus.c
31C_FILES += rtemsbsd/src/rtems-bsd-autoconf.c
32C_FILES += rtemsbsd/src/rtems-bsd-delay.c
33C_FILES += rtemsbsd/src/rtems-bsd-mutex.c
34C_FILES += rtemsbsd/src/rtems-bsd-thread.c
35C_FILES += rtemsbsd/src/rtems-bsd-condvar.c
36C_FILES += rtemsbsd/src/rtems-bsd-lock.c
37C_FILES += rtemsbsd/src/rtems-bsd-log.c
38C_FILES += rtemsbsd/src/rtems-bsd-sx.c
39C_FILES += rtemsbsd/src/rtems-bsd-rwlock.c
40C_FILES += rtemsbsd/src/rtems-bsd-generic.c
41C_FILES += rtemsbsd/src/rtems-bsd-page.c
42C_FILES += rtemsbsd/src/rtems-bsd-panic.c
43C_FILES += rtemsbsd/src/rtems-bsd-synch.c
44C_FILES += rtemsbsd/src/rtems-bsd-signal.c
45C_FILES += rtemsbsd/src/rtems-bsd-init.c
46C_FILES += rtemsbsd/src/rtems-bsd-init-with-irq.c
47C_FILES += rtemsbsd/src/rtems-bsd-assert.c
48C_FILES += rtemsbsd/src/rtems-bsd-jail.c
49C_FILES += rtemsbsd/src/rtems-bsd-shell.c
50C_FILES += rtemsbsd/src/rtems-bsd-syscalls.c
51C_FILES += rtemsbsd/src/rtems-bsd-smp.c
52C_FILES += rtemsbsd/src/rtems-bsd-malloc.c
53C_FILES += rtemsbsd/src/rtems-bsd-support.c
54C_FILES += rtemsbsd/src/rtems-bsd-bus-dma.c
55C_FILES += rtemsbsd/src/rtems-bsd-bus-dma-mbuf.c
56C_FILES += rtemsbsd/src/rtems-bsd-sysctl.c
57C_FILES += rtemsbsd/src/rtems-bsd-sysctlbyname.c
58C_FILES += rtemsbsd/src/rtems-bsd-sysctlnametomib.c
59C_FILES += rtemsbsd/src/rtems-bsd-taskqueue.c
60C_FILES += rtemsbsd/src/rtems-bsd-timesupport.c
61C_FILES += rtemsbsd/src/rtems-bsd-newproc.c
62C_FILES += rtemsbsd/src/rtems-bsd-vm_glue.c
63C_FILES += rtemsbsd/src/rtems-bsd-copyinout.c
64C_FILES += rtemsbsd/src/rtems-bsd-descrip.c
65C_FILES += rtemsbsd/src/rtems-bsd-conf.c
66C_FILES += rtemsbsd/src/rtems-bsd-subr_param.c
67C_FILES += rtemsbsd/src/rtems-bsd-pci_cfgreg.c
68C_FILES += rtemsbsd/src/rtems-bsd-pci_bus.c
69C_FILES += freebsd/kern/subr_eventhandler.c
70C_FILES += freebsd/kern/kern_subr.c
71C_FILES += freebsd/kern/kern_tc.c
72C_FILES += freebsd/libkern/fls.c
73C_FILES += freebsd/net/bridgestp.c
74C_FILES += freebsd/net/ieee8023ad_lacp.c
75C_FILES += freebsd/net/if_atmsubr.c
76C_FILES += freebsd/net/if.c
77C_FILES += freebsd/net/if_clone.c
78C_FILES += freebsd/net/if_dead.c
79C_FILES += freebsd/net/if_disc.c
80C_FILES += freebsd/net/if_edsc.c
81C_FILES += freebsd/net/if_ef.c
82C_FILES += freebsd/net/if_enc.c
83C_FILES += freebsd/net/if_epair.c
84C_FILES += freebsd/net/if_faith.c
85C_FILES += freebsd/net/if_fddisubr.c
86C_FILES += freebsd/net/if_fwsubr.c
87C_FILES += freebsd/net/if_gif.c
88C_FILES += freebsd/net/if_gre.c
89C_FILES += freebsd/net/if_iso88025subr.c
90C_FILES += freebsd/net/if_lagg.c
91C_FILES += freebsd/net/if_llatbl.c
92C_FILES += freebsd/net/if_loop.c
93C_FILES += freebsd/net/if_media.c
94C_FILES += freebsd/net/if_mib.c
95C_FILES += freebsd/net/if_spppfr.c
96C_FILES += freebsd/net/if_spppsubr.c
97C_FILES += freebsd/net/if_tap.c
98C_FILES += freebsd/net/if_tun.c
99C_FILES += freebsd/net/if_vlan.c
100C_FILES += freebsd/net/pfil.c
101C_FILES += freebsd/net/radix.c
102C_FILES += freebsd/net/radix_mpath.c
103C_FILES += freebsd/net/raw_cb.c
104C_FILES += freebsd/net/raw_usrreq.c
105C_FILES += freebsd/net/route.c
106C_FILES += freebsd/net/rtsock.c
107C_FILES += freebsd/net/slcompress.c
108C_FILES += freebsd/net/zlib.c
109C_FILES += freebsd/net/bpf_buffer.c
110C_FILES += freebsd/net/bpf.c
111C_FILES += freebsd/net/bpf_filter.c
112C_FILES += freebsd/net/bpf_jitter.c
113C_FILES += freebsd/net/if_arcsubr.c
114C_FILES += freebsd/net/if_bridge.c
115C_FILES += freebsd/net/if_ethersubr.c
116C_FILES += freebsd/net/netisr.c
117C_FILES += freebsd/netinet/accf_data.c
118C_FILES += freebsd/netinet/accf_dns.c
119C_FILES += freebsd/netinet/accf_http.c
120C_FILES += freebsd/netinet/if_atm.c
121C_FILES += freebsd/netinet/if_ether.c
122C_FILES += freebsd/netinet/igmp.c
123C_FILES += freebsd/netinet/in.c
124C_FILES += freebsd/netinet/in_gif.c
125C_FILES += freebsd/netinet/in_mcast.c
126C_FILES += freebsd/netinet/in_pcb.c
127C_FILES += freebsd/netinet/in_proto.c
128C_FILES += freebsd/netinet/in_rmx.c
129C_FILES += freebsd/netinet/ip_carp.c
130C_FILES += freebsd/netinet/ip_divert.c
131C_FILES += freebsd/netinet/ip_ecn.c
132C_FILES += freebsd/netinet/ip_encap.c
133C_FILES += freebsd/netinet/ip_fastfwd.c
134C_FILES += freebsd/netinet/ip_gre.c
135C_FILES += freebsd/netinet/ip_icmp.c
136C_FILES += freebsd/netinet/ip_id.c
137C_FILES += freebsd/netinet/ip_input.c
138C_FILES += freebsd/netinet/ip_ipsec.c
139C_FILES += freebsd/netinet/ip_mroute.c
140C_FILES += freebsd/netinet/ip_options.c
141C_FILES += freebsd/netinet/ip_output.c
142C_FILES += freebsd/netinet/raw_ip.c
143C_FILES += freebsd/netinet/sctp_asconf.c
144C_FILES += freebsd/netinet/sctp_auth.c
145C_FILES += freebsd/netinet/sctp_bsd_addr.c
146C_FILES += freebsd/netinet/sctp_cc_functions.c
147C_FILES += freebsd/netinet/sctp_crc32.c
148C_FILES += freebsd/netinet/sctp_indata.c
149C_FILES += freebsd/netinet/sctp_input.c
150C_FILES += freebsd/netinet/sctp_output.c
151C_FILES += freebsd/netinet/sctp_pcb.c
152C_FILES += freebsd/netinet/sctp_peeloff.c
153C_FILES += freebsd/netinet/sctp_sysctl.c
154C_FILES += freebsd/netinet/sctp_timer.c
155C_FILES += freebsd/netinet/sctp_usrreq.c
156C_FILES += freebsd/netinet/sctputil.c
157C_FILES += freebsd/netinet/tcp_debug.c
158C_FILES += freebsd/netinet/tcp_input.c
159C_FILES += freebsd/netinet/tcp_lro.c
160C_FILES += freebsd/netinet/tcp_offload.c
161C_FILES += freebsd/netinet/tcp_output.c
162C_FILES += freebsd/netinet/tcp_reass.c
163C_FILES += freebsd/netinet/tcp_sack.c
164C_FILES += freebsd/netinet/tcp_subr.c
165C_FILES += freebsd/netinet/tcp_syncache.c
166C_FILES += freebsd/netinet/tcp_timer.c
167C_FILES += freebsd/netinet/tcp_timewait.c
168C_FILES += freebsd/netinet/tcp_usrreq.c
169C_FILES += freebsd/netinet/udp_usrreq.c
170C_FILES += freebsd/netinet/ipfw/dn_sched_fifo.c
171C_FILES += freebsd/netinet/ipfw/dn_sched_rr.c
172C_FILES += freebsd/netinet/ipfw/ip_fw_log.c
173C_FILES += freebsd/netinet/ipfw/dn_sched_qfq.c
174C_FILES += freebsd/netinet/ipfw/dn_sched_prio.c
175C_FILES += freebsd/netinet/ipfw/ip_dn_glue.c
176C_FILES += freebsd/netinet/ipfw/ip_fw2.c
177C_FILES += freebsd/netinet/ipfw/dn_heap.c
178C_FILES += freebsd/netinet/ipfw/ip_dummynet.c
179C_FILES += freebsd/netinet/ipfw/ip_fw_sockopt.c
180C_FILES += freebsd/netinet/ipfw/dn_sched_wf2q.c
181C_FILES += freebsd/netinet/ipfw/ip_fw_nat.c
182C_FILES += freebsd/netinet/ipfw/ip_fw_pfil.c
183C_FILES += freebsd/netinet/ipfw/ip_dn_io.c
184C_FILES += freebsd/netinet/ipfw/ip_fw_table.c
185C_FILES += freebsd/netinet/libalias/alias_dummy.c
186C_FILES += freebsd/netinet/libalias/alias_pptp.c
187C_FILES += freebsd/netinet/libalias/alias_smedia.c
188C_FILES += freebsd/netinet/libalias/alias_mod.c
189C_FILES += freebsd/netinet/libalias/alias_cuseeme.c
190C_FILES += freebsd/netinet/libalias/alias_nbt.c
191C_FILES += freebsd/netinet/libalias/alias_irc.c
192C_FILES += freebsd/netinet/libalias/alias_util.c
193C_FILES += freebsd/netinet/libalias/alias_db.c
194C_FILES += freebsd/netinet/libalias/alias_ftp.c
195C_FILES += freebsd/netinet/libalias/alias_proxy.c
196C_FILES += freebsd/netinet/libalias/alias.c
197C_FILES += freebsd/netinet/libalias/alias_skinny.c
198C_FILES += freebsd/netinet/libalias/alias_sctp.c
199ifneq ($(DISABLE_IPV6),yes)
200C_FILES += freebsd/net/if_stf.c
201C_FILES += freebsd/netinet6/dest6.c
202C_FILES += freebsd/netinet6/frag6.c
203C_FILES += freebsd/netinet6/icmp6.c
204C_FILES += freebsd/netinet6/in6.c
205C_FILES += freebsd/netinet6/in6_cksum.c
206C_FILES += freebsd/netinet6/in6_gif.c
207C_FILES += freebsd/netinet6/in6_ifattach.c
208C_FILES += freebsd/netinet6/in6_mcast.c
209C_FILES += freebsd/netinet6/in6_pcb.c
210C_FILES += freebsd/netinet6/in6_proto.c
211C_FILES += freebsd/netinet6/in6_rmx.c
212C_FILES += freebsd/netinet6/in6_src.c
213C_FILES += freebsd/netinet6/ip6_forward.c
214C_FILES += freebsd/netinet6/ip6_id.c
215C_FILES += freebsd/netinet6/ip6_input.c
216C_FILES += freebsd/netinet6/ip6_ipsec.c
217C_FILES += freebsd/netinet6/ip6_mroute.c
218C_FILES += freebsd/netinet6/ip6_output.c
219C_FILES += freebsd/netinet6/mld6.c
220C_FILES += freebsd/netinet6/nd6.c
221C_FILES += freebsd/netinet6/nd6_nbr.c
222C_FILES += freebsd/netinet6/nd6_rtr.c
223C_FILES += freebsd/netinet6/raw_ip6.c
224C_FILES += freebsd/netinet6/route6.c
225C_FILES += freebsd/netinet6/scope6.c
226C_FILES += freebsd/netinet6/sctp6_usrreq.c
227C_FILES += freebsd/netinet6/udp6_usrreq.c
228else
229SED_PATTERN += -e 's/^\#define INET6 1/\/\/ \#define INET6 1/'
230endif # DISABLE_IPV6
231C_FILES += freebsd/netipsec/ipsec.c
232C_FILES += freebsd/netipsec/ipsec_input.c
233C_FILES += freebsd/netipsec/ipsec_mbuf.c
234C_FILES += freebsd/netipsec/ipsec_output.c
235C_FILES += freebsd/netipsec/key.c
236C_FILES += freebsd/netipsec/key_debug.c
237C_FILES += freebsd/netipsec/keysock.c
238C_FILES += freebsd/netipsec/xform_ah.c
239C_FILES += freebsd/netipsec/xform_esp.c
240C_FILES += freebsd/netipsec/xform_ipcomp.c
241C_FILES += freebsd/netipsec/xform_ipip.c
242C_FILES += freebsd/netipsec/xform_tcp.c
243C_FILES += freebsd/net80211/ieee80211_acl.c
244C_FILES += freebsd/net80211/ieee80211_action.c
245C_FILES += freebsd/net80211/ieee80211_adhoc.c
246C_FILES += freebsd/net80211/ieee80211_ageq.c
247C_FILES += freebsd/net80211/ieee80211_amrr.c
248C_FILES += freebsd/net80211/ieee80211.c
249C_FILES += freebsd/net80211/ieee80211_crypto.c
250C_FILES += freebsd/net80211/ieee80211_crypto_ccmp.c
251C_FILES += freebsd/net80211/ieee80211_crypto_none.c
252C_FILES += freebsd/net80211/ieee80211_crypto_tkip.c
253C_FILES += freebsd/net80211/ieee80211_crypto_wep.c
254C_FILES += freebsd/net80211/ieee80211_ddb.c
255C_FILES += freebsd/net80211/ieee80211_dfs.c
256C_FILES += freebsd/net80211/ieee80211_freebsd.c
257C_FILES += freebsd/net80211/ieee80211_hostap.c
258C_FILES += freebsd/net80211/ieee80211_ht.c
259C_FILES += freebsd/net80211/ieee80211_hwmp.c
260C_FILES += freebsd/net80211/ieee80211_input.c
261C_FILES += freebsd/net80211/ieee80211_ioctl.c
262C_FILES += freebsd/net80211/ieee80211_mesh.c
263C_FILES += freebsd/net80211/ieee80211_monitor.c
264C_FILES += freebsd/net80211/ieee80211_node.c
265C_FILES += freebsd/net80211/ieee80211_output.c
266C_FILES += freebsd/net80211/ieee80211_phy.c
267C_FILES += freebsd/net80211/ieee80211_power.c
268C_FILES += freebsd/net80211/ieee80211_proto.c
269C_FILES += freebsd/net80211/ieee80211_radiotap.c
270C_FILES += freebsd/net80211/ieee80211_ratectl.c
271C_FILES += freebsd/net80211/ieee80211_ratectl_none.c
272C_FILES += freebsd/net80211/ieee80211_regdomain.c
273C_FILES += freebsd/net80211/ieee80211_rssadapt.c
274C_FILES += freebsd/net80211/ieee80211_scan.c
275C_FILES += freebsd/net80211/ieee80211_scan_sta.c
276C_FILES += freebsd/net80211/ieee80211_sta.c
277C_FILES += freebsd/net80211/ieee80211_superg.c
278C_FILES += freebsd/net80211/ieee80211_tdma.c
279C_FILES += freebsd/net80211/ieee80211_wds.c
280C_FILES += freebsd/net80211/ieee80211_xauth.c
281C_FILES += freebsd/opencrypto/crypto.c
282C_FILES += freebsd/opencrypto/deflate.c
283C_FILES += freebsd/opencrypto/cryptosoft.c
284C_FILES += freebsd/opencrypto/criov.c
285C_FILES += freebsd/opencrypto/rmd160.c
286C_FILES += freebsd/opencrypto/xform.c
287C_FILES += freebsd/opencrypto/skipjack.c
288C_FILES += freebsd/opencrypto/cast.c
289C_FILES += freebsd/opencrypto/cryptodev.c
290C_FILES += freebsd/crypto/sha1.c
291C_FILES += freebsd/crypto/sha2/sha2.c
292C_FILES += freebsd/crypto/rijndael/rijndael-alg-fst.c
293C_FILES += freebsd/crypto/rijndael/rijndael-api.c
294C_FILES += freebsd/crypto/rijndael/rijndael-api-fst.c
295C_FILES += freebsd/crypto/des/des_setkey.c
296C_FILES += freebsd/crypto/des/des_enc.c
297C_FILES += freebsd/crypto/des/des_ecb.c
298C_FILES += freebsd/crypto/blowfish/bf_enc.c
299C_FILES += freebsd/crypto/blowfish/bf_skey.c
300C_FILES += freebsd/crypto/blowfish/bf_ecb.c
301C_FILES += freebsd/crypto/rc4/rc4.c
302C_FILES += freebsd/crypto/camellia/camellia-api.c
303C_FILES += freebsd/crypto/camellia/camellia.c
304C_FILES += contrib/altq/freebsd/altq/altq_rmclass.c
305C_FILES += contrib/altq/freebsd/altq/altq_rio.c
306C_FILES += contrib/altq/freebsd/altq/altq_subr.c
307C_FILES += contrib/altq/freebsd/altq/altq_cdnr.c
308C_FILES += contrib/altq/freebsd/altq/altq_priq.c
309C_FILES += contrib/altq/freebsd/altq/altq_cbq.c
310C_FILES += contrib/altq/freebsd/altq/altq_hfsc.c
311C_FILES += contrib/altq/freebsd/altq/altq_red.c
312C_FILES += contrib/pf/freebsd/netinet/in4_cksum.c
313C_FILES += contrib/pf/freebsd/net/pf.c
314C_FILES += contrib/pf/freebsd/net/if_pflog.c
315C_FILES += contrib/pf/freebsd/net/pf_subr.c
316C_FILES += contrib/pf/freebsd/net/pf_ioctl.c
317C_FILES += contrib/pf/freebsd/net/pf_table.c
318C_FILES += contrib/pf/freebsd/net/pf_if.c
319C_FILES += contrib/pf/freebsd/net/pf_osfp.c
320C_FILES += contrib/pf/freebsd/net/pf_norm.c
321C_FILES += contrib/pf/freebsd/net/pf_ruleset.c
322C_FILES += contrib/pf/freebsd/net/if_pfsync.c
323C_FILES += freebsd/dev/mii/mii.c
324C_FILES += freebsd/dev/mii/mii_physubr.c
325C_FILES += freebsd/dev/mii/icsphy.c
326C_FILES += freebsd/dev/mii/brgphy.c
327C_FILES += freebsd/local/usb_if.c
328C_FILES += freebsd/local/bus_if.c
329C_FILES += freebsd/local/device_if.c
330C_FILES += freebsd/local/cryptodev_if.c
331C_FILES += freebsd/local/miibus_if.c
332C_FILES += freebsd/local/pci_if.c
333C_FILES += freebsd/local/pcib_if.c
334C_FILES += freebsd/kern/init_main.c
335C_FILES += freebsd/kern/kern_linker.c
336C_FILES += freebsd/kern/kern_mib.c
337C_FILES += freebsd/kern/kern_timeout.c
338C_FILES += freebsd/kern/kern_mbuf.c
339C_FILES += freebsd/kern/kern_module.c
340C_FILES += freebsd/kern/kern_sysctl.c
341C_FILES += freebsd/kern/subr_bus.c
342C_FILES += freebsd/kern/subr_kobj.c
343C_FILES += freebsd/kern/uipc_mbuf.c
344C_FILES += freebsd/kern/uipc_mbuf2.c
345C_FILES += freebsd/kern/uipc_socket.c
346C_FILES += freebsd/kern/uipc_sockbuf.c
347C_FILES += freebsd/kern/uipc_domain.c
348C_FILES += freebsd/vm/uma_core.c
349C_FILES += freebsd/dev/usb/usb_busdma.c
350C_FILES += freebsd/dev/usb/usb_core.c
351C_FILES += freebsd/dev/usb/usb_debug.c
352C_FILES += freebsd/dev/usb/usb_dev.c
353C_FILES += freebsd/dev/usb/usb_device.c
354C_FILES += freebsd/dev/usb/usb_dynamic.c
355C_FILES += freebsd/dev/usb/usb_error.c
356C_FILES += freebsd/dev/usb/usb_generic.c
357C_FILES += freebsd/dev/usb/usb_handle_request.c
358C_FILES += freebsd/dev/usb/usb_hid.c
359C_FILES += freebsd/dev/usb/usb_hub.c
360C_FILES += freebsd/dev/usb/usb_lookup.c
361C_FILES += freebsd/dev/usb/usb_mbuf.c
362C_FILES += freebsd/dev/usb/usb_msctest.c
363C_FILES += freebsd/dev/usb/usb_parse.c
364C_FILES += freebsd/dev/usb/usb_process.c
365C_FILES += freebsd/dev/usb/usb_request.c
366C_FILES += freebsd/dev/usb/usb_transfer.c
367C_FILES += freebsd/dev/usb/usb_util.c
368C_FILES += freebsd/dev/usb/quirk/usb_quirk.c
369C_FILES += freebsd/dev/usb/controller/ohci.c
370C_FILES += freebsd/dev/usb/controller/ehci.c
371C_FILES += freebsd/dev/usb/controller/usb_controller.c
372C_FILES += freebsd/cam/cam.c
373C_FILES += freebsd/cam/scsi/scsi_all.c
374C_FILES += freebsd/dev/usb/storage/umass.c
375C_FILES += freebsd/kern/subr_hints.c
376C_FILES += freebsd/dev/random/harvest.c
377C_FILES += freebsd/libkern/random.c
378C_FILES += freebsd/libkern/arc4random.c
379C_FILES += freebsd/kern/subr_pcpu.c
380C_FILES += freebsd/kern/subr_sbuf.c
381C_FILES += freebsd/kern/subr_rman.c
382C_FILES += freebsd/kern/subr_module.c
383C_FILES += freebsd/libkern/inet_ntoa.c
384C_FILES += freebsd/kern/kern_prot.c
385C_FILES += freebsd/kern/kern_proc.c
386C_FILES += freebsd/kern/kern_time.c
387C_FILES += freebsd/kern/kern_event.c
388C_FILES += freebsd/netinet/tcp_hostcache.c
389C_FILES += freebsd/dev/pci/pci.c
390C_FILES += freebsd/dev/pci/pci_user.c
391C_FILES += freebsd/kern/uipc_accf.c
392C_FILES += freebsd/kern/kern_ntptime.c
393C_FILES += freebsd/kern/kern_environment.c
394C_FILES += freebsd/kern/kern_intr.c
395C_FILES += freebsd/kern/kern_resource.c
396C_FILES += freebsd/kern/subr_bufring.c
397C_FILES += freebsd/dev/led/led.c
398C_FILES += freebsd/kern/subr_unit.c
399C_FILES += freebsd/dev/pci/pci_pci.c
400C_FILES += freebsd/netatalk/aarp.c
401C_FILES += freebsd/netatalk/at_control.c
402C_FILES += freebsd/netatalk/at_rmx.c
403C_FILES += freebsd/netatalk/ddp_input.c
404C_FILES += freebsd/netatalk/ddp_pcb.c
405C_FILES += freebsd/netatalk/ddp_usrreq.c
406C_FILES += freebsd/netatalk/at_proto.c
407C_FILES += freebsd/netatalk/ddp_output.c
408ifeq ($(RTEMS_CPU), i386)
409C_FILES += freebsd/i386/pci/pci_bus.c
410C_FILES += freebsd/i386/i386/legacy.c
411NEED_DUMMY_PIC_IRQ=no
412endif
413C_FILES += freebsd/dev/re/if_re.c
414C_FILES += freebsd/dev/fxp/if_fxp.c
415C_FILES += freebsd/dev/e1000/e1000_80003es2lan.c
416C_FILES += freebsd/dev/e1000/e1000_82542.c
417C_FILES += freebsd/dev/e1000/e1000_82575.c
418C_FILES += freebsd/dev/e1000/e1000_mac.c
419C_FILES += freebsd/dev/e1000/e1000_nvm.c
420C_FILES += freebsd/dev/e1000/e1000_vf.c
421C_FILES += freebsd/dev/e1000/if_lem.c
422C_FILES += freebsd/dev/e1000/e1000_82540.c
423C_FILES += freebsd/dev/e1000/e1000_82543.c
424C_FILES += freebsd/dev/e1000/e1000_api.c
425C_FILES += freebsd/dev/e1000/e1000_manage.c
426C_FILES += freebsd/dev/e1000/e1000_osdep.c
427C_FILES += freebsd/dev/e1000/if_em.c
428C_FILES += freebsd/dev/e1000/e1000_82541.c
429C_FILES += freebsd/dev/e1000/e1000_82571.c
430C_FILES += freebsd/dev/e1000/e1000_ich8lan.c
431C_FILES += freebsd/dev/e1000/e1000_mbx.c
432C_FILES += freebsd/dev/e1000/e1000_phy.c
433C_FILES += freebsd/dev/e1000/if_igb.c
434C_FILES += freebsd/dev/dc/dcphy.c
435C_FILES += freebsd/dev/dc/if_dc.c
436C_FILES += freebsd/dev/dc/pnphy.c
437C_FILES += freebsd/dev/smc/if_smc.c
438C_FILES += freebsd/dev/bce/if_bce.c
439C_FILES += freebsd/dev/bfe/if_bfe.c
440C_FILES += freebsd/dev/bge/if_bge.c
441ifeq ($(RTEMS_CPU), arm)
442C_FILES += freebsd/arm/arm/in_cksum.c
443NEED_DUMMY_PIC_IRQ=no
444endif
445ifeq ($(RTEMS_CPU), i386)
446C_FILES += freebsd/i386/i386/in_cksum.c
447NEED_DUMMY_PIC_IRQ=no
448endif
449ifeq ($(RTEMS_CPU), mips)
450C_FILES += freebsd/mips/mips/in_cksum.c
451NEED_DUMMY_PIC_IRQ=no
452endif
453ifeq ($(RTEMS_CPU), powerpc)
454C_FILES += freebsd/powerpc/powerpc/in_cksum.c
455NEED_DUMMY_PIC_IRQ=no
456endif
457ifeq ($(RTEMS_CPU), sparc)
458C_FILES += freebsd/mips/mips/in_cksum.c
459NEED_DUMMY_PIC_IRQ=no
460endif
461ifeq ($(RTEMS_CPU), sparc64)
462C_FILES += freebsd/sparc64/sparc64/in_cksum.c
463endif
464ifeq ($(RTEMS_CPU), avr)
465GENERATED_FILES += copied/rtemsbsd/avr/avr/in_cksum.c
466GENERATED_FILES += copied/rtemsbsd/avr/include/freebsd/machine/in_cksum.h
467GENERATED_FILES += copied/rtemsbsd/avr/avr/in_cksum.c
468C_FILES += copied/rtemsbsd/avr/avr/in_cksum.c
469endif
470ifeq ($(RTEMS_CPU), bfin)
471GENERATED_FILES += copied/rtemsbsd/bfin/bfin/in_cksum.c
472GENERATED_FILES += copied/rtemsbsd/bfin/include/freebsd/machine/in_cksum.h
473GENERATED_FILES += copied/rtemsbsd/bfin/bfin/in_cksum.c
474C_FILES += copied/rtemsbsd/bfin/bfin/in_cksum.c
475endif
476ifeq ($(RTEMS_CPU), h8300)
477GENERATED_FILES += copied/rtemsbsd/h8300/h8300/in_cksum.c
478GENERATED_FILES += copied/rtemsbsd/h8300/include/freebsd/machine/in_cksum.h
479GENERATED_FILES += copied/rtemsbsd/h8300/h8300/in_cksum.c
480C_FILES += copied/rtemsbsd/h8300/h8300/in_cksum.c
481endif
482ifeq ($(RTEMS_CPU), lm32)
483GENERATED_FILES += copied/rtemsbsd/lm32/lm32/in_cksum.c
484GENERATED_FILES += copied/rtemsbsd/lm32/include/freebsd/machine/in_cksum.h
485GENERATED_FILES += copied/rtemsbsd/lm32/lm32/in_cksum.c
486C_FILES += copied/rtemsbsd/lm32/lm32/in_cksum.c
487endif
488ifeq ($(RTEMS_CPU), m32c)
489GENERATED_FILES += copied/rtemsbsd/m32c/m32c/in_cksum.c
490GENERATED_FILES += copied/rtemsbsd/m32c/include/freebsd/machine/in_cksum.h
491GENERATED_FILES += copied/rtemsbsd/m32c/m32c/in_cksum.c
492C_FILES += copied/rtemsbsd/m32c/m32c/in_cksum.c
493endif
494ifeq ($(RTEMS_CPU), m32r)
495GENERATED_FILES += copied/rtemsbsd/m32r/m32r/in_cksum.c
496GENERATED_FILES += copied/rtemsbsd/m32r/include/freebsd/machine/in_cksum.h
497GENERATED_FILES += copied/rtemsbsd/m32r/m32r/in_cksum.c
498C_FILES += copied/rtemsbsd/m32r/m32r/in_cksum.c
499endif
500ifeq ($(RTEMS_CPU), m68k)
501GENERATED_FILES += copied/rtemsbsd/m68k/m68k/in_cksum.c
502GENERATED_FILES += copied/rtemsbsd/m68k/include/freebsd/machine/in_cksum.h
503GENERATED_FILES += copied/rtemsbsd/m68k/m68k/in_cksum.c
504C_FILES += copied/rtemsbsd/m68k/m68k/in_cksum.c
505endif
506ifeq ($(RTEMS_CPU), nios2)
507GENERATED_FILES += copied/rtemsbsd/nios2/nios2/in_cksum.c
508GENERATED_FILES += copied/rtemsbsd/nios2/include/freebsd/machine/in_cksum.h
509GENERATED_FILES += copied/rtemsbsd/nios2/nios2/in_cksum.c
510C_FILES += copied/rtemsbsd/nios2/nios2/in_cksum.c
511endif
512ifeq ($(RTEMS_CPU), sh)
513GENERATED_FILES += copied/rtemsbsd/sh/sh/in_cksum.c
514GENERATED_FILES += copied/rtemsbsd/sh/include/freebsd/machine/in_cksum.h
515GENERATED_FILES += copied/rtemsbsd/sh/sh/in_cksum.c
516C_FILES += copied/rtemsbsd/sh/sh/in_cksum.c
517endif
518ifeq ($(RTEMS_CPU), sparc)
519GENERATED_FILES += copied/rtemsbsd/sparc/sparc/in_cksum.c
520GENERATED_FILES += copied/rtemsbsd/sparc/include/freebsd/machine/in_cksum.h
521GENERATED_FILES += copied/rtemsbsd/sparc/sparc/in_cksum.c
522C_FILES += copied/rtemsbsd/sparc/sparc/in_cksum.c
523endif
524ifeq ($(RTEMS_CPU), v850)
525GENERATED_FILES += copied/rtemsbsd/v850/v850/in_cksum.c
526GENERATED_FILES += copied/rtemsbsd/v850/include/freebsd/machine/in_cksum.h
527GENERATED_FILES += copied/rtemsbsd/v850/v850/in_cksum.c
528C_FILES += copied/rtemsbsd/v850/v850/in_cksum.c
529endif
530ifeq ($(RTEMS_CPU), arm)
531GENERATED_FILES += copied/rtemsbsd/arm/include/freebsd/machine/legacyvar.h
532GENERATED_FILES += copied/rtemsbsd/arm/include/freebsd/machine/pci_cfgreg.h
533GENERATED_FILES += copied/freebsd/arm/pci/pci_bus.c
534GENERATED_FILES += copied/freebsd/arm/arm/legacy.c
535C_FILES += copied/freebsd/arm/pci/pci_bus.c
536C_FILES += copied/freebsd/arm/arm/legacy.c
537endif
538ifeq ($(RTEMS_CPU), avr)
539GENERATED_FILES += copied/rtemsbsd/avr/include/freebsd/machine/legacyvar.h
540GENERATED_FILES += copied/rtemsbsd/avr/include/freebsd/machine/pci_cfgreg.h
541GENERATED_FILES += copied/freebsd/avr/pci/pci_bus.c
542GENERATED_FILES += copied/freebsd/avr/avr/legacy.c
543C_FILES += copied/freebsd/avr/pci/pci_bus.c
544C_FILES += copied/freebsd/avr/avr/legacy.c
545endif
546ifeq ($(RTEMS_CPU), bfin)
547GENERATED_FILES += copied/rtemsbsd/bfin/include/freebsd/machine/legacyvar.h
548GENERATED_FILES += copied/rtemsbsd/bfin/include/freebsd/machine/pci_cfgreg.h
549GENERATED_FILES += copied/freebsd/bfin/pci/pci_bus.c
550GENERATED_FILES += copied/freebsd/bfin/bfin/legacy.c
551C_FILES += copied/freebsd/bfin/pci/pci_bus.c
552C_FILES += copied/freebsd/bfin/bfin/legacy.c
553endif
554ifeq ($(RTEMS_CPU), h8300)
555GENERATED_FILES += copied/rtemsbsd/h8300/include/freebsd/machine/legacyvar.h
556GENERATED_FILES += copied/rtemsbsd/h8300/include/freebsd/machine/pci_cfgreg.h
557GENERATED_FILES += copied/freebsd/h8300/pci/pci_bus.c
558GENERATED_FILES += copied/freebsd/h8300/h8300/legacy.c
559C_FILES += copied/freebsd/h8300/pci/pci_bus.c
560C_FILES += copied/freebsd/h8300/h8300/legacy.c
561endif
562ifeq ($(RTEMS_CPU), lm32)
563GENERATED_FILES += copied/rtemsbsd/lm32/include/freebsd/machine/legacyvar.h
564GENERATED_FILES += copied/rtemsbsd/lm32/include/freebsd/machine/pci_cfgreg.h
565GENERATED_FILES += copied/freebsd/lm32/pci/pci_bus.c
566GENERATED_FILES += copied/freebsd/lm32/lm32/legacy.c
567C_FILES += copied/freebsd/lm32/pci/pci_bus.c
568C_FILES += copied/freebsd/lm32/lm32/legacy.c
569endif
570ifeq ($(RTEMS_CPU), m32c)
571GENERATED_FILES += copied/rtemsbsd/m32c/include/freebsd/machine/legacyvar.h
572GENERATED_FILES += copied/rtemsbsd/m32c/include/freebsd/machine/pci_cfgreg.h
573GENERATED_FILES += copied/freebsd/m32c/pci/pci_bus.c
574GENERATED_FILES += copied/freebsd/m32c/m32c/legacy.c
575C_FILES += copied/freebsd/m32c/pci/pci_bus.c
576C_FILES += copied/freebsd/m32c/m32c/legacy.c
577endif
578ifeq ($(RTEMS_CPU), m32r)
579GENERATED_FILES += copied/rtemsbsd/m32r/include/freebsd/machine/legacyvar.h
580GENERATED_FILES += copied/rtemsbsd/m32r/include/freebsd/machine/pci_cfgreg.h
581GENERATED_FILES += copied/freebsd/m32r/pci/pci_bus.c
582GENERATED_FILES += copied/freebsd/m32r/m32r/legacy.c
583C_FILES += copied/freebsd/m32r/pci/pci_bus.c
584C_FILES += copied/freebsd/m32r/m32r/legacy.c
585endif
586ifeq ($(RTEMS_CPU), m68k)
587GENERATED_FILES += copied/rtemsbsd/m68k/include/freebsd/machine/legacyvar.h
588GENERATED_FILES += copied/rtemsbsd/m68k/include/freebsd/machine/pci_cfgreg.h
589GENERATED_FILES += copied/freebsd/m68k/pci/pci_bus.c
590GENERATED_FILES += copied/freebsd/m68k/m68k/legacy.c
591C_FILES += copied/freebsd/m68k/pci/pci_bus.c
592C_FILES += copied/freebsd/m68k/m68k/legacy.c
593endif
594ifeq ($(RTEMS_CPU), mips)
595GENERATED_FILES += copied/rtemsbsd/mips/include/freebsd/machine/legacyvar.h
596GENERATED_FILES += copied/rtemsbsd/mips/include/freebsd/machine/pci_cfgreg.h
597GENERATED_FILES += copied/freebsd/mips/pci/pci_bus.c
598GENERATED_FILES += copied/freebsd/mips/mips/legacy.c
599C_FILES += copied/freebsd/mips/pci/pci_bus.c
600C_FILES += copied/freebsd/mips/mips/legacy.c
601endif
602ifeq ($(RTEMS_CPU), nios2)
603GENERATED_FILES += copied/rtemsbsd/nios2/include/freebsd/machine/legacyvar.h
604GENERATED_FILES += copied/rtemsbsd/nios2/include/freebsd/machine/pci_cfgreg.h
605GENERATED_FILES += copied/freebsd/nios2/pci/pci_bus.c
606GENERATED_FILES += copied/freebsd/nios2/nios2/legacy.c
607C_FILES += copied/freebsd/nios2/pci/pci_bus.c
608C_FILES += copied/freebsd/nios2/nios2/legacy.c
609endif
610ifeq ($(RTEMS_CPU), powerpc)
611GENERATED_FILES += copied/rtemsbsd/powerpc/include/freebsd/machine/legacyvar.h
612GENERATED_FILES += copied/rtemsbsd/powerpc/include/freebsd/machine/pci_cfgreg.h
613GENERATED_FILES += copied/freebsd/powerpc/pci/pci_bus.c
614GENERATED_FILES += copied/freebsd/powerpc/powerpc/legacy.c
615C_FILES += copied/freebsd/powerpc/pci/pci_bus.c
616C_FILES += copied/freebsd/powerpc/powerpc/legacy.c
617endif
618ifeq ($(RTEMS_CPU), sh)
619GENERATED_FILES += copied/rtemsbsd/sh/include/freebsd/machine/legacyvar.h
620GENERATED_FILES += copied/rtemsbsd/sh/include/freebsd/machine/pci_cfgreg.h
621GENERATED_FILES += copied/freebsd/sh/pci/pci_bus.c
622GENERATED_FILES += copied/freebsd/sh/sh/legacy.c
623C_FILES += copied/freebsd/sh/pci/pci_bus.c
624C_FILES += copied/freebsd/sh/sh/legacy.c
625endif
626ifeq ($(RTEMS_CPU), sparc)
627GENERATED_FILES += copied/rtemsbsd/sparc/include/freebsd/machine/legacyvar.h
628GENERATED_FILES += copied/rtemsbsd/sparc/include/freebsd/machine/pci_cfgreg.h
629GENERATED_FILES += copied/freebsd/sparc/pci/pci_bus.c
630GENERATED_FILES += copied/freebsd/sparc/sparc/legacy.c
631C_FILES += copied/freebsd/sparc/pci/pci_bus.c
632C_FILES += copied/freebsd/sparc/sparc/legacy.c
633endif
634ifeq ($(RTEMS_CPU), sparc64)
635GENERATED_FILES += copied/rtemsbsd/sparc64/include/freebsd/machine/legacyvar.h
636GENERATED_FILES += copied/rtemsbsd/sparc64/include/freebsd/machine/pci_cfgreg.h
637GENERATED_FILES += copied/freebsd/sparc64/pci/pci_bus.c
638GENERATED_FILES += copied/freebsd/sparc64/sparc64/legacy.c
639C_FILES += copied/freebsd/sparc64/pci/pci_bus.c
640C_FILES += copied/freebsd/sparc64/sparc64/legacy.c
641endif
642ifeq ($(RTEMS_CPU), v850)
643GENERATED_FILES += copied/rtemsbsd/v850/include/freebsd/machine/legacyvar.h
644GENERATED_FILES += copied/rtemsbsd/v850/include/freebsd/machine/pci_cfgreg.h
645GENERATED_FILES += copied/freebsd/v850/pci/pci_bus.c
646GENERATED_FILES += copied/freebsd/v850/v850/legacy.c
647C_FILES += copied/freebsd/v850/pci/pci_bus.c
648C_FILES += copied/freebsd/v850/v850/legacy.c
649endif
650
651ifeq ($(NEED_DUMMY_PIC_IRQ),yes)
652CFLAGS += -I rtems-dummy-pic-irq/include
653endif
654C_O_FILES = $(C_FILES:%.c=%.o)
655C_D_FILES = $(C_FILES:%.c=%.d)
656
657LIB = libbsd.a
658
659all: $(LIB) lib_user
660
661$(LIB): $(GENERATED_FILES) $(C_O_FILES)
662        $(AR) rcu $@ $^
663
664lib_user: $(LIB) install_bsd
665        $(MAKE) -C freebsd-userspace
666
667# The following targets use the MIPS Generic in_cksum routine
668rtemsbsd/freebsd/machine/rtems-bsd-config.h: rtemsbsd/freebsd/machine/rtems-bsd-config.h.in
669        sed $(SED_PATTERN) <$< >$@
670
671copied/rtemsbsd/avr/avr/in_cksum.c: freebsd/mips/mips/in_cksum.c
672        test -d copied/rtemsbsd/avr/avr/ || mkdir -p copied/rtemsbsd/avr/avr/
673        cp $< $@
674
675copied/rtemsbsd/avr/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
676        test -d copied/rtemsbsd/avr/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/avr/include/freebsd/machine/
677        cp $< $@
678
679copied/rtemsbsd/bfin/bfin/in_cksum.c: freebsd/mips/mips/in_cksum.c
680        test -d copied/rtemsbsd/bfin/bfin/ || mkdir -p copied/rtemsbsd/bfin/bfin/
681        cp $< $@
682
683copied/rtemsbsd/bfin/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
684        test -d copied/rtemsbsd/bfin/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/bfin/include/freebsd/machine/
685        cp $< $@
686
687copied/rtemsbsd/h8300/h8300/in_cksum.c: freebsd/mips/mips/in_cksum.c
688        test -d copied/rtemsbsd/h8300/h8300/ || mkdir -p copied/rtemsbsd/h8300/h8300/
689        cp $< $@
690
691copied/rtemsbsd/h8300/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
692        test -d copied/rtemsbsd/h8300/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/h8300/include/freebsd/machine/
693        cp $< $@
694
695copied/rtemsbsd/lm32/lm32/in_cksum.c: freebsd/mips/mips/in_cksum.c
696        test -d copied/rtemsbsd/lm32/lm32/ || mkdir -p copied/rtemsbsd/lm32/lm32/
697        cp $< $@
698
699copied/rtemsbsd/lm32/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
700        test -d copied/rtemsbsd/lm32/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/lm32/include/freebsd/machine/
701        cp $< $@
702
703copied/rtemsbsd/m32c/m32c/in_cksum.c: freebsd/mips/mips/in_cksum.c
704        test -d copied/rtemsbsd/m32c/m32c/ || mkdir -p copied/rtemsbsd/m32c/m32c/
705        cp $< $@
706
707copied/rtemsbsd/m32c/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
708        test -d copied/rtemsbsd/m32c/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32c/include/freebsd/machine/
709        cp $< $@
710
711copied/rtemsbsd/m32r/m32r/in_cksum.c: freebsd/mips/mips/in_cksum.c
712        test -d copied/rtemsbsd/m32r/m32r/ || mkdir -p copied/rtemsbsd/m32r/m32r/
713        cp $< $@
714
715copied/rtemsbsd/m32r/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
716        test -d copied/rtemsbsd/m32r/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32r/include/freebsd/machine/
717        cp $< $@
718
719copied/rtemsbsd/m68k/m68k/in_cksum.c: freebsd/mips/mips/in_cksum.c
720        test -d copied/rtemsbsd/m68k/m68k/ || mkdir -p copied/rtemsbsd/m68k/m68k/
721        cp $< $@
722
723copied/rtemsbsd/m68k/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
724        test -d copied/rtemsbsd/m68k/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m68k/include/freebsd/machine/
725        cp $< $@
726
727copied/rtemsbsd/nios2/nios2/in_cksum.c: freebsd/mips/mips/in_cksum.c
728        test -d copied/rtemsbsd/nios2/nios2/ || mkdir -p copied/rtemsbsd/nios2/nios2/
729        cp $< $@
730
731copied/rtemsbsd/nios2/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
732        test -d copied/rtemsbsd/nios2/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/nios2/include/freebsd/machine/
733        cp $< $@
734
735copied/rtemsbsd/sh/sh/in_cksum.c: freebsd/mips/mips/in_cksum.c
736        test -d copied/rtemsbsd/sh/sh/ || mkdir -p copied/rtemsbsd/sh/sh/
737        cp $< $@
738
739copied/rtemsbsd/sh/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
740        test -d copied/rtemsbsd/sh/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sh/include/freebsd/machine/
741        cp $< $@
742
743copied/rtemsbsd/sparc/sparc/in_cksum.c: freebsd/mips/mips/in_cksum.c
744        test -d copied/rtemsbsd/sparc/sparc/ || mkdir -p copied/rtemsbsd/sparc/sparc/
745        cp $< $@
746
747copied/rtemsbsd/sparc/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
748        test -d copied/rtemsbsd/sparc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc/include/freebsd/machine/
749        cp $< $@
750
751copied/rtemsbsd/v850/v850/in_cksum.c: freebsd/mips/mips/in_cksum.c
752        test -d copied/rtemsbsd/v850/v850/ || mkdir -p copied/rtemsbsd/v850/v850/
753        cp $< $@
754
755copied/rtemsbsd/v850/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
756        test -d copied/rtemsbsd/v850/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/v850/include/freebsd/machine/
757        cp $< $@
758
759copied/rtemsbsd/arm/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
760        test -d copied/rtemsbsd/arm/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/arm/include/freebsd/machine/
761        cp $< $@
762
763copied/rtemsbsd/arm/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
764        test -d copied/rtemsbsd/arm/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/arm/include/freebsd/machine/
765        cp $< $@
766
767copied/freebsd/arm/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
768        test -d copied/freebsd/arm/pci/ || mkdir -p copied/freebsd/arm/pci/
769        cp $< $@
770
771copied/freebsd/arm/arm/legacy.c: freebsd/i386/i386/legacy.c
772        test -d copied/freebsd/arm/arm/ || mkdir -p copied/freebsd/arm/arm/
773        cp $< $@
774
775copied/rtemsbsd/avr/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
776        test -d copied/rtemsbsd/avr/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/avr/include/freebsd/machine/
777        cp $< $@
778
779copied/rtemsbsd/avr/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
780        test -d copied/rtemsbsd/avr/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/avr/include/freebsd/machine/
781        cp $< $@
782
783copied/freebsd/avr/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
784        test -d copied/freebsd/avr/pci/ || mkdir -p copied/freebsd/avr/pci/
785        cp $< $@
786
787copied/freebsd/avr/avr/legacy.c: freebsd/i386/i386/legacy.c
788        test -d copied/freebsd/avr/avr/ || mkdir -p copied/freebsd/avr/avr/
789        cp $< $@
790
791copied/rtemsbsd/bfin/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
792        test -d copied/rtemsbsd/bfin/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/bfin/include/freebsd/machine/
793        cp $< $@
794
795copied/rtemsbsd/bfin/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
796        test -d copied/rtemsbsd/bfin/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/bfin/include/freebsd/machine/
797        cp $< $@
798
799copied/freebsd/bfin/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
800        test -d copied/freebsd/bfin/pci/ || mkdir -p copied/freebsd/bfin/pci/
801        cp $< $@
802
803copied/freebsd/bfin/bfin/legacy.c: freebsd/i386/i386/legacy.c
804        test -d copied/freebsd/bfin/bfin/ || mkdir -p copied/freebsd/bfin/bfin/
805        cp $< $@
806
807copied/rtemsbsd/h8300/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
808        test -d copied/rtemsbsd/h8300/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/h8300/include/freebsd/machine/
809        cp $< $@
810
811copied/rtemsbsd/h8300/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
812        test -d copied/rtemsbsd/h8300/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/h8300/include/freebsd/machine/
813        cp $< $@
814
815copied/freebsd/h8300/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
816        test -d copied/freebsd/h8300/pci/ || mkdir -p copied/freebsd/h8300/pci/
817        cp $< $@
818
819copied/freebsd/h8300/h8300/legacy.c: freebsd/i386/i386/legacy.c
820        test -d copied/freebsd/h8300/h8300/ || mkdir -p copied/freebsd/h8300/h8300/
821        cp $< $@
822
823copied/rtemsbsd/lm32/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
824        test -d copied/rtemsbsd/lm32/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/lm32/include/freebsd/machine/
825        cp $< $@
826
827copied/rtemsbsd/lm32/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
828        test -d copied/rtemsbsd/lm32/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/lm32/include/freebsd/machine/
829        cp $< $@
830
831copied/freebsd/lm32/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
832        test -d copied/freebsd/lm32/pci/ || mkdir -p copied/freebsd/lm32/pci/
833        cp $< $@
834
835copied/freebsd/lm32/lm32/legacy.c: freebsd/i386/i386/legacy.c
836        test -d copied/freebsd/lm32/lm32/ || mkdir -p copied/freebsd/lm32/lm32/
837        cp $< $@
838
839copied/rtemsbsd/m32c/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
840        test -d copied/rtemsbsd/m32c/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32c/include/freebsd/machine/
841        cp $< $@
842
843copied/rtemsbsd/m32c/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
844        test -d copied/rtemsbsd/m32c/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32c/include/freebsd/machine/
845        cp $< $@
846
847copied/freebsd/m32c/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
848        test -d copied/freebsd/m32c/pci/ || mkdir -p copied/freebsd/m32c/pci/
849        cp $< $@
850
851copied/freebsd/m32c/m32c/legacy.c: freebsd/i386/i386/legacy.c
852        test -d copied/freebsd/m32c/m32c/ || mkdir -p copied/freebsd/m32c/m32c/
853        cp $< $@
854
855copied/rtemsbsd/m32r/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
856        test -d copied/rtemsbsd/m32r/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32r/include/freebsd/machine/
857        cp $< $@
858
859copied/rtemsbsd/m32r/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
860        test -d copied/rtemsbsd/m32r/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32r/include/freebsd/machine/
861        cp $< $@
862
863copied/freebsd/m32r/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
864        test -d copied/freebsd/m32r/pci/ || mkdir -p copied/freebsd/m32r/pci/
865        cp $< $@
866
867copied/freebsd/m32r/m32r/legacy.c: freebsd/i386/i386/legacy.c
868        test -d copied/freebsd/m32r/m32r/ || mkdir -p copied/freebsd/m32r/m32r/
869        cp $< $@
870
871copied/rtemsbsd/m68k/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
872        test -d copied/rtemsbsd/m68k/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m68k/include/freebsd/machine/
873        cp $< $@
874
875copied/rtemsbsd/m68k/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
876        test -d copied/rtemsbsd/m68k/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m68k/include/freebsd/machine/
877        cp $< $@
878
879copied/freebsd/m68k/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
880        test -d copied/freebsd/m68k/pci/ || mkdir -p copied/freebsd/m68k/pci/
881        cp $< $@
882
883copied/freebsd/m68k/m68k/legacy.c: freebsd/i386/i386/legacy.c
884        test -d copied/freebsd/m68k/m68k/ || mkdir -p copied/freebsd/m68k/m68k/
885        cp $< $@
886
887copied/rtemsbsd/mips/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
888        test -d copied/rtemsbsd/mips/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/mips/include/freebsd/machine/
889        cp $< $@
890
891copied/rtemsbsd/mips/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
892        test -d copied/rtemsbsd/mips/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/mips/include/freebsd/machine/
893        cp $< $@
894
895copied/freebsd/mips/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
896        test -d copied/freebsd/mips/pci/ || mkdir -p copied/freebsd/mips/pci/
897        cp $< $@
898
899copied/freebsd/mips/mips/legacy.c: freebsd/i386/i386/legacy.c
900        test -d copied/freebsd/mips/mips/ || mkdir -p copied/freebsd/mips/mips/
901        cp $< $@
902
903copied/rtemsbsd/nios2/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
904        test -d copied/rtemsbsd/nios2/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/nios2/include/freebsd/machine/
905        cp $< $@
906
907copied/rtemsbsd/nios2/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
908        test -d copied/rtemsbsd/nios2/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/nios2/include/freebsd/machine/
909        cp $< $@
910
911copied/freebsd/nios2/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
912        test -d copied/freebsd/nios2/pci/ || mkdir -p copied/freebsd/nios2/pci/
913        cp $< $@
914
915copied/freebsd/nios2/nios2/legacy.c: freebsd/i386/i386/legacy.c
916        test -d copied/freebsd/nios2/nios2/ || mkdir -p copied/freebsd/nios2/nios2/
917        cp $< $@
918
919copied/rtemsbsd/powerpc/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
920        test -d copied/rtemsbsd/powerpc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/powerpc/include/freebsd/machine/
921        cp $< $@
922
923copied/rtemsbsd/powerpc/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
924        test -d copied/rtemsbsd/powerpc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/powerpc/include/freebsd/machine/
925        cp $< $@
926
927copied/freebsd/powerpc/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
928        test -d copied/freebsd/powerpc/pci/ || mkdir -p copied/freebsd/powerpc/pci/
929        cp $< $@
930
931copied/freebsd/powerpc/powerpc/legacy.c: freebsd/i386/i386/legacy.c
932        test -d copied/freebsd/powerpc/powerpc/ || mkdir -p copied/freebsd/powerpc/powerpc/
933        cp $< $@
934
935copied/rtemsbsd/sh/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
936        test -d copied/rtemsbsd/sh/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sh/include/freebsd/machine/
937        cp $< $@
938
939copied/rtemsbsd/sh/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
940        test -d copied/rtemsbsd/sh/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sh/include/freebsd/machine/
941        cp $< $@
942
943copied/freebsd/sh/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
944        test -d copied/freebsd/sh/pci/ || mkdir -p copied/freebsd/sh/pci/
945        cp $< $@
946
947copied/freebsd/sh/sh/legacy.c: freebsd/i386/i386/legacy.c
948        test -d copied/freebsd/sh/sh/ || mkdir -p copied/freebsd/sh/sh/
949        cp $< $@
950
951copied/rtemsbsd/sparc/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
952        test -d copied/rtemsbsd/sparc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc/include/freebsd/machine/
953        cp $< $@
954
955copied/rtemsbsd/sparc/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
956        test -d copied/rtemsbsd/sparc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc/include/freebsd/machine/
957        cp $< $@
958
959copied/freebsd/sparc/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
960        test -d copied/freebsd/sparc/pci/ || mkdir -p copied/freebsd/sparc/pci/
961        cp $< $@
962
963copied/freebsd/sparc/sparc/legacy.c: freebsd/i386/i386/legacy.c
964        test -d copied/freebsd/sparc/sparc/ || mkdir -p copied/freebsd/sparc/sparc/
965        cp $< $@
966
967copied/rtemsbsd/sparc64/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
968        test -d copied/rtemsbsd/sparc64/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc64/include/freebsd/machine/
969        cp $< $@
970
971copied/rtemsbsd/sparc64/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
972        test -d copied/rtemsbsd/sparc64/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc64/include/freebsd/machine/
973        cp $< $@
974
975copied/freebsd/sparc64/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
976        test -d copied/freebsd/sparc64/pci/ || mkdir -p copied/freebsd/sparc64/pci/
977        cp $< $@
978
979copied/freebsd/sparc64/sparc64/legacy.c: freebsd/i386/i386/legacy.c
980        test -d copied/freebsd/sparc64/sparc64/ || mkdir -p copied/freebsd/sparc64/sparc64/
981        cp $< $@
982
983copied/rtemsbsd/v850/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
984        test -d copied/rtemsbsd/v850/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/v850/include/freebsd/machine/
985        cp $< $@
986
987copied/rtemsbsd/v850/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
988        test -d copied/rtemsbsd/v850/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/v850/include/freebsd/machine/
989        cp $< $@
990
991copied/freebsd/v850/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
992        test -d copied/freebsd/v850/pci/ || mkdir -p copied/freebsd/v850/pci/
993        cp $< $@
994
995copied/freebsd/v850/v850/legacy.c: freebsd/i386/i386/legacy.c
996        test -d copied/freebsd/v850/v850/ || mkdir -p copied/freebsd/v850/v850/
997        cp $< $@
998
999CPU_SED  = sed
1000CPU_SED += -e '/arm/d'
1001CPU_SED += -e '/i386/d'
1002CPU_SED += -e '/powerpc/d'
1003CPU_SED += -e '/mips/d'
1004CPU_SED += -e '/sparc64/d'
1005
1006install: $(LIB) install_bsd lib_user install_user
1007
1008install_bsd: $(LIB)
1009        install -d $(INSTALL_BASE)/include
1010        install -c -m 644 $(LIB) $(INSTALL_BASE)
1011        cd rtemsbsd; for i in `find freebsd -name '*.h'` ; do \
1012          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1013        cd contrib/altq; for i in `find freebsd -name '*.h'` ; do \
1014          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1015        cd contrib/pf; for i in `find freebsd -name '*.h'` ; do \
1016          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1017        for i in `find freebsd -name '*.h' | $(CPU_SED)` ; do \
1018          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1019        -cd freebsd/$(RTEMS_CPU)/include && for i in `find . -name '*.h'` ; do \
1020          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1021        -cd rtemsbsd/$(RTEMS_CPU)/include && \
1022          for i in `find . -name '*.h' | $(CPU_SED)` ; do \
1023            install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1024        -cd copied/rtemsbsd/$(RTEMS_CPU)/include && for i in `find . -name '*.h'` ; do \
1025          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1026
1027install_user:
1028        $(MAKE) -C freebsd-userspace install
1029
1030clean:
1031        rm -f -r $(PROJECT_INCLUDE)/rtems/freebsd
1032        rm -f $(LIB) $(C_O_FILES) $(C_D_FILES) $(GENERATED_FILES)
1033        rm -f libbsd.html
1034        rm -rf copied
1035        $(MAKE) -C freebsd-userspace clean
1036
1037-include $(C_D_FILES)
1038
1039doc: libbsd.html
1040
1041libbsd.html: libbsd.txt
1042        asciidoc -o libbsd.html libbsd.txt
Note: See TracBrowser for help on using the repository browser.