source: rtems/c/src/lib/libbsp/sh/gensh1/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: 3.6 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/coverhd.h
15
16EXTRA_DIST = start/start.S
17start$(LIB_VARIANT).$(OBJEXT): start/start.S
18        $(CPPASCOMPILE) -DASM -o $@ -c $<
19
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 startup/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
41SHGEN = $(PROJECT_TOPdir)/tools/cpu/sh/shgen
42
43scitab.c: $(SHGEN)
44        $(SHGEN) -H @CPU_CLOCK_RATE_HZ@ sci > $@
45BUILT_SOURCES = scitab.c
46CLEANFILES += scitab.c
47
48EXTRA_PROGRAMS += scitab.rel
49CLEANFILES += scitab.rel
50scitab_rel_SOURCES = scitab.c
51scitab_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
52scitab_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54EXTRA_PROGRAMS += scitab_g.rel
55CLEANFILES += scitab_g.rel
56scitab_g_rel_SOURCES = $(scitab_rel_SOURCES)
57scitab_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
58scitab_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
59
60noinst_DATA += scitab$(LIB_VARIANT).rel
61
62EXTRA_PROGRAMS += console.rel
63CLEANFILES += console.rel
64console_rel_SOURCES = ../../sh/shared/console.c
65console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
66console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
67
68EXTRA_PROGRAMS += console_g.rel
69CLEANFILES += console_g.rel
70console_g_rel_SOURCES = $(console_rel_SOURCES)
71console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
72console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
73
74noinst_DATA += console$(LIB_VARIANT).rel
75
76EXTRA_LIBRARIES = libbsp.a
77CLEANFILES += libbsp.a
78libbsp_a_SOURCES =
79libbsp_a_LIBADD = startup$(LIB_VARIANT).rel scitab$(LIB_VARIANT).rel \
80    console$(LIB_VARIANT).rel
81libbsp_a_LIBADD += \
82    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/clock$(LIB_VARIANT).rel \
83    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/timer$(LIB_VARIANT).rel \
84    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/sci$(LIB_VARIANT).rel \
85    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/delay$(LIB_VARIANT).rel \
86    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/score$(LIB_VARIANT).rel
87
88EXTRA_LIBRARIES += libbsp_g.a
89CLEANFILES += libbsp_g.a
90libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
91libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
92
93noinst_DATA += libbsp$(LIB_VARIANT).a
94
95all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
96
97EXTRA_DIST += times
98
99PREINSTALL_DIRS =
100TMPINSTALL_FILES =
101
102$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
103        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
104PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
105
106$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
107        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
108TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
109
110$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
111        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
112TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
113
114CLEANFILES += $(PREINSTALL_FILES)
115DISTCLEANFILES = $(PREINSTALL_DIRS)
116CLEANFILES += $(TMPINSTALL_FILES)
117
118include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.