source: rtems/c/src/lib/libbsp/sh/gensh4/Makefile.am @ 38e4124f

4.104.114.84.9
Last change on this file since 38e4124f was 38e4124f, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 29, 2004 at 9:59:30 AM

2004-01-29 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge-in console/Makefile.am, hw_init/Makefile.am, startup/Makefile.am, wrapup/Makefile.am. Use automake compilation rules.
  • console/Makefile.am, hw_init/Makefile.am, startup/Makefile.am, wrapup/Makefile.am: Remove.
  • configure.ac: Reflect changes above.
  • Property mode set to 100644
File size: 4.0 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/sdram.h
15include_HEADERS += include/coverhd.h
16
17EXTRA_DIST = start/start.S
18start$(LIB_VARIANT).$(OBJEXT): start/start.S
19        ${CCASCOMPILE} -DASM -o $@ -c $<
20
21project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
22
23dist_project_lib_DATA += startup/linkcmds startup/linkcmds.rom \
24    startup/linkcmds.rom2ram
25
26EXTRA_PROGRAMS += startup.rel
27CLEANFILES += startup.rel
28startup_rel_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
29    startup/bspstart.c ../../shared/bspclean.c ../../shared/sbrk.c \
30    ../../shared/bootcard.c ../../shared/main.c \
31    ../../shared/gnatinstallhandler.c
32startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
33startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
34
35EXTRA_PROGRAMS += startup_g.rel
36CLEANFILES += startup_g.rel
37startup_g_rel_SOURCES = $(startup_rel_SOURCES)
38startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
39startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
40
41noinst_DATA += startup$(LIB_VARIANT).rel
42
43EXTRA_PROGRAMS += console.rel
44CLEANFILES += console.rel
45console_rel_SOURCES = console/console.c
46console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
47console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49EXTRA_PROGRAMS += console_g.rel
50CLEANFILES += console_g.rel
51console_g_rel_SOURCES = $(console_rel_SOURCES)
52console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
53console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55noinst_DATA += console$(LIB_VARIANT).rel
56
57EXTRA_PROGRAMS += hw_init.rel
58CLEANFILES += hw_init.rel
59hw_init_rel_SOURCES = hw_init/hw_init.c
60hw_init_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
61hw_init_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63EXTRA_PROGRAMS += hw_init_g.rel
64CLEANFILES += hw_init_g.rel
65hw_init_g_rel_SOURCES = $(hw_init_rel_SOURCES)
66hw_init_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
67hw_init_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
68
69noinst_DATA += hw_init$(LIB_VARIANT).rel
70
71EXTRA_LIBRARIES = libbsp.a
72CLEANFILES += libbsp.a
73libbsp_a_SOURCES =
74libbsp_a_LIBADD = startup$(LIB_VARIANT).rel hw_init$(LIB_VARIANT).rel \
75    console$(LIB_VARIANT).rel
76libbsp_a_LIBADD += \
77    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/clock$(LIB_VARIANT).rel \
78    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/timer$(LIB_VARIANT).rel \
79    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/sci$(LIB_VARIANT).rel \
80    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/score$(LIB_VARIANT).rel
81
82EXTRA_LIBRARIES += libbsp_g.a
83CLEANFILES += libbsp_g.a
84libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
85libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
86
87noinst_DATA += libbsp$(LIB_VARIANT).a
88
89all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
90
91EXTRA_DIST += times
92
93PREINSTALL_DIRS =
94TMPINSTALL_FILES =
95
96$(PROJECT_INCLUDE)/sdram.h: include/sdram.h $(PROJECT_INCLUDE)/$(dirstamp)
97        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sdram.h
98PREINSTALL_FILES += $(PROJECT_INCLUDE)/sdram.h
99
100$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
101        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
102PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
103
104$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
105        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
106TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
107
108$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
109        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
110TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
111
112$(PROJECT_LIB)/linkcmds.rom: startup/linkcmds.rom $(PROJECT_LIB)/$(dirstamp)
113        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.rom
114TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds.rom
115
116$(PROJECT_LIB)/linkcmds.rom2ram: startup/linkcmds.rom2ram $(PROJECT_LIB)/$(dirstamp)
117        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.rom2ram
118TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds.rom2ram
119
120CLEANFILES += $(PREINSTALL_FILES)
121DISTCLEANFILES = $(PREINSTALL_DIRS)
122CLEANFILES += $(TMPINSTALL_FILES)
123
124include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.