source: rtems/c/src/lib/libbsp/powerpc/psim/Makefile.am @ 78f96ab

4.104.114.84.95
Last change on this file since 78f96ab was 78f96ab, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Jul 5, 2007 at 8:32:43 PM

fixed some problems with shared PPC exception handling code

  • Property mode set to 100644
File size: 3.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 = . tools
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
17include_HEADERS += include/tm27.h
18
19nodist_include_HEADERS = include/bspopts.h
20DISTCLEANFILES = include/bspopts.h
21
22noinst_PROGRAMS =
23
24include_bspdir = $(includedir)/bsp
25
26include_HEADERS += include/coverhd.h
27
28EXTRA_DIST = start/start.S
29start.$(OBJEXT): start/start.S
30        $(CPPASCOMPILE) -o $@ -c $<
31project_lib_DATA = start.$(OBJEXT)
32
33EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
34rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
35        $(CPPASCOMPILE) -o $@ -c $<
36project_lib_DATA += rtems_crti.$(OBJEXT)
37
38dist_project_lib_DATA += startup/linkcmds
39
40noinst_PROGRAMS += startup.rel
41startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
42    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
43    ../../shared/sbrk.c \
44    ../../shared/gnatinstallhandler.c
45startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
46startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
47
48noinst_PROGRAMS += pclock.rel
49pclock_rel_SOURCES = ../shared/clock/p_clock.c
50pclock_rel_CPPFLAGS = $(AM_CPPFLAGS)
51pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
52
53## Bulk of Console driver with dependencies that entails
54noinst_PROGRAMS += console.rel
55console_rel_SOURCES = ../../shared/console-polled.c
56console_rel_CPPFLAGS = $(AM_CPPFLAGS)
57console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
58
59## used for debug IO and bottom of console polled
60noinst_PROGRAMS += consoleio.rel
61consoleio_rel_SOURCES = console/console-io.c console/consupp.S
62consoleio_rel_CPPFLAGS = $(AM_CPPFLAGS)
63consoleio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
64
65include_bsp_HEADERS = irq/irq.h
66
67noinst_PROGRAMS += irq.rel
68irq_rel_SOURCES = irq/irq.c irq/irq_init.c irq/irq_asm.S
69irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
70irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71
72EXTRA_DIST += vectors/README
73
74noinst_PROGRAMS += vectors.rel
75vectors_rel_SOURCES = vectors/align_h.S ../../powerpc/shared/vectors/vectors.S \
76    ../../powerpc/shared/vectors/vectors_init.c
77vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
78vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
79
80include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h
81
82if HAS_MP
83EXTRA_DIST += shmsupp/README
84
85noinst_PROGRAMS += shmsupp.rel
86shmsupp_rel_SOURCES = shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
87    shmsupp/mpisr.c
88shmsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
89shmsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
90endif
91
92noinst_LIBRARIES = libbsp.a
93libbsp_a_SOURCES =
94libbsp_a_LIBADD = pclock.rel consoleio.rel console.rel irq.rel vectors.rel
95libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
96    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
97    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
98    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
99    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \
100    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
101    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel
102
103libbsp_a_LIBADD += \
104startup_rel-bspclean.o \
105startup_rel-bsplibc.o \
106startup_rel-bsppost.o \
107startup_rel-bspstart.o \
108startup_rel-bootcard.o \
109startup_rel-sbrk.o \
110startup_rel-gnatinstallhandler.o
111
112if HAS_MP
113libbsp_a_LIBADD += shmsupp.rel
114endif
115
116include $(srcdir)/preinstall.am
117include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.