source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am @ df393962

4.104.11
Last change on this file since df393962 was e985817e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Sep 29, 2008 at 8:54:29 PM

2008-09-29 Ralf Corsépius <ralf.corsepius@…>

  • Makefile.am: Eliminate bsp.am. Build startup files as side-effect of building libbspstart.a, using automake-rules.
  • Property mode set to 100644
File size: 5.4 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 = . bootloader
10
11include $(top_srcdir)/../../../../automake/compile.am
12
13include_bspdir = $(includedir)/bsp
14
15dist_project_lib_DATA = bsp_specs
16
17include_HEADERS = include/bsp.h
18include_HEADERS += include/tm27.h
19
20nodist_include_HEADERS = include/bspopts.h
21nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
22DISTCLEANFILES = include/bspopts.h
23
24noinst_PROGRAMS =
25
26include_HEADERS += ../../powerpc/shared/include/nvram.h
27include_HEADERS += ../../shared/include/coverhd.h
28include_HEADERS += ../../shared/tod.h
29
30noinst_LIBRARIES = libbspstart.a
31libbspstart_a_SOURCES = ../../powerpc/shared/start/start.S
32project_lib_DATA = start.$(OBJEXT)
33
34libbspstart_a_SOURCES += ../../powerpc/shared/start/rtems_crti.S
35project_lib_DATA += rtems_crti.$(OBJEXT)
36
37libbspstart_a_SOURCES += ../../powerpc/shared/start/vectors_entry.S
38project_lib_DATA += vectors_entry.$(OBJEXT)
39
40dist_project_lib_DATA += ../shared/startup/linkcmds
41
42noinst_LIBRARIES += libbsp.a
43libbsp_a_SOURCES =
44
45# startup
46libbsp_a_SOURCES += ../../powerpc/shared/startup/bspstart.c \
47        ../../powerpc/shared/startup/bspgetworkarea.c \
48        ../../powerpc/shared/showbats.c \
49        ../../powerpc/shared/startup/pretaskinghook.c \
50        ../../shared/bsppredriverhook.c \
51        ../../powerpc/shared/startup/zerobss.c \
52    ../../powerpc/shared/startup/pgtbl_setup.c \
53    ../../powerpc/shared/startup/pgtbl_activate.c \
54    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
55    ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
56    ../../shared/gnatinstallhandler.c
57# tod
58libbsp_a_SOURCES += ../../shared/tod.c ../../powerpc/shared/tod/todcfg.c
59# pclock
60libbsp_a_SOURCES += ../../powerpc/shared/clock/p_clock.c
61
62include_bsp_HEADERS = ../../powerpc/shared/console/consoleIo.h
63include_bsp_HEADERS += ../../powerpc/shared/console/uart.h
64
65# Needs conditional compilation
66polledIO_CPPFLAGS = -DSTATIC_LOG_ALLOC
67noinst_PROGRAMS += polledIO.rel
68polledIO_rel_SOURCES = ../../powerpc/shared/console/polled_io.c
69polledIO_rel_CPPFLAGS = $(AM_CPPFLAGS) $(polledIO_CPPFLAGS)
70polledIO_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71
72# console
73libbsp_a_SOURCES += \
74    ../../powerpc/shared/console/uart.c \
75    ../../powerpc/shared/console/console.c \
76    ../../powerpc/shared/console/inch.c \
77    ../../powerpc/shared/console/bspreset.c \
78    ../../powerpc/shared/console/consoleIo.h \
79    ../../powerpc/shared/console/keyboard.h \
80    ../../powerpc/shared/console/uart.h
81
82include_bsp_HEADERS += ../../powerpc/shared/irq/irq.h \
83        ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h \
84        ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/vectors.h \
85        ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/ppc_exc_bspsupp.h
86
87# irq
88libbsp_a_SOURCES += ../../powerpc/shared/irq/irq_init.c \
89    ../../powerpc/shared/irq/openpic_i8259_irq.c \
90    ../../powerpc/shared/irq/i8259.c ../../powerpc/shared/irq/irq.h
91
92include_bsp_HEADERS += ../../powerpc/shared/motorola/motorola.h
93# motorola
94libbsp_a_SOURCES += ../../powerpc/shared/motorola/motorola.h \
95    ../../powerpc/shared/motorola/motorola.c
96
97include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h
98# openpic
99libbsp_a_SOURCES += ../../powerpc/shared/openpic/openpic.h \
100    ../../powerpc/shared/openpic/openpic.c \
101    ../../powerpc/shared/openpic/openpic.h
102
103include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
104# pci
105libbsp_a_SOURCES += ../../powerpc/shared/pci/pci.c \
106    ../../powerpc/shared/pci/detect_raven_bridge.c \
107    ../../powerpc/shared/pci/generic_clear_hberrs.c \
108    ../../powerpc/shared/pci/pcifinddevice.c ../../powerpc/shared/pci/pci.h
109
110include_bsp_HEADERS += ../../powerpc/shared/residual/residual.h \
111    ../../powerpc/shared/residual/pnp.h
112# residual
113libbsp_a_SOURCES += ../../powerpc/shared/residual/pnp.h \
114    ../../powerpc/shared/residual/residual.h \
115    ../../powerpc/shared/residual/residual.c
116
117include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \
118    ../../shared/vmeUniverse/vme_am_defs.h \
119    ../../shared/vmeUniverse/VME.h \
120    ../../powerpc/shared/vme/VMEConfig.h \
121    ../../shared/vmeUniverse/vmeUniverseDMA.h\
122    ../../shared/vmeUniverse/bspVmeDmaList.h\
123    ../../shared/vmeUniverse/VMEDMA.h
124# vme
125libbsp_a_SOURCES += ../../shared/vmeUniverse/vmeUniverse.c \
126    ../../shared/vmeUniverse/bspVmeDmaList.c \
127    ../../shared/vmeUniverse/vmeUniverse.h \
128    ../../shared/vmeUniverse/vme_am_defs.h \
129    ../../shared/vmeUniverse/VME.h \
130    ../../powerpc/shared/vme/vmeconfig.c \
131    ../../powerpc/shared/vme/vme_universe.c \
132    ../../powerpc/shared/vme/VMEConfig.h
133
134libbsp_a_LIBADD = \
135    polledIO.rel \
136    ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
137    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
138    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
139    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
140    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \
141    ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
142    ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel \
143    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
144    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel
145
146EXTRA_DIST = BOOTING README.mtx603e README.MVME2100 README.MVME2300 \
147              README.MVME2400 \
148    README.OTHERBOARDS README.mcp750 README.MVME2307 README.dec21140
149EXTRA_DIST += times.mcp750 times.mvme2307
150
151include $(srcdir)/preinstall.am
152include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.