source: rtems/c/src/lib/libbsp/sh/shsim/Makefile.am @ c24d7c84

4.104.114.84.9
Last change on this file since c24d7c84 was c24d7c84, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 12, 2004 at 9:08:05 AM

2004-02-12 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Use CPPASCOMPILE instead of CCASCOMPILE.
  • Property mode set to 100644
File size: 4.9 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10EXTRA_PROGRAMS =
11CLEANFILES =
12noinst_DATA =
13
14include_HEADERS += include/gdbsci.h
15nodist_include_HEADERS += ../../shared/include/coverhd.h
16
17EXTRA_DIST = start/start.S
18start$(LIB_VARIANT).$(OBJEXT): start/start.S
19        $(CPPASCOMPILE) -DASM -o $@ -c $<
20project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
21
22dist_project_lib_DATA += startup/linkcmds
23
24EXTRA_PROGRAMS += startup.rel
25CLEANFILES += startup.rel
26startup_rel_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
27    startup/bspstart.c ../../shared/bspclean.c ../../shared/sbrk.c \
28    ../../shared/bootcard.c ../../shared/main.c \
29    ../../shared/gnatinstallhandler.c
30startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
31startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
32
33EXTRA_PROGRAMS += startup_g.rel
34CLEANFILES += startup_g.rel
35startup_g_rel_SOURCES = $(startup_rel_SOURCES)
36startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
37startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
38
39noinst_DATA += startup$(LIB_VARIANT).rel
40
41EXTRA_PROGRAMS += clock.rel
42CLEANFILES += clock.rel
43clock_rel_SOURCES = clock/clockdrv.c
44clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
45clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
46
47EXTRA_PROGRAMS += clock_g.rel
48CLEANFILES += clock_g.rel
49clock_g_rel_SOURCES = $(clock_rel_SOURCES)
50clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
51clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
52
53noinst_DATA += clock$(LIB_VARIANT).rel
54
55scitab.c: $(SHGEN)
56        $(SHGEN) -H @CPU_CLOCK_RATE_HZ@ sci > $@
57BUILT_SOURCES = scitab.c
58CLEANFILES += scitab.c
59
60EXTRA_PROGRAMS += scitab.rel
61CLEANFILES += scitab.rel
62scitab_rel_SOURCES = scitab.c
63scitab_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
64scitab_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
65
66EXTRA_PROGRAMS += scitab_g.rel
67CLEANFILES += scitab_g.rel
68scitab_g_rel_SOURCES = $(scitab_rel_SOURCES)
69scitab_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
70scitab_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71
72noinst_DATA += scitab$(LIB_VARIANT).rel
73
74EXTRA_PROGRAMS += gdbsci.rel
75CLEANFILES += gdbsci.rel
76gdbsci_rel_SOURCES = gdbsci/gdbsci.c
77gdbsci_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
78gdbsci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
79
80EXTRA_PROGRAMS += gdbsci_g.rel
81CLEANFILES += gdbsci_g.rel
82gdbsci_g_rel_SOURCES = $(gdbsci_rel_SOURCES)
83gdbsci_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
84gdbsci_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
85
86noinst_DATA += gdbsci$(LIB_VARIANT).rel
87
88#
89# FIXME: trap34 is unused
90#
91EXTRA_PROGRAMS += trap34.rel
92CLEANFILES += trap34.rel
93trap34_rel_SOURCES = trap34/console-io.c trap34/console-support.S
94trap34_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
95trap34_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
96
97EXTRA_PROGRAMS += trap34_g.rel
98CLEANFILES += trap34_g.rel
99trap34_g_rel_SOURCES = $(trap34_rel_SOURCES)
100trap34_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
101trap34_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
102
103noinst_DATA += trap34$(LIB_VARIANT).rel
104
105EXTRA_PROGRAMS += console.rel
106CLEANFILES += console.rel
107console_rel_SOURCES = ../../sh/shared/console.c
108console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
109console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
110
111EXTRA_PROGRAMS += console_g.rel
112CLEANFILES += console_g.rel
113console_g_rel_SOURCES = $(console_rel_SOURCES)
114console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
115console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
116
117noinst_DATA += console$(LIB_VARIANT).rel
118
119EXTRA_LIBRARIES = libbsp.a
120CLEANFILES += libbsp.a
121libbsp_a_SOURCES =
122libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
123    console$(LIB_VARIANT).rel gdbsci$(LIB_VARIANT).rel \
124    scitab$(LIB_VARIANT).rel
125libbsp_a_LIBADD += \
126    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/score$(LIB_VARIANT).rel
127
128EXTRA_LIBRARIES += libbsp_g.a
129CLEANFILES += libbsp_g.a
130libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
131libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
132
133noinst_DATA += libbsp$(LIB_VARIANT).a
134
135noinst_DATA += console$(LIB_VARIANT).rel
136
137all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
138
139PREINSTALL_DIRS =
140TMPINSTALL_FILES =
141
142$(PROJECT_INCLUDE)/gdbsci.h: include/gdbsci.h $(PROJECT_INCLUDE)/$(dirstamp)
143        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gdbsci.h
144PREINSTALL_FILES += $(PROJECT_INCLUDE)/gdbsci.h
145
146$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
147        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
148PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
149
150$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
151        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
152TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
153
154$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
155        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
156TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
157
158CLEANFILES += $(PREINSTALL_FILES)
159DISTCLEANFILES = $(PREINSTALL_DIRS)
160CLEANFILES += $(TMPINSTALL_FILES)
161
162include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.