source: rtems-libbsd/Makefile @ 2c3d8b9

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 2c3d8b9 was 2c3d8b9, checked in by Jennifer Averett <jennifer.averett@…>, on 07/20/12 at 19:17:05

Added rtems specific page tracking methods for uma page allocation.

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