source: rtems/c/src/lib/libbsp/powerpc/mvme3100/Makefile.am @ 1d0ee80e

4.104.114.95
Last change on this file since 1d0ee80e was 1d0ee80e, checked in by Joel Sherrill <joel.sherrill@…>, on 05/14/08 at 20:28:09

2008-05-14 Joel Sherrill <joel.sherrill@…>

  • Makefile.am: Rework to avoid .rel files.
  • Property mode set to 100644
File size: 5.0 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7# wrapup is the one that actually builds and installs the library
8# from the individual .rel files built in other directories
9SUBDIRS = .
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14dist_project_lib_DATA = bsp_specs
15
16include_HEADERS = include/bsp.h
17
18nodist_include_HEADERS = include/bspopts.h
19DISTCLEANFILES = include/bspopts.h
20
21noinst_PROGRAMS =
22
23include_bspdir = $(includedir)/bsp
24
25include_HEADERS += ../../shared/include/coverhd.h
26include_HEADERS += ../../shared/tod.h
27
28project_lib_DATA =
29
30EXTRA_DIST = ./start/start.S
31start.$(OBJEXT): ./start/start.S
32        $(CPPASCOMPILE) -o $@ -c $<
33
34EXTRA_DIST += ../shared/start/preload.S
35preload.$(OBJEXT): ../shared/start/preload.S
36        $(CPPASCOMPILE) -DASM -o $@ -c $<
37
38EXTRA_DIST += ../shared/start/vectors_entry.S
39vectors_entry.$(OBJEXT): ../shared/start/vectors_entry.S
40        $(CPPASCOMPILE) -o $@ -c $<
41
42motld_start.$(OBJEXT):  preload.$(OBJEXT) vectors_entry.$(OBJEXT) \
43    start.$(OBJEXT)
44        $(LD) -o $@ -r $^
45
46project_lib_DATA += motld_start.$(OBJEXT)
47
48EXTRA_DIST += ../shared/start/rtems_crti.S
49rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
50        $(CPPASCOMPILE) -o $@ -c $<
51project_lib_DATA += rtems_crti.$(OBJEXT)
52
53dist_project_lib_DATA += ../shared/startup/linkcmds
54
55build_date.c::
56        echo 'const char *BSP_build_date="'`date`'";' > $@
57
58noinst_PROGRAMS += startup.rel
59startup_SOURCES = ./startup/bspstart.c build_date.c \
60        ./startup/misc.c \
61        ../../powerpc/shared/startup/pretaskinghook.c \
62        ../../powerpc/shared/startup/zerobss.c \
63    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
64    ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
65    ../../shared/gnatinstallhandler.c
66tod_SOURCES = ../../shared/tod.c tod/todcfg.c
67pclock_SOURCES = ../../powerpc/shared/clock/p_clock.c
68
69include_bsp_HEADERS = ../../powerpc/shared/console/uart.h
70console_SOURCES = ../../powerpc/shared/console/uart.c \
71    ../../powerpc/shared/console/console.c \
72    ../../powerpc/shared/console/consoleIo.h \
73    ../../powerpc/shared/console/uart.h
74
75include_bsp_HEADERS += ./irq/irq.h
76irq_SOURCES = ./irq/irq_init.c \
77    ../../powerpc/shared/irq/openpic_i8259_irq.c \
78    ../../powerpc/shared/irq/irq.h
79
80include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h
81openpic_SOURCES = ../../powerpc/shared/openpic/openpic.h \
82    ../../powerpc/shared/openpic/openpic.c \
83    ../../powerpc/shared/openpic/openpic.h
84
85include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
86pci_SOURCES = ../../powerpc/shared/pci/pci.c \
87    ./pci/detect_host_bridge.c \
88    ../../powerpc/shared/pci/generic_clear_hberrs.c \
89    ../../powerpc/shared/pci/pcifinddevice.c ../../powerpc/shared/pci/pci.h
90
91include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/vectors.h
92include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/ppc_exc_bspsupp.h
93include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h
94
95include_bsp_HEADERS += ./vme/VMEConfig.h \
96        ../../shared/vmeUniverse/vmeTsi148.h \
97    ../../shared/vmeUniverse/vme_am_defs.h \
98    ../../shared/vmeUniverse/VME.h \
99    ../../shared/vmeUniverse/vmeTsi148DMA.h\
100    ../../shared/vmeUniverse/bspVmeDmaList.h\
101    ../../shared/vmeUniverse/VMEDMA.h
102
103vme_SOURCES = ../../shared/vmeUniverse/vmeTsi148.c \
104    ../../shared/vmeUniverse/bspVmeDmaList.c \
105    ../../shared/vmeUniverse/vmeTsi148.h \
106    ../../shared/vmeUniverse/vme_am_defs.h \
107    ../../shared/vmeUniverse/VME.h \
108    ../../powerpc/shared/vme/vmeconfig.c \
109    ../../powerpc/shared/vme/vme_universe.c
110
111include_bsp_HEADERS += ../shared/flash/flashPgm.h \
112        ../shared/flash/flashPgmPvt.h
113flash_SOURCES = ../shared/flash/flash.c \
114        ../shared/flash/spansionFlash.c \
115        ./flash/flashcfg.c
116
117include_bsp_HEADERS += i2c/mpc8540_i2c_busdrv.h
118i2c_SOURCES = i2c/mpc8540_i2c.c i2c/i2c_init.c
119
120include_bsp_HEADERS += ../shared/motorola/vpd.h
121vpd_SOURCES = ../shared/motorola/vpd.c
122
123if HAS_NETWORKING
124include_bsp_HEADERS += network/if_tsec_pub.h
125noinst_PROGRAMS += network.rel
126network_rel_SOURCES = network/tsec.c
127network_rel_CPPFLAGS = $(AM_CPPFLAGS)
128network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
129endif
130
131noinst_LIBRARIES = libbsp.a
132libbsp_a_SOURCES = $(startup_SOURCES) $(pclock_SOURCES) $(console_SOURCES) \
133    $(openpic_SOURCES) $(pci_SOURCES) $(irq_SOURCES) $(i2c_SOURCES) \
134    $(tod_SOURCES) $(vpd_SOURCES) $(vme_SOURCES) $(flash_SOURCES)
135
136libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
137    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
138    ../../../libcpu/@RTEMS_CPU@/e500/clock.rel \
139    ../../../libcpu/@RTEMS_CPU@/e500/timer.rel \
140    ../../../libcpu/@RTEMS_CPU@/e500/mmu.rel \
141    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
142    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \
143    ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
144    ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel
145
146if HAS_NETWORKING
147libbsp_a_LIBADD += network.rel
148endif
149
150EXTRA_DIST += LICENSE ChangeLog README KNOWN_PROBLEMS
151
152include $(srcdir)/preinstall.am
153include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.