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