source: rtems/c/src/lib/libbsp/m68k/mvme167/Makefile.am @ 4cb9d26

4.104.114.84.9
Last change on this file since 4cb9d26 was 4cb9d26, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 6, 2004 at 8:01:14 AM

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

  • Makefile.am: Pickup files from ../../m68k/shared instead of ../shared. Reformat.
  • Property mode set to 100644
File size: 5.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
15include_HEADERS += include/page_table.h
16include_HEADERS += include/fatal.h
17
18nodist_include_HEADERS += $(top_srcdir)/../shared/mvme/mvme16x_hw.h
19
20EXTRA_DIST = ../../m68k/shared/start.S
21start$(LIB_VARIANT).$(OBJEXT): ../../m68k/shared/start.S
22        ${CCASCOMPILE} -DASM -o $@ -c $<
23
24project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
25
26dist_project_lib_DATA += startup/linkcmds
27
28EXTRA_PROGRAMS += startup.rel
29CLEANFILES += startup.rel
30startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
31    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
32    ../../m68k/shared/m68kpretaskinghook.c ../../shared/main.c \
33    startup/page_table.c ../../shared/sbrk.c ../../m68k/shared/setvec.c \
34    ../../shared/gnatinstallhandler.c
35startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
36startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
37
38EXTRA_PROGRAMS += startup_g.rel
39CLEANFILES += startup_g.rel
40startup_g_rel_SOURCES = $(startup_rel_SOURCES)
41startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
42startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
43
44noinst_DATA += startup$(LIB_VARIANT).rel
45
46EXTRA_PROGRAMS += clock.rel
47CLEANFILES += clock.rel
48clock_rel_SOURCES = clock/ckinit.c
49clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
50clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
51
52EXTRA_PROGRAMS += clock_g.rel
53CLEANFILES += clock_g.rel
54clock_g_rel_SOURCES = $(clock_rel_SOURCES)
55clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
56clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
57
58noinst_DATA += clock$(LIB_VARIANT).rel
59
60EXTRA_PROGRAMS += console.rel
61CLEANFILES += console.rel
62console_rel_SOURCES = console/console.c console/console-recording.h
63console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
64console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
65
66EXTRA_PROGRAMS += console_g.rel
67CLEANFILES += console_g.rel
68console_g_rel_SOURCES = $(console_rel_SOURCES)
69console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
70console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71
72noinst_DATA += console$(LIB_VARIANT).rel
73
74EXTRA_PROGRAMS += fatal.rel
75CLEANFILES += fatal.rel
76fatal_rel_SOURCES = fatal/bspfatal.c
77fatal_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
78fatal_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
79
80EXTRA_PROGRAMS += fatal_g.rel
81CLEANFILES += fatal_g.rel
82fatal_g_rel_SOURCES = $(fatal_rel_SOURCES)
83fatal_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
84fatal_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
85
86noinst_DATA += fatal$(LIB_VARIANT).rel
87
88EXTRA_PROGRAMS += timer.rel
89CLEANFILES += timer.rel
90timer_rel_SOURCES = timer/timer.c timer/timerisr.S
91timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
92timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
93
94EXTRA_PROGRAMS += timer_g.rel
95CLEANFILES += timer_g.rel
96timer_g_rel_SOURCES = $(timer_rel_SOURCES)
97timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
98timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99
100noinst_DATA += timer$(LIB_VARIANT).rel
101
102if HAS_NETWORKING
103network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
104EXTRA_PROGRAMS += network.rel
105CLEANFILES += network.rel
106network_rel_SOURCES = network/network.c
107network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
108    $(network_CPPFLAGS)
109network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
110
111EXTRA_PROGRAMS += network_g.rel
112CLEANFILES += network_g.rel
113network_g_rel_SOURCES = $(network_rel_SOURCES)
114network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
115    $(network_CPPFLAGS)
116network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
117
118noinst_DATA += network$(LIB_VARIANT).rel
119endif
120
121EXTRA_LIBRARIES = libbsp.a
122CLEANFILES += libbsp.a
123libbsp_a_SOURCES =
124libbsp_a_LIBADD = clock$(LIB_VARIANT).rel console$(LIB_VARIANT).rel \
125    fatal$(LIB_VARIANT).rel startup$(LIB_VARIANT).rel \
126    timer$(LIB_VARIANT).rel
127if HAS_NETWORKING
128libbsp_a_LIBADD += network$(LIB_VARIANT).rel
129endif
130libbsp_a_LIBADD += \
131    ../../../libcpu/@RTEMS_CPU@/shared/cache$(LIB_VARIANT).rel \
132    ../../../libcpu/@RTEMS_CPU@/shared/misc$(LIB_VARIANT).rel \
133    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/fpsp$(LIB_VARIANT).rel
134
135EXTRA_LIBRARIES += libbsp_g.a
136CLEANFILES += libbsp_g.a
137libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
138libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
139
140noinst_DATA += libbsp$(LIB_VARIANT).a
141
142all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
143
144EXTRA_DIST += times
145
146PREINSTALL_DIRS =
147TMPINSTALL_FILES =
148
149$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
150        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
151PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
152
153$(PROJECT_INCLUDE)/page_table.h: include/page_table.h $(PROJECT_INCLUDE)/$(dirstamp)
154        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/page_table.h
155PREINSTALL_FILES += $(PROJECT_INCLUDE)/page_table.h
156
157$(PROJECT_INCLUDE)/fatal.h: include/fatal.h $(PROJECT_INCLUDE)/$(dirstamp)
158        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/fatal.h
159PREINSTALL_FILES += $(PROJECT_INCLUDE)/fatal.h
160
161$(PROJECT_INCLUDE)/mvme16x_hw.h: $(top_srcdir)/../shared/mvme/mvme16x_hw.h $(PROJECT_INCLUDE)/$(dirstamp)
162        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mvme16x_hw.h
163PREINSTALL_FILES += $(PROJECT_INCLUDE)/mvme16x_hw.h
164
165$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
166        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
167TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
168
169$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
170        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
171TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
172
173CLEANFILES += $(PREINSTALL_FILES)
174DISTCLEANFILES = $(PREINSTALL_DIRS)
175CLEANFILES += $(TMPINSTALL_FILES)
176
177include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.