source: libbsdport/bsd_eth_drivers/libbsdport/Makefile.am @ a90d1ed

B_20100615baselibbsdport-4-10-branch
Last change on this file since a90d1ed was 89376b7, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 19, 2009 at 7:55:40 PM

Initial import.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1#  $Id$
2AUTOMAKE_OPTIONS=foreign
3
4include $(top_srcdir)/rtems-pre.am
5
6libbsdport_a_SOURCES     = rtems_callout.c rtems_taskqueue.c rtems_udelay.c
7libbsdport_a_SOURCES    += ifstuff.c devicet.c alldrv.c contigmalloc.c
8libbsdport_a_SOURCES    += sysbus.c malloc.c ifmedia.c
9
10libbsdport_a_SOURCES    += rtems_verscheck.h bus.h callout.h devicet.h
11libbsdport_a_SOURCES    += libbsdport.h libbsdport_post.h mutex.h
12libbsdport_a_SOURCES    += rtems_udelay.h rtems_verscheck.h taskqueue.h
13
14include_bsp_HEADERS      = libbsdport_api.h
15
16lib_LIBRARIES            = libbsdport.a
17
18include $(top_srcdir)/rtems.am
19
20LINKS =
21LINKS+=sys/taskqueue.h
22LINKS+=sys/bus.h
23LINKS+=sys/mutex.h
24LINKS+=bsp/rtems_verscheck.h
25
26DUMMYHEADERS =
27DUMMYHEADERS+=dummyheaders/machine/bus.h
28DUMMYHEADERS+=dummyheaders/machine/resource.h
29DUMMYHEADERS+=dummyheaders/dev/pci/pcivar.h
30DUMMYHEADERS+=dummyheaders/dev/pci/pcireg.h
31DUMMYHEADERS+=dummyheaders/dev/mii/miivar.h
32DUMMYHEADERS+=dummyheaders/sys/module.h
33DUMMYHEADERS+=dummyheaders/sys/rman.h
34DUMMYHEADERS+=dummyheaders/sys/kthread.h
35DUMMYHEADERS+=dummyheaders/sys/endian.h
36DUMMYHEADERS+=dummyheaders/net/if_vlan_var.h
37DUMMYHEADERS+=dummyheaders/netinet/ip6.h
38DUMMYHEADERS+=dummyheaders/vm/pmap.h
39DUMMYHEADERS+=dummyheaders/miibus_if.h
40
41DUMMYHEADERS+=dummyheaders/miidevs.h
42DUMMYHEADERS+=dummyheaders/dev/mii/brgphyreg.h
43
44BUILT_SOURCES=
45
46include ../links.am
47
48#
49# I found no good way to have something made first thing.
50# all-local is made after 'all' and xxx_DEPENDENCIES are
51# after OBJECTS are made :-(
52$(libbsdport_a_OBJECTS): $(DUMMYHEADERS) $(LINKS)
53
54if FALSE
55CLOBBER_ADDITIONS  =
56CLOBBER_ADDITIONS += $(srcdir)/dummyheaders
57CLOBBER_ADDITIONS += $(addprefix $(srcdir)/,$(sort $(foreach n,$(LINKS),$(firstword $(subst /, ,$(n))))))
58
59dummyheaders/%:
60        @if [ ! -d $(srcdir)/`dirname $@` ] ; then mkdir -p $(srcdir)/`dirname $@`; fi
61        @touch $(srcdir)/$@
62
63# for each name listed in LINKS, create parent directories (if needed)
64# and a symlink to file in .
65# E.g., LINKS=a/b/c.h
66# creates a/b/c.h -> ../../c.h
67$(LINKS):
68        @if [ ! -d $(srcdir)/$(dir $@) ] ; then mkdir -p $(srcdir)/$(dir $@); fi
69        @ln -s `echo $@ | sed -e 's%[^/]\+[/]\+%../%g'` $(srcdir)/$@
70
71
72distclean-local:
73        $(RM) -r $(CLOBBER_ADDITIONS)
74endif
75
Note: See TracBrowser for help on using the repository browser.