source: rtems-libbsd/Makefile @ 9257b31

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 9257b31 was 9257b31, checked in by Jennifer Averett <jennifer.averett@…>, on Oct 24, 2012 at 8:03:50 PM

Added -g option to Makefile.

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