source: rtems-libbsd/Makefile @ f333955

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since f333955 was f333955, checked in by Joel Sherrill <joel.sherrill@…>, on 08/31/12 at 23:50:17

Build System: Add option to disable IPV6 in orderly fashion

If you define DISABLE_IPV6=yes to the config.inc, then the
rtems-bsd-config.h file will be modified accordingly and
the IPV6 kernel sources will not be built. This is easier
to manage and more correct than having a patch to do the same.

  • Property mode set to 100644
File size: 42.7 KB
Line 
1include config.inc
2
3include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
4include $(RTEMS_CUSTOM)
5include $(PROJECT_ROOT)/make/leaf.cfg
6
7CFLAGS += -ffreestanding
8CFLAGS += -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 = rtemsbsd/freebsd/machine/rtems-bsd-config.h
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
198ifneq ($(DISABLE_IPV6),yes)
199C_FILES += freebsd/netinet6/dest6.c
200C_FILES += freebsd/netinet6/frag6.c
201C_FILES += freebsd/netinet6/icmp6.c
202C_FILES += freebsd/netinet6/in6.c
203C_FILES += freebsd/netinet6/in6_cksum.c
204C_FILES += freebsd/netinet6/in6_gif.c
205C_FILES += freebsd/netinet6/in6_ifattach.c
206C_FILES += freebsd/netinet6/in6_mcast.c
207C_FILES += freebsd/netinet6/in6_pcb.c
208C_FILES += freebsd/netinet6/in6_proto.c
209C_FILES += freebsd/netinet6/in6_rmx.c
210C_FILES += freebsd/netinet6/in6_src.c
211C_FILES += freebsd/netinet6/ip6_forward.c
212C_FILES += freebsd/netinet6/ip6_id.c
213C_FILES += freebsd/netinet6/ip6_input.c
214C_FILES += freebsd/netinet6/ip6_ipsec.c
215C_FILES += freebsd/netinet6/ip6_mroute.c
216C_FILES += freebsd/netinet6/ip6_output.c
217C_FILES += freebsd/netinet6/mld6.c
218C_FILES += freebsd/netinet6/nd6.c
219C_FILES += freebsd/netinet6/nd6_nbr.c
220C_FILES += freebsd/netinet6/nd6_rtr.c
221C_FILES += freebsd/netinet6/raw_ip6.c
222C_FILES += freebsd/netinet6/route6.c
223C_FILES += freebsd/netinet6/scope6.c
224C_FILES += freebsd/netinet6/sctp6_usrreq.c
225C_FILES += freebsd/netinet6/udp6_usrreq.c
226else
227SED_PATTERN += -e 's/^\#define INET6 1/\/\/ \#define INET6 1/'
228endif # DISABLE_IPV6
229C_FILES += freebsd/netipsec/ipsec.c
230C_FILES += freebsd/netipsec/ipsec_input.c
231C_FILES += freebsd/netipsec/ipsec_mbuf.c
232C_FILES += freebsd/netipsec/ipsec_output.c
233C_FILES += freebsd/netipsec/key.c
234C_FILES += freebsd/netipsec/key_debug.c
235C_FILES += freebsd/netipsec/keysock.c
236C_FILES += freebsd/netipsec/xform_ah.c
237C_FILES += freebsd/netipsec/xform_esp.c
238C_FILES += freebsd/netipsec/xform_ipcomp.c
239C_FILES += freebsd/netipsec/xform_ipip.c
240C_FILES += freebsd/netipsec/xform_tcp.c
241C_FILES += freebsd/net80211/ieee80211_acl.c
242C_FILES += freebsd/net80211/ieee80211_action.c
243C_FILES += freebsd/net80211/ieee80211_adhoc.c
244C_FILES += freebsd/net80211/ieee80211_ageq.c
245C_FILES += freebsd/net80211/ieee80211_amrr.c
246C_FILES += freebsd/net80211/ieee80211.c
247C_FILES += freebsd/net80211/ieee80211_crypto.c
248C_FILES += freebsd/net80211/ieee80211_crypto_ccmp.c
249C_FILES += freebsd/net80211/ieee80211_crypto_none.c
250C_FILES += freebsd/net80211/ieee80211_crypto_tkip.c
251C_FILES += freebsd/net80211/ieee80211_crypto_wep.c
252C_FILES += freebsd/net80211/ieee80211_ddb.c
253C_FILES += freebsd/net80211/ieee80211_dfs.c
254C_FILES += freebsd/net80211/ieee80211_freebsd.c
255C_FILES += freebsd/net80211/ieee80211_hostap.c
256C_FILES += freebsd/net80211/ieee80211_ht.c
257C_FILES += freebsd/net80211/ieee80211_hwmp.c
258C_FILES += freebsd/net80211/ieee80211_input.c
259C_FILES += freebsd/net80211/ieee80211_ioctl.c
260C_FILES += freebsd/net80211/ieee80211_mesh.c
261C_FILES += freebsd/net80211/ieee80211_monitor.c
262C_FILES += freebsd/net80211/ieee80211_node.c
263C_FILES += freebsd/net80211/ieee80211_output.c
264C_FILES += freebsd/net80211/ieee80211_phy.c
265C_FILES += freebsd/net80211/ieee80211_power.c
266C_FILES += freebsd/net80211/ieee80211_proto.c
267C_FILES += freebsd/net80211/ieee80211_radiotap.c
268C_FILES += freebsd/net80211/ieee80211_ratectl.c
269C_FILES += freebsd/net80211/ieee80211_ratectl_none.c
270C_FILES += freebsd/net80211/ieee80211_regdomain.c
271C_FILES += freebsd/net80211/ieee80211_rssadapt.c
272C_FILES += freebsd/net80211/ieee80211_scan.c
273C_FILES += freebsd/net80211/ieee80211_scan_sta.c
274C_FILES += freebsd/net80211/ieee80211_sta.c
275C_FILES += freebsd/net80211/ieee80211_superg.c
276C_FILES += freebsd/net80211/ieee80211_tdma.c
277C_FILES += freebsd/net80211/ieee80211_wds.c
278C_FILES += freebsd/net80211/ieee80211_xauth.c
279C_FILES += freebsd/opencrypto/crypto.c
280C_FILES += freebsd/opencrypto/deflate.c
281C_FILES += freebsd/opencrypto/cryptosoft.c
282C_FILES += freebsd/opencrypto/criov.c
283C_FILES += freebsd/opencrypto/rmd160.c
284C_FILES += freebsd/opencrypto/xform.c
285C_FILES += freebsd/opencrypto/skipjack.c
286C_FILES += freebsd/opencrypto/cast.c
287C_FILES += freebsd/opencrypto/cryptodev.c
288C_FILES += freebsd/crypto/sha1.c
289C_FILES += freebsd/crypto/sha2/sha2.c
290C_FILES += freebsd/crypto/rijndael/rijndael-alg-fst.c
291C_FILES += freebsd/crypto/rijndael/rijndael-api.c
292C_FILES += freebsd/crypto/rijndael/rijndael-api-fst.c
293C_FILES += freebsd/crypto/des/des_setkey.c
294C_FILES += freebsd/crypto/des/des_enc.c
295C_FILES += freebsd/crypto/des/des_ecb.c
296C_FILES += freebsd/crypto/blowfish/bf_enc.c
297C_FILES += freebsd/crypto/blowfish/bf_skey.c
298C_FILES += freebsd/crypto/blowfish/bf_ecb.c
299C_FILES += freebsd/crypto/rc4/rc4.c
300C_FILES += freebsd/crypto/camellia/camellia-api.c
301C_FILES += freebsd/crypto/camellia/camellia.c
302C_FILES += contrib/altq/freebsd/altq/altq_rmclass.c
303C_FILES += contrib/altq/freebsd/altq/altq_rio.c
304C_FILES += contrib/altq/freebsd/altq/altq_subr.c
305C_FILES += contrib/altq/freebsd/altq/altq_cdnr.c
306C_FILES += contrib/altq/freebsd/altq/altq_priq.c
307C_FILES += contrib/altq/freebsd/altq/altq_cbq.c
308C_FILES += contrib/altq/freebsd/altq/altq_hfsc.c
309C_FILES += contrib/altq/freebsd/altq/altq_red.c
310C_FILES += contrib/pf/freebsd/netinet/in4_cksum.c
311C_FILES += contrib/pf/freebsd/net/pf.c
312C_FILES += contrib/pf/freebsd/net/if_pflog.c
313C_FILES += contrib/pf/freebsd/net/pf_subr.c
314C_FILES += contrib/pf/freebsd/net/pf_ioctl.c
315C_FILES += contrib/pf/freebsd/net/pf_table.c
316C_FILES += contrib/pf/freebsd/net/pf_if.c
317C_FILES += contrib/pf/freebsd/net/pf_osfp.c
318C_FILES += contrib/pf/freebsd/net/pf_norm.c
319C_FILES += contrib/pf/freebsd/net/pf_ruleset.c
320C_FILES += contrib/pf/freebsd/net/if_pfsync.c
321C_FILES += freebsd/dev/mii/mii.c
322C_FILES += freebsd/dev/mii/mii_physubr.c
323C_FILES += freebsd/dev/mii/icsphy.c
324C_FILES += freebsd/dev/mii/brgphy.c
325C_FILES += freebsd/local/usb_if.c
326C_FILES += freebsd/local/bus_if.c
327C_FILES += freebsd/local/device_if.c
328C_FILES += freebsd/local/cryptodev_if.c
329C_FILES += freebsd/local/miibus_if.c
330C_FILES += freebsd/local/pci_if.c
331C_FILES += freebsd/local/pcib_if.c
332C_FILES += freebsd/kern/init_main.c
333C_FILES += freebsd/kern/kern_linker.c
334C_FILES += freebsd/kern/kern_mib.c
335C_FILES += freebsd/kern/kern_timeout.c
336C_FILES += freebsd/kern/kern_mbuf.c
337C_FILES += freebsd/kern/kern_module.c
338C_FILES += freebsd/kern/kern_sysctl.c
339C_FILES += freebsd/kern/subr_bus.c
340C_FILES += freebsd/kern/subr_kobj.c
341C_FILES += freebsd/kern/uipc_mbuf.c
342C_FILES += freebsd/kern/uipc_mbuf2.c
343C_FILES += freebsd/kern/uipc_socket.c
344C_FILES += freebsd/kern/uipc_sockbuf.c
345C_FILES += freebsd/kern/uipc_domain.c
346C_FILES += freebsd/vm/uma_core.c
347C_FILES += freebsd/dev/usb/usb_busdma.c
348C_FILES += freebsd/dev/usb/usb_core.c
349C_FILES += freebsd/dev/usb/usb_debug.c
350C_FILES += freebsd/dev/usb/usb_dev.c
351C_FILES += freebsd/dev/usb/usb_device.c
352C_FILES += freebsd/dev/usb/usb_dynamic.c
353C_FILES += freebsd/dev/usb/usb_error.c
354C_FILES += freebsd/dev/usb/usb_generic.c
355C_FILES += freebsd/dev/usb/usb_handle_request.c
356C_FILES += freebsd/dev/usb/usb_hid.c
357C_FILES += freebsd/dev/usb/usb_hub.c
358C_FILES += freebsd/dev/usb/usb_lookup.c
359C_FILES += freebsd/dev/usb/usb_mbuf.c
360C_FILES += freebsd/dev/usb/usb_msctest.c
361C_FILES += freebsd/dev/usb/usb_parse.c
362C_FILES += freebsd/dev/usb/usb_process.c
363C_FILES += freebsd/dev/usb/usb_request.c
364C_FILES += freebsd/dev/usb/usb_transfer.c
365C_FILES += freebsd/dev/usb/usb_util.c
366C_FILES += freebsd/dev/usb/quirk/usb_quirk.c
367C_FILES += freebsd/dev/usb/controller/ohci.c
368C_FILES += freebsd/dev/usb/controller/ehci.c
369C_FILES += freebsd/dev/usb/controller/usb_controller.c
370C_FILES += freebsd/cam/cam.c
371C_FILES += freebsd/cam/scsi/scsi_all.c
372C_FILES += freebsd/dev/usb/storage/umass.c
373C_FILES += freebsd/kern/subr_hints.c
374C_FILES += freebsd/dev/random/harvest.c
375C_FILES += freebsd/libkern/random.c
376C_FILES += freebsd/libkern/arc4random.c
377C_FILES += freebsd/kern/subr_pcpu.c
378C_FILES += freebsd/kern/subr_sbuf.c
379C_FILES += freebsd/kern/subr_rman.c
380C_FILES += freebsd/kern/subr_module.c
381C_FILES += freebsd/libkern/inet_ntoa.c
382C_FILES += freebsd/kern/kern_prot.c
383C_FILES += freebsd/kern/kern_proc.c
384C_FILES += freebsd/kern/kern_time.c
385C_FILES += freebsd/kern/kern_event.c
386C_FILES += freebsd/netinet/tcp_hostcache.c
387C_FILES += freebsd/dev/pci/pci.c
388C_FILES += freebsd/dev/pci/pci_user.c
389C_FILES += freebsd/kern/uipc_accf.c
390C_FILES += freebsd/kern/kern_ntptime.c
391C_FILES += freebsd/kern/kern_environment.c
392C_FILES += freebsd/kern/kern_intr.c
393C_FILES += freebsd/kern/kern_resource.c
394C_FILES += freebsd/kern/subr_bufring.c
395C_FILES += freebsd/dev/led/led.c
396C_FILES += freebsd/kern/subr_unit.c
397C_FILES += freebsd/dev/pci/pci_pci.c
398ifeq ($(RTEMS_CPU), i386)
399C_FILES += freebsd/i386/pci/pci_bus.c
400C_FILES += freebsd/i386/i386/legacy.c
401NEED_DUMMY_PIC_IRQ=no
402endif
403C_FILES += freebsd/dev/re/if_re.c
404C_FILES += freebsd/dev/fxp/if_fxp.c
405C_FILES += freebsd/dev/e1000/e1000_80003es2lan.c
406C_FILES += freebsd/dev/e1000/e1000_82542.c
407C_FILES += freebsd/dev/e1000/e1000_82575.c
408C_FILES += freebsd/dev/e1000/e1000_mac.c
409C_FILES += freebsd/dev/e1000/e1000_nvm.c
410C_FILES += freebsd/dev/e1000/e1000_vf.c
411C_FILES += freebsd/dev/e1000/if_lem.c
412C_FILES += freebsd/dev/e1000/e1000_82540.c
413C_FILES += freebsd/dev/e1000/e1000_82543.c
414C_FILES += freebsd/dev/e1000/e1000_api.c
415C_FILES += freebsd/dev/e1000/e1000_manage.c
416C_FILES += freebsd/dev/e1000/e1000_osdep.c
417C_FILES += freebsd/dev/e1000/if_em.c
418C_FILES += freebsd/dev/e1000/e1000_82541.c
419C_FILES += freebsd/dev/e1000/e1000_82571.c
420C_FILES += freebsd/dev/e1000/e1000_ich8lan.c
421C_FILES += freebsd/dev/e1000/e1000_mbx.c
422C_FILES += freebsd/dev/e1000/e1000_phy.c
423C_FILES += freebsd/dev/e1000/if_igb.c
424C_FILES += freebsd/dev/dc/dcphy.c
425C_FILES += freebsd/dev/dc/if_dc.c
426C_FILES += freebsd/dev/dc/pnphy.c
427C_FILES += freebsd/dev/smc/if_smc.c
428C_FILES += freebsd/dev/bce/if_bce.c
429C_FILES += freebsd/dev/bfe/if_bfe.c
430C_FILES += freebsd/dev/bge/if_bge.c
431ifeq ($(RTEMS_CPU), arm)
432C_FILES += freebsd/arm/arm/in_cksum.c
433NEED_DUMMY_PIC_IRQ=no
434endif
435ifeq ($(RTEMS_CPU), i386)
436C_FILES += freebsd/i386/i386/in_cksum.c
437NEED_DUMMY_PIC_IRQ=no
438endif
439ifeq ($(RTEMS_CPU), mips)
440C_FILES += freebsd/mips/mips/in_cksum.c
441NEED_DUMMY_PIC_IRQ=no
442endif
443ifeq ($(RTEMS_CPU), powerpc)
444C_FILES += freebsd/powerpc/powerpc/in_cksum.c
445NEED_DUMMY_PIC_IRQ=no
446endif
447ifeq ($(RTEMS_CPU), sparc)
448C_FILES += freebsd/mips/mips/in_cksum.c
449NEED_DUMMY_PIC_IRQ=no
450endif
451ifeq ($(RTEMS_CPU), sparc64)
452C_FILES += freebsd/sparc64/sparc64/in_cksum.c
453endif
454ifeq ($(RTEMS_CPU), avr)
455GENERATED_FILES += copied/rtemsbsd/avr/avr/in_cksum.c
456GENERATED_FILES += copied/rtemsbsd/avr/include/freebsd/machine/in_cksum.h
457GENERATED_FILES += copied/rtemsbsd/avr/avr/in_cksum.c
458C_FILES += copied/rtemsbsd/avr/avr/in_cksum.c
459endif
460ifeq ($(RTEMS_CPU), bfin)
461GENERATED_FILES += copied/rtemsbsd/bfin/bfin/in_cksum.c
462GENERATED_FILES += copied/rtemsbsd/bfin/include/freebsd/machine/in_cksum.h
463GENERATED_FILES += copied/rtemsbsd/bfin/bfin/in_cksum.c
464C_FILES += copied/rtemsbsd/bfin/bfin/in_cksum.c
465endif
466ifeq ($(RTEMS_CPU), h8300)
467GENERATED_FILES += copied/rtemsbsd/h8300/h8300/in_cksum.c
468GENERATED_FILES += copied/rtemsbsd/h8300/include/freebsd/machine/in_cksum.h
469GENERATED_FILES += copied/rtemsbsd/h8300/h8300/in_cksum.c
470C_FILES += copied/rtemsbsd/h8300/h8300/in_cksum.c
471endif
472ifeq ($(RTEMS_CPU), lm32)
473GENERATED_FILES += copied/rtemsbsd/lm32/lm32/in_cksum.c
474GENERATED_FILES += copied/rtemsbsd/lm32/include/freebsd/machine/in_cksum.h
475GENERATED_FILES += copied/rtemsbsd/lm32/lm32/in_cksum.c
476C_FILES += copied/rtemsbsd/lm32/lm32/in_cksum.c
477endif
478ifeq ($(RTEMS_CPU), m32c)
479GENERATED_FILES += copied/rtemsbsd/m32c/m32c/in_cksum.c
480GENERATED_FILES += copied/rtemsbsd/m32c/include/freebsd/machine/in_cksum.h
481GENERATED_FILES += copied/rtemsbsd/m32c/m32c/in_cksum.c
482C_FILES += copied/rtemsbsd/m32c/m32c/in_cksum.c
483endif
484ifeq ($(RTEMS_CPU), m32r)
485GENERATED_FILES += copied/rtemsbsd/m32r/m32r/in_cksum.c
486GENERATED_FILES += copied/rtemsbsd/m32r/include/freebsd/machine/in_cksum.h
487GENERATED_FILES += copied/rtemsbsd/m32r/m32r/in_cksum.c
488C_FILES += copied/rtemsbsd/m32r/m32r/in_cksum.c
489endif
490ifeq ($(RTEMS_CPU), m68k)
491GENERATED_FILES += copied/rtemsbsd/m68k/m68k/in_cksum.c
492GENERATED_FILES += copied/rtemsbsd/m68k/include/freebsd/machine/in_cksum.h
493GENERATED_FILES += copied/rtemsbsd/m68k/m68k/in_cksum.c
494C_FILES += copied/rtemsbsd/m68k/m68k/in_cksum.c
495endif
496ifeq ($(RTEMS_CPU), nios2)
497GENERATED_FILES += copied/rtemsbsd/nios2/nios2/in_cksum.c
498GENERATED_FILES += copied/rtemsbsd/nios2/include/freebsd/machine/in_cksum.h
499GENERATED_FILES += copied/rtemsbsd/nios2/nios2/in_cksum.c
500C_FILES += copied/rtemsbsd/nios2/nios2/in_cksum.c
501endif
502ifeq ($(RTEMS_CPU), sh)
503GENERATED_FILES += copied/rtemsbsd/sh/sh/in_cksum.c
504GENERATED_FILES += copied/rtemsbsd/sh/include/freebsd/machine/in_cksum.h
505GENERATED_FILES += copied/rtemsbsd/sh/sh/in_cksum.c
506C_FILES += copied/rtemsbsd/sh/sh/in_cksum.c
507endif
508ifeq ($(RTEMS_CPU), sparc)
509GENERATED_FILES += copied/rtemsbsd/sparc/sparc/in_cksum.c
510GENERATED_FILES += copied/rtemsbsd/sparc/include/freebsd/machine/in_cksum.h
511GENERATED_FILES += copied/rtemsbsd/sparc/sparc/in_cksum.c
512C_FILES += copied/rtemsbsd/sparc/sparc/in_cksum.c
513endif
514ifeq ($(RTEMS_CPU), v850)
515GENERATED_FILES += copied/rtemsbsd/v850/v850/in_cksum.c
516GENERATED_FILES += copied/rtemsbsd/v850/include/freebsd/machine/in_cksum.h
517GENERATED_FILES += copied/rtemsbsd/v850/v850/in_cksum.c
518C_FILES += copied/rtemsbsd/v850/v850/in_cksum.c
519endif
520ifeq ($(RTEMS_CPU), arm)
521GENERATED_FILES += copied/rtemsbsd/arm/include/freebsd/machine/legacyvar.h
522GENERATED_FILES += copied/rtemsbsd/arm/include/freebsd/machine/pci_cfgreg.h
523GENERATED_FILES += copied/freebsd/arm/pci/pci_bus.c
524GENERATED_FILES += copied/freebsd/arm/arm/legacy.c
525C_FILES += copied/freebsd/arm/pci/pci_bus.c
526C_FILES += copied/freebsd/arm/arm/legacy.c
527endif
528ifeq ($(RTEMS_CPU), avr)
529GENERATED_FILES += copied/rtemsbsd/avr/include/freebsd/machine/legacyvar.h
530GENERATED_FILES += copied/rtemsbsd/avr/include/freebsd/machine/pci_cfgreg.h
531GENERATED_FILES += copied/freebsd/avr/pci/pci_bus.c
532GENERATED_FILES += copied/freebsd/avr/avr/legacy.c
533C_FILES += copied/freebsd/avr/pci/pci_bus.c
534C_FILES += copied/freebsd/avr/avr/legacy.c
535endif
536ifeq ($(RTEMS_CPU), bfin)
537GENERATED_FILES += copied/rtemsbsd/bfin/include/freebsd/machine/legacyvar.h
538GENERATED_FILES += copied/rtemsbsd/bfin/include/freebsd/machine/pci_cfgreg.h
539GENERATED_FILES += copied/freebsd/bfin/pci/pci_bus.c
540GENERATED_FILES += copied/freebsd/bfin/bfin/legacy.c
541C_FILES += copied/freebsd/bfin/pci/pci_bus.c
542C_FILES += copied/freebsd/bfin/bfin/legacy.c
543endif
544ifeq ($(RTEMS_CPU), h8300)
545GENERATED_FILES += copied/rtemsbsd/h8300/include/freebsd/machine/legacyvar.h
546GENERATED_FILES += copied/rtemsbsd/h8300/include/freebsd/machine/pci_cfgreg.h
547GENERATED_FILES += copied/freebsd/h8300/pci/pci_bus.c
548GENERATED_FILES += copied/freebsd/h8300/h8300/legacy.c
549C_FILES += copied/freebsd/h8300/pci/pci_bus.c
550C_FILES += copied/freebsd/h8300/h8300/legacy.c
551endif
552ifeq ($(RTEMS_CPU), lm32)
553GENERATED_FILES += copied/rtemsbsd/lm32/include/freebsd/machine/legacyvar.h
554GENERATED_FILES += copied/rtemsbsd/lm32/include/freebsd/machine/pci_cfgreg.h
555GENERATED_FILES += copied/freebsd/lm32/pci/pci_bus.c
556GENERATED_FILES += copied/freebsd/lm32/lm32/legacy.c
557C_FILES += copied/freebsd/lm32/pci/pci_bus.c
558C_FILES += copied/freebsd/lm32/lm32/legacy.c
559endif
560ifeq ($(RTEMS_CPU), m32c)
561GENERATED_FILES += copied/rtemsbsd/m32c/include/freebsd/machine/legacyvar.h
562GENERATED_FILES += copied/rtemsbsd/m32c/include/freebsd/machine/pci_cfgreg.h
563GENERATED_FILES += copied/freebsd/m32c/pci/pci_bus.c
564GENERATED_FILES += copied/freebsd/m32c/m32c/legacy.c
565C_FILES += copied/freebsd/m32c/pci/pci_bus.c
566C_FILES += copied/freebsd/m32c/m32c/legacy.c
567endif
568ifeq ($(RTEMS_CPU), m32r)
569GENERATED_FILES += copied/rtemsbsd/m32r/include/freebsd/machine/legacyvar.h
570GENERATED_FILES += copied/rtemsbsd/m32r/include/freebsd/machine/pci_cfgreg.h
571GENERATED_FILES += copied/freebsd/m32r/pci/pci_bus.c
572GENERATED_FILES += copied/freebsd/m32r/m32r/legacy.c
573C_FILES += copied/freebsd/m32r/pci/pci_bus.c
574C_FILES += copied/freebsd/m32r/m32r/legacy.c
575endif
576ifeq ($(RTEMS_CPU), m68k)
577GENERATED_FILES += copied/rtemsbsd/m68k/include/freebsd/machine/legacyvar.h
578GENERATED_FILES += copied/rtemsbsd/m68k/include/freebsd/machine/pci_cfgreg.h
579GENERATED_FILES += copied/freebsd/m68k/pci/pci_bus.c
580GENERATED_FILES += copied/freebsd/m68k/m68k/legacy.c
581C_FILES += copied/freebsd/m68k/pci/pci_bus.c
582C_FILES += copied/freebsd/m68k/m68k/legacy.c
583endif
584ifeq ($(RTEMS_CPU), mips)
585GENERATED_FILES += copied/rtemsbsd/mips/include/freebsd/machine/legacyvar.h
586GENERATED_FILES += copied/rtemsbsd/mips/include/freebsd/machine/pci_cfgreg.h
587GENERATED_FILES += copied/freebsd/mips/pci/pci_bus.c
588GENERATED_FILES += copied/freebsd/mips/mips/legacy.c
589C_FILES += copied/freebsd/mips/pci/pci_bus.c
590C_FILES += copied/freebsd/mips/mips/legacy.c
591endif
592ifeq ($(RTEMS_CPU), nios2)
593GENERATED_FILES += copied/rtemsbsd/nios2/include/freebsd/machine/legacyvar.h
594GENERATED_FILES += copied/rtemsbsd/nios2/include/freebsd/machine/pci_cfgreg.h
595GENERATED_FILES += copied/freebsd/nios2/pci/pci_bus.c
596GENERATED_FILES += copied/freebsd/nios2/nios2/legacy.c
597C_FILES += copied/freebsd/nios2/pci/pci_bus.c
598C_FILES += copied/freebsd/nios2/nios2/legacy.c
599endif
600ifeq ($(RTEMS_CPU), powerpc)
601GENERATED_FILES += copied/rtemsbsd/powerpc/include/freebsd/machine/legacyvar.h
602GENERATED_FILES += copied/rtemsbsd/powerpc/include/freebsd/machine/pci_cfgreg.h
603GENERATED_FILES += copied/freebsd/powerpc/pci/pci_bus.c
604GENERATED_FILES += copied/freebsd/powerpc/powerpc/legacy.c
605C_FILES += copied/freebsd/powerpc/pci/pci_bus.c
606C_FILES += copied/freebsd/powerpc/powerpc/legacy.c
607endif
608ifeq ($(RTEMS_CPU), sh)
609GENERATED_FILES += copied/rtemsbsd/sh/include/freebsd/machine/legacyvar.h
610GENERATED_FILES += copied/rtemsbsd/sh/include/freebsd/machine/pci_cfgreg.h
611GENERATED_FILES += copied/freebsd/sh/pci/pci_bus.c
612GENERATED_FILES += copied/freebsd/sh/sh/legacy.c
613C_FILES += copied/freebsd/sh/pci/pci_bus.c
614C_FILES += copied/freebsd/sh/sh/legacy.c
615endif
616ifeq ($(RTEMS_CPU), sparc)
617GENERATED_FILES += copied/rtemsbsd/sparc/include/freebsd/machine/legacyvar.h
618GENERATED_FILES += copied/rtemsbsd/sparc/include/freebsd/machine/pci_cfgreg.h
619GENERATED_FILES += copied/freebsd/sparc/pci/pci_bus.c
620GENERATED_FILES += copied/freebsd/sparc/sparc/legacy.c
621C_FILES += copied/freebsd/sparc/pci/pci_bus.c
622C_FILES += copied/freebsd/sparc/sparc/legacy.c
623endif
624ifeq ($(RTEMS_CPU), sparc64)
625GENERATED_FILES += copied/rtemsbsd/sparc64/include/freebsd/machine/legacyvar.h
626GENERATED_FILES += copied/rtemsbsd/sparc64/include/freebsd/machine/pci_cfgreg.h
627GENERATED_FILES += copied/freebsd/sparc64/pci/pci_bus.c
628GENERATED_FILES += copied/freebsd/sparc64/sparc64/legacy.c
629C_FILES += copied/freebsd/sparc64/pci/pci_bus.c
630C_FILES += copied/freebsd/sparc64/sparc64/legacy.c
631endif
632ifeq ($(RTEMS_CPU), v850)
633GENERATED_FILES += copied/rtemsbsd/v850/include/freebsd/machine/legacyvar.h
634GENERATED_FILES += copied/rtemsbsd/v850/include/freebsd/machine/pci_cfgreg.h
635GENERATED_FILES += copied/freebsd/v850/pci/pci_bus.c
636GENERATED_FILES += copied/freebsd/v850/v850/legacy.c
637C_FILES += copied/freebsd/v850/pci/pci_bus.c
638C_FILES += copied/freebsd/v850/v850/legacy.c
639endif
640
641ifeq ($(NEED_DUMMY_PIC_IRQ),yes)
642CFLAGS += -I rtems-dummy-pic-irq/include
643endif
644C_O_FILES = $(C_FILES:%.c=%.o)
645C_D_FILES = $(C_FILES:%.c=%.d)
646
647LIB = libbsd.a
648
649all: $(GENERATED_FILES) $(LIB) lib_user
650
651$(LIB): $(C_O_FILES)
652        $(AR) rcu $@ $^
653
654lib_user: $(LIB) install_bsd
655        $(MAKE) -C freebsd-userspace
656
657# The following targets use the MIPS Generic in_cksum routine
658rtemsbsd/freebsd/machine/rtems-bsd-config.h: rtemsbsd/freebsd/machine/rtems-bsd-config.h.in
659        sed $(SED_PATTERN) <$< >$@
660
661copied/rtemsbsd/avr/avr/in_cksum.c: freebsd/mips/mips/in_cksum.c
662        test -d copied/rtemsbsd/avr/avr/ || mkdir -p copied/rtemsbsd/avr/avr/
663        cp $< $@
664
665copied/rtemsbsd/avr/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
666        test -d copied/rtemsbsd/avr/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/avr/include/freebsd/machine/
667        cp $< $@
668
669copied/rtemsbsd/bfin/bfin/in_cksum.c: freebsd/mips/mips/in_cksum.c
670        test -d copied/rtemsbsd/bfin/bfin/ || mkdir -p copied/rtemsbsd/bfin/bfin/
671        cp $< $@
672
673copied/rtemsbsd/bfin/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
674        test -d copied/rtemsbsd/bfin/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/bfin/include/freebsd/machine/
675        cp $< $@
676
677copied/rtemsbsd/h8300/h8300/in_cksum.c: freebsd/mips/mips/in_cksum.c
678        test -d copied/rtemsbsd/h8300/h8300/ || mkdir -p copied/rtemsbsd/h8300/h8300/
679        cp $< $@
680
681copied/rtemsbsd/h8300/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
682        test -d copied/rtemsbsd/h8300/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/h8300/include/freebsd/machine/
683        cp $< $@
684
685copied/rtemsbsd/lm32/lm32/in_cksum.c: freebsd/mips/mips/in_cksum.c
686        test -d copied/rtemsbsd/lm32/lm32/ || mkdir -p copied/rtemsbsd/lm32/lm32/
687        cp $< $@
688
689copied/rtemsbsd/lm32/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
690        test -d copied/rtemsbsd/lm32/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/lm32/include/freebsd/machine/
691        cp $< $@
692
693copied/rtemsbsd/m32c/m32c/in_cksum.c: freebsd/mips/mips/in_cksum.c
694        test -d copied/rtemsbsd/m32c/m32c/ || mkdir -p copied/rtemsbsd/m32c/m32c/
695        cp $< $@
696
697copied/rtemsbsd/m32c/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
698        test -d copied/rtemsbsd/m32c/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32c/include/freebsd/machine/
699        cp $< $@
700
701copied/rtemsbsd/m32r/m32r/in_cksum.c: freebsd/mips/mips/in_cksum.c
702        test -d copied/rtemsbsd/m32r/m32r/ || mkdir -p copied/rtemsbsd/m32r/m32r/
703        cp $< $@
704
705copied/rtemsbsd/m32r/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
706        test -d copied/rtemsbsd/m32r/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32r/include/freebsd/machine/
707        cp $< $@
708
709copied/rtemsbsd/m68k/m68k/in_cksum.c: freebsd/mips/mips/in_cksum.c
710        test -d copied/rtemsbsd/m68k/m68k/ || mkdir -p copied/rtemsbsd/m68k/m68k/
711        cp $< $@
712
713copied/rtemsbsd/m68k/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
714        test -d copied/rtemsbsd/m68k/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m68k/include/freebsd/machine/
715        cp $< $@
716
717copied/rtemsbsd/nios2/nios2/in_cksum.c: freebsd/mips/mips/in_cksum.c
718        test -d copied/rtemsbsd/nios2/nios2/ || mkdir -p copied/rtemsbsd/nios2/nios2/
719        cp $< $@
720
721copied/rtemsbsd/nios2/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
722        test -d copied/rtemsbsd/nios2/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/nios2/include/freebsd/machine/
723        cp $< $@
724
725copied/rtemsbsd/sh/sh/in_cksum.c: freebsd/mips/mips/in_cksum.c
726        test -d copied/rtemsbsd/sh/sh/ || mkdir -p copied/rtemsbsd/sh/sh/
727        cp $< $@
728
729copied/rtemsbsd/sh/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
730        test -d copied/rtemsbsd/sh/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sh/include/freebsd/machine/
731        cp $< $@
732
733copied/rtemsbsd/sparc/sparc/in_cksum.c: freebsd/mips/mips/in_cksum.c
734        test -d copied/rtemsbsd/sparc/sparc/ || mkdir -p copied/rtemsbsd/sparc/sparc/
735        cp $< $@
736
737copied/rtemsbsd/sparc/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
738        test -d copied/rtemsbsd/sparc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc/include/freebsd/machine/
739        cp $< $@
740
741copied/rtemsbsd/v850/v850/in_cksum.c: freebsd/mips/mips/in_cksum.c
742        test -d copied/rtemsbsd/v850/v850/ || mkdir -p copied/rtemsbsd/v850/v850/
743        cp $< $@
744
745copied/rtemsbsd/v850/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h
746        test -d copied/rtemsbsd/v850/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/v850/include/freebsd/machine/
747        cp $< $@
748
749copied/rtemsbsd/arm/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
750        test -d copied/rtemsbsd/arm/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/arm/include/freebsd/machine/
751        cp $< $@
752
753copied/rtemsbsd/arm/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
754        test -d copied/rtemsbsd/arm/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/arm/include/freebsd/machine/
755        cp $< $@
756
757copied/freebsd/arm/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
758        test -d copied/freebsd/arm/pci/ || mkdir -p copied/freebsd/arm/pci/
759        cp $< $@
760
761copied/freebsd/arm/arm/legacy.c: freebsd/i386/i386/legacy.c
762        test -d copied/freebsd/arm/arm/ || mkdir -p copied/freebsd/arm/arm/
763        cp $< $@
764
765copied/rtemsbsd/avr/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
766        test -d copied/rtemsbsd/avr/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/avr/include/freebsd/machine/
767        cp $< $@
768
769copied/rtemsbsd/avr/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
770        test -d copied/rtemsbsd/avr/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/avr/include/freebsd/machine/
771        cp $< $@
772
773copied/freebsd/avr/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
774        test -d copied/freebsd/avr/pci/ || mkdir -p copied/freebsd/avr/pci/
775        cp $< $@
776
777copied/freebsd/avr/avr/legacy.c: freebsd/i386/i386/legacy.c
778        test -d copied/freebsd/avr/avr/ || mkdir -p copied/freebsd/avr/avr/
779        cp $< $@
780
781copied/rtemsbsd/bfin/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
782        test -d copied/rtemsbsd/bfin/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/bfin/include/freebsd/machine/
783        cp $< $@
784
785copied/rtemsbsd/bfin/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
786        test -d copied/rtemsbsd/bfin/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/bfin/include/freebsd/machine/
787        cp $< $@
788
789copied/freebsd/bfin/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
790        test -d copied/freebsd/bfin/pci/ || mkdir -p copied/freebsd/bfin/pci/
791        cp $< $@
792
793copied/freebsd/bfin/bfin/legacy.c: freebsd/i386/i386/legacy.c
794        test -d copied/freebsd/bfin/bfin/ || mkdir -p copied/freebsd/bfin/bfin/
795        cp $< $@
796
797copied/rtemsbsd/h8300/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
798        test -d copied/rtemsbsd/h8300/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/h8300/include/freebsd/machine/
799        cp $< $@
800
801copied/rtemsbsd/h8300/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
802        test -d copied/rtemsbsd/h8300/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/h8300/include/freebsd/machine/
803        cp $< $@
804
805copied/freebsd/h8300/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
806        test -d copied/freebsd/h8300/pci/ || mkdir -p copied/freebsd/h8300/pci/
807        cp $< $@
808
809copied/freebsd/h8300/h8300/legacy.c: freebsd/i386/i386/legacy.c
810        test -d copied/freebsd/h8300/h8300/ || mkdir -p copied/freebsd/h8300/h8300/
811        cp $< $@
812
813copied/rtemsbsd/lm32/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
814        test -d copied/rtemsbsd/lm32/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/lm32/include/freebsd/machine/
815        cp $< $@
816
817copied/rtemsbsd/lm32/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
818        test -d copied/rtemsbsd/lm32/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/lm32/include/freebsd/machine/
819        cp $< $@
820
821copied/freebsd/lm32/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
822        test -d copied/freebsd/lm32/pci/ || mkdir -p copied/freebsd/lm32/pci/
823        cp $< $@
824
825copied/freebsd/lm32/lm32/legacy.c: freebsd/i386/i386/legacy.c
826        test -d copied/freebsd/lm32/lm32/ || mkdir -p copied/freebsd/lm32/lm32/
827        cp $< $@
828
829copied/rtemsbsd/m32c/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
830        test -d copied/rtemsbsd/m32c/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32c/include/freebsd/machine/
831        cp $< $@
832
833copied/rtemsbsd/m32c/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
834        test -d copied/rtemsbsd/m32c/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32c/include/freebsd/machine/
835        cp $< $@
836
837copied/freebsd/m32c/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
838        test -d copied/freebsd/m32c/pci/ || mkdir -p copied/freebsd/m32c/pci/
839        cp $< $@
840
841copied/freebsd/m32c/m32c/legacy.c: freebsd/i386/i386/legacy.c
842        test -d copied/freebsd/m32c/m32c/ || mkdir -p copied/freebsd/m32c/m32c/
843        cp $< $@
844
845copied/rtemsbsd/m32r/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
846        test -d copied/rtemsbsd/m32r/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32r/include/freebsd/machine/
847        cp $< $@
848
849copied/rtemsbsd/m32r/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
850        test -d copied/rtemsbsd/m32r/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m32r/include/freebsd/machine/
851        cp $< $@
852
853copied/freebsd/m32r/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
854        test -d copied/freebsd/m32r/pci/ || mkdir -p copied/freebsd/m32r/pci/
855        cp $< $@
856
857copied/freebsd/m32r/m32r/legacy.c: freebsd/i386/i386/legacy.c
858        test -d copied/freebsd/m32r/m32r/ || mkdir -p copied/freebsd/m32r/m32r/
859        cp $< $@
860
861copied/rtemsbsd/m68k/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
862        test -d copied/rtemsbsd/m68k/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m68k/include/freebsd/machine/
863        cp $< $@
864
865copied/rtemsbsd/m68k/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
866        test -d copied/rtemsbsd/m68k/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/m68k/include/freebsd/machine/
867        cp $< $@
868
869copied/freebsd/m68k/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
870        test -d copied/freebsd/m68k/pci/ || mkdir -p copied/freebsd/m68k/pci/
871        cp $< $@
872
873copied/freebsd/m68k/m68k/legacy.c: freebsd/i386/i386/legacy.c
874        test -d copied/freebsd/m68k/m68k/ || mkdir -p copied/freebsd/m68k/m68k/
875        cp $< $@
876
877copied/rtemsbsd/mips/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
878        test -d copied/rtemsbsd/mips/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/mips/include/freebsd/machine/
879        cp $< $@
880
881copied/rtemsbsd/mips/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
882        test -d copied/rtemsbsd/mips/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/mips/include/freebsd/machine/
883        cp $< $@
884
885copied/freebsd/mips/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
886        test -d copied/freebsd/mips/pci/ || mkdir -p copied/freebsd/mips/pci/
887        cp $< $@
888
889copied/freebsd/mips/mips/legacy.c: freebsd/i386/i386/legacy.c
890        test -d copied/freebsd/mips/mips/ || mkdir -p copied/freebsd/mips/mips/
891        cp $< $@
892
893copied/rtemsbsd/nios2/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
894        test -d copied/rtemsbsd/nios2/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/nios2/include/freebsd/machine/
895        cp $< $@
896
897copied/rtemsbsd/nios2/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
898        test -d copied/rtemsbsd/nios2/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/nios2/include/freebsd/machine/
899        cp $< $@
900
901copied/freebsd/nios2/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
902        test -d copied/freebsd/nios2/pci/ || mkdir -p copied/freebsd/nios2/pci/
903        cp $< $@
904
905copied/freebsd/nios2/nios2/legacy.c: freebsd/i386/i386/legacy.c
906        test -d copied/freebsd/nios2/nios2/ || mkdir -p copied/freebsd/nios2/nios2/
907        cp $< $@
908
909copied/rtemsbsd/powerpc/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
910        test -d copied/rtemsbsd/powerpc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/powerpc/include/freebsd/machine/
911        cp $< $@
912
913copied/rtemsbsd/powerpc/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
914        test -d copied/rtemsbsd/powerpc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/powerpc/include/freebsd/machine/
915        cp $< $@
916
917copied/freebsd/powerpc/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
918        test -d copied/freebsd/powerpc/pci/ || mkdir -p copied/freebsd/powerpc/pci/
919        cp $< $@
920
921copied/freebsd/powerpc/powerpc/legacy.c: freebsd/i386/i386/legacy.c
922        test -d copied/freebsd/powerpc/powerpc/ || mkdir -p copied/freebsd/powerpc/powerpc/
923        cp $< $@
924
925copied/rtemsbsd/sh/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
926        test -d copied/rtemsbsd/sh/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sh/include/freebsd/machine/
927        cp $< $@
928
929copied/rtemsbsd/sh/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
930        test -d copied/rtemsbsd/sh/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sh/include/freebsd/machine/
931        cp $< $@
932
933copied/freebsd/sh/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
934        test -d copied/freebsd/sh/pci/ || mkdir -p copied/freebsd/sh/pci/
935        cp $< $@
936
937copied/freebsd/sh/sh/legacy.c: freebsd/i386/i386/legacy.c
938        test -d copied/freebsd/sh/sh/ || mkdir -p copied/freebsd/sh/sh/
939        cp $< $@
940
941copied/rtemsbsd/sparc/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
942        test -d copied/rtemsbsd/sparc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc/include/freebsd/machine/
943        cp $< $@
944
945copied/rtemsbsd/sparc/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
946        test -d copied/rtemsbsd/sparc/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc/include/freebsd/machine/
947        cp $< $@
948
949copied/freebsd/sparc/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
950        test -d copied/freebsd/sparc/pci/ || mkdir -p copied/freebsd/sparc/pci/
951        cp $< $@
952
953copied/freebsd/sparc/sparc/legacy.c: freebsd/i386/i386/legacy.c
954        test -d copied/freebsd/sparc/sparc/ || mkdir -p copied/freebsd/sparc/sparc/
955        cp $< $@
956
957copied/rtemsbsd/sparc64/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
958        test -d copied/rtemsbsd/sparc64/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc64/include/freebsd/machine/
959        cp $< $@
960
961copied/rtemsbsd/sparc64/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
962        test -d copied/rtemsbsd/sparc64/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/sparc64/include/freebsd/machine/
963        cp $< $@
964
965copied/freebsd/sparc64/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
966        test -d copied/freebsd/sparc64/pci/ || mkdir -p copied/freebsd/sparc64/pci/
967        cp $< $@
968
969copied/freebsd/sparc64/sparc64/legacy.c: freebsd/i386/i386/legacy.c
970        test -d copied/freebsd/sparc64/sparc64/ || mkdir -p copied/freebsd/sparc64/sparc64/
971        cp $< $@
972
973copied/rtemsbsd/v850/include/freebsd/machine/legacyvar.h: freebsd/i386/include/freebsd/machine/legacyvar.h
974        test -d copied/rtemsbsd/v850/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/v850/include/freebsd/machine/
975        cp $< $@
976
977copied/rtemsbsd/v850/include/freebsd/machine/pci_cfgreg.h: freebsd/i386/include/freebsd/machine/pci_cfgreg.h
978        test -d copied/rtemsbsd/v850/include/freebsd/machine/ || mkdir -p copied/rtemsbsd/v850/include/freebsd/machine/
979        cp $< $@
980
981copied/freebsd/v850/pci/pci_bus.c: freebsd/i386/pci/pci_bus.c
982        test -d copied/freebsd/v850/pci/ || mkdir -p copied/freebsd/v850/pci/
983        cp $< $@
984
985copied/freebsd/v850/v850/legacy.c: freebsd/i386/i386/legacy.c
986        test -d copied/freebsd/v850/v850/ || mkdir -p copied/freebsd/v850/v850/
987        cp $< $@
988
989CPU_SED  = sed
990CPU_SED += -e '/arm/d'
991CPU_SED += -e '/i386/d'
992CPU_SED += -e '/powerpc/d'
993CPU_SED += -e '/mips/d'
994CPU_SED += -e '/sparc64/d'
995
996install: $(LIB) install_bsd lib_user install_user
997
998install_bsd: $(LIB)
999        install -d $(INSTALL_BASE)/include
1000        install -c -m 644 $(LIB) $(INSTALL_BASE)
1001        cd rtemsbsd; for i in `find freebsd -name '*.h'` ; do \
1002          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1003        for i in `find freebsd -name '*.h' | $(CPU_SED)` ; do \
1004          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1005        -cd freebsd/$(RTEMS_CPU)/include && for i in `find . -name '*.h'` ; do \
1006          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1007        -cd rtemsbsd/$(RTEMS_CPU)/include && \
1008          for i in `find . -name '*.h' | $(CPU_SED)` ; do \
1009            install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1010        -cd copied/rtemsbsd/$(RTEMS_CPU)/include && for i in `find . -name '*.h'` ; do \
1011          install -c -m 644 -D "$$i" "$(INSTALL_BASE)/include/$$i" ; done
1012
1013install_user:
1014        $(MAKE) -C freebsd-userspace install
1015
1016clean:
1017        rm -f -r $(PROJECT_INCLUDE)/rtems/freebsd
1018        rm -f $(LIB) $(C_O_FILES) $(C_D_FILES) $(GENERATED_FILES)
1019        rm -f libbsd.html
1020        rm -rf copied
1021        $(MAKE) -C freebsd-userspace clean
1022
1023-include $(C_D_FILES)
1024
1025doc: libbsd.html
1026
1027libbsd.html: libbsd.txt
1028        asciidoc -o libbsd.html libbsd.txt
Note: See TracBrowser for help on using the repository browser.