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

B_20100615baselibbsdport-4-10-branch
Last change on this file since a8bf95d was a8bf95d, checked in by Till Straumann <strauman@…>, on Apr 22, 2009 at 10:06:58 PM
  • importing updated version from SLAC as of 20090422
  • Property mode set to 100644
File size: 2.1 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
41BUILT_SOURCES=
42
43include ../links.am
44
45#
46# I found no good way to have something made first thing.
47# all-local is made after 'all' and xxx_DEPENDENCIES are
48# after OBJECTS are made :-(
49$(libbsdport_a_OBJECTS): $(DUMMYHEADERS) $(LINKS)
50
51if FALSE
52CLOBBER_ADDITIONS  =
53CLOBBER_ADDITIONS += $(srcdir)/dummyheaders
54CLOBBER_ADDITIONS += $(addprefix $(srcdir)/,$(sort $(foreach n,$(LINKS),$(firstword $(subst /, ,$(n))))))
55
56dummyheaders/%:
57        @if [ ! -d $(srcdir)/`dirname $@` ] ; then mkdir -p $(srcdir)/`dirname $@`; fi
58        @touch $(srcdir)/$@
59
60# for each name listed in LINKS, create parent directories (if needed)
61# and a symlink to file in .
62# E.g., LINKS=a/b/c.h
63# creates a/b/c.h -> ../../c.h
64$(LINKS):
65        @if [ ! -d $(srcdir)/$(dir $@) ] ; then mkdir -p $(srcdir)/$(dir $@); fi
66        @ln -s `echo $@ | sed -e 's%[^/]\+[/]\+%../%g'` $(srcdir)/$@
67
68
69distclean-local:
70        $(RM) -r $(CLOBBER_ADDITIONS)
71endif
72
Note: See TracBrowser for help on using the repository browser.