source: rtems/c/src/lib/libbsp/powerpc/psim/Makefile.am @ 270ce1ff

4.104.114.84.95
Last change on this file since 270ce1ff was 270ce1ff, checked in by Jennifer Averett <Jennifer.Averett@…>, on Nov 22, 2004 at 10:13:35 PM

2004-11-22 Jennifer Averett <jennifer@…>

PR 581/bsps

  • Makefile.am, bsp_specs, configure.ac, include/bsp.h, include/tm27.h, start/start.S, startup/bspstart.c, startup/linkcmds, tools/Makefile.am, tools/psim, vectors/vectors.S, wrapup/Makefile.am: Convert PSIM to new exception model.
  • irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c: New files.
  • startup/setvec.c, timer/timer.c: Removed.
  • Property mode set to 100644
File size: 6.7 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 = . @exceptions@ wrapup 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
18nodist_include_HEADERS = include/bspopts.h
19
20EXTRA_PROGRAMS =
21CLEANFILES =
22noinst_DATA =
23
24include_bspdir = $(includedir)/bsp
25
26include_HEADERS += include/coverhd.h
27
28EXTRA_DIST = start/start.S
29start$(LIB_VARIANT).$(OBJEXT): start/start.S
30        $(CPPASCOMPILE) -DASM -o $@ -c $<
31project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
32
33EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
34rtems_crti$(LIB_VARIANT).$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
35        $(CPPASCOMPILE) -DASM -o $@ -c $<
36project_lib_DATA += rtems_crti$(LIB_VARIANT).$(OBJEXT)
37
38dist_project_lib_DATA += startup/linkcmds
39
40EXTRA_PROGRAMS += startup.rel
41CLEANFILES += startup.rel
42startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
43    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
44    ../../shared/main.c ../../shared/sbrk.c ../../shared/gnatinstallhandler.c
45startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
46startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
47
48EXTRA_PROGRAMS += startup_g.rel
49CLEANFILES += startup_g.rel
50startup_g_rel_SOURCES = $(startup_rel_SOURCES)
51startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
52startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54noinst_DATA += startup$(LIB_VARIANT).rel
55
56EXTRA_PROGRAMS += pclock.rel
57CLEANFILES += pclock.rel
58pclock_rel_SOURCES = ../shared/clock/p_clock.c
59pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
60pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
61
62EXTRA_PROGRAMS += pclock_g.rel
63CLEANFILES += pclock_g.rel
64pclock_g_rel_SOURCES = $(pclock_rel_SOURCES)
65pclock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
66pclock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
67
68noinst_DATA += pclock$(LIB_VARIANT).rel
69
70EXTRA_PROGRAMS += console.rel
71CLEANFILES += console.rel
72console_rel_SOURCES = console/console-io.c console/consupp.S \
73    ../../shared/console-polled.c
74console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
75console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
76
77EXTRA_PROGRAMS += console_g.rel
78CLEANFILES += console_g.rel
79console_g_rel_SOURCES = $(console_rel_SOURCES)
80console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
81console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
82
83noinst_DATA += console$(LIB_VARIANT).rel
84
85include_bsp_HEADERS = irq/irq.h
86
87EXTRA_PROGRAMS += irq.rel
88CLEANFILES += irq.rel
89irq_rel_SOURCES = irq/irq.c irq/irq_init.c irq/irq_asm.S
90irq_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
91irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
92
93EXTRA_PROGRAMS += irq_g.rel
94CLEANFILES += irq_g.rel
95irq_g_rel_SOURCES = $(irq_rel_SOURCES)
96irq_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
97irq_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
98
99noinst_DATA += irq$(LIB_VARIANT).rel
100
101EXTRA_DIST += vectors/README
102
103EXTRA_PROGRAMS += vectors.rel
104CLEANFILES += vectors.rel
105vectors_rel_SOURCES = vectors/align_h.S vectors/vectors.S \
106    ../../powerpc/shared/vectors/vectors_init.c
107vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
108vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
109
110EXTRA_PROGRAMS += vectors_g.rel
111CLEANFILES += vectors_g.rel
112vectors_g_rel_SOURCES = $(vectors_rel_SOURCES)
113vectors_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
114vectors_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
115
116noinst_DATA += vectors$(LIB_VARIANT).rel
117
118include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h
119
120if HAS_MP
121EXTRA_DIST += shmsupp/README
122
123EXTRA_PROGRAMS += shmsupp.rel
124CLEANFILES += shmsupp.rel
125shmsupp_rel_SOURCES = shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
126    shmsupp/mpisr.c
127shmsupp_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
128shmsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
129
130EXTRA_PROGRAMS += shmsupp_g.rel
131CLEANFILES += shmsupp_g.rel
132shmsupp_g_rel_SOURCES = $(shmsupp_rel_SOURCES)
133shmsupp_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
134shmsupp_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
135
136noinst_DATA += shmsupp$(LIB_VARIANT).rel
137endif
138
139all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
140
141PREINSTALL_DIRS =
142PREINSTALL_FILES =
143TMPINSTALL_FILES =
144
145$(PROJECT_INCLUDE)/$(dirstamp):
146        @$(mkdir_p) $(PROJECT_INCLUDE)
147        @: > $(PROJECT_INCLUDE)/$(dirstamp)
148PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
149
150$(PROJECT_LIB)/$(dirstamp):
151        @$(mkdir_p) $(PROJECT_LIB)
152        @: > $(PROJECT_LIB)/$(dirstamp)
153PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
154
155$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
156        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
157PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
158
159$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
160        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
161PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
162
163$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
164        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
165PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
166
167$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
168        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
169PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
170
171$(PROJECT_INCLUDE)/bsp/$(dirstamp):
172        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
173        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
174PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
175
176$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
177        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
178PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
179
180$(PROJECT_INCLUDE)/bsp/irq.h: irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
181        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
182PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
183
184$(PROJECT_INCLUDE)/bsp/vectors.h: ../shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
185        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
186PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
187
188$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
189        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
190TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
191
192$(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT): rtems_crti$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
193        $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT)
194TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti$(LIB_VARIANT).$(OBJEXT)
195
196$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
197        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
198PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
199
200CLEANFILES += $(PREINSTALL_FILES)
201DISTCLEANFILES = $(PREINSTALL_DIRS)
202CLEANFILES += $(TMPINSTALL_FILES)
203
204include $(top_srcdir)/../../../../automake/subdirs.am
205include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.