source: rtems/c/src/lib/libbsp/i960/cvme961/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.2 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
14nodist_include_HEADERS += ../../shared/include/coverhd.h
15
16EXTRA_DIST = start/start.S
17start$(LIB_VARIANT).$(OBJEXT): start/start.S
18        $(CPPASCOMPILE) -DASM -o $@ -c $<
19project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
20
21dist_project_lib_DATA += startup/linkcmds
22
23EXTRA_PROGRAMS += startup.rel
24CLEANFILES += startup.rel
25startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
26    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
27    ../../shared/main.c ../../shared/sbrk.c startup/setvec.c \
28    ../../shared/gnatinstallhandler.c
29startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
30startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
31
32EXTRA_PROGRAMS += startup_g.rel
33CLEANFILES += startup_g.rel
34startup_g_rel_SOURCES = $(startup_rel_SOURCES)
35startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
36startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
37
38noinst_DATA += startup$(LIB_VARIANT).rel
39
40EXTRA_PROGRAMS += clock.rel
41CLEANFILES += clock.rel
42clock_rel_SOURCES = clock/ckinit.c
43clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
44clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
45
46EXTRA_PROGRAMS += clock_g.rel
47CLEANFILES += clock_g.rel
48clock_g_rel_SOURCES = $(clock_rel_SOURCES)
49clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
50clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
51
52noinst_DATA += clock$(LIB_VARIANT).rel
53
54EXTRA_PROGRAMS += console.rel
55CLEANFILES += console.rel
56console_rel_SOURCES = console/console.c
57console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
58console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
59
60EXTRA_PROGRAMS += console_g.rel
61CLEANFILES += console_g.rel
62console_g_rel_SOURCES = $(console_rel_SOURCES)
63console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
64console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
65
66noinst_DATA += console$(LIB_VARIANT).rel
67
68EXTRA_PROGRAMS += timer.rel
69CLEANFILES += timer.rel
70timer_rel_SOURCES = timer/timer.c timer/timerisr.S
71timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
72timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
73
74EXTRA_PROGRAMS += timer_g.rel
75CLEANFILES += timer_g.rel
76timer_g_rel_SOURCES = $(timer_rel_SOURCES)
77timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
78timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
79
80noinst_DATA += timer$(LIB_VARIANT).rel
81
82if HAS_MP
83EXTRA_PROGRAMS += shmsupp.rel
84CLEANFILES += shmsupp.rel
85shmsupp_rel_SOURCES = shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
86    shmsupp/mpisr.c
87shmsupp_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
88shmsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
89
90EXTRA_PROGRAMS += shmsupp_g.rel
91CLEANFILES += shmsupp_g.rel
92shmsupp_g_rel_SOURCES = $(shmsupp_rel_SOURCES)
93shmsupp_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
94shmsupp_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
95
96noinst_DATA += shmsupp$(LIB_VARIANT).rel
97endif
98
99EXTRA_LIBRARIES = libbsp.a
100CLEANFILES += libbsp.a
101libbsp_a_SOURCES =
102libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
103    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
104if HAS_MP
105libbsp_a_LIBADD += shmsupp$(LIB_VARIANT).rel
106endif
107libbsp_a_LIBADD += \
108    ../../../libcpu/@RTEMS_CPU@/i960ca/score$(LIB_VARIANT).rel
109
110EXTRA_LIBRARIES += libbsp_g.a
111CLEANFILES += libbsp_g.a
112libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
113libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
114
115noinst_DATA += libbsp$(LIB_VARIANT).a
116
117all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
118
119EXTRA_DIST += times
120
121PREINSTALL_DIRS =
122TMPINSTALL_FILES =
123
124$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
125        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
126PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
127
128$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
129        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
130TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
131
132$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
133        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
134TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
135
136CLEANFILES += $(PREINSTALL_FILES)
137DISTCLEANFILES = $(PREINSTALL_DIRS)
138CLEANFILES += $(TMPINSTALL_FILES)
139
140include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.