source: rtems/cpukit/libmisc/Makefile.am @ b71e8d0

4.104.114.84.95
Last change on this file since b71e8d0 was b71e8d0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 9, 2004 at 6:22:16 PM

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

  • Makefile.am: Add libs to CLEANFILES Set lib*_g_a_SOURCES = lib*_a_SOURCES.
  • Property mode set to 100644
File size: 10.6 KB
Line 
1##
2##  $Id$
3##
4
5include $(top_srcdir)/automake/amcompile.am
6
7EXTRA_DIST = README
8
9AM_CPPFLAGS += -I$(top_builddir)
10
11include_rtemsdir = $(includedir)/rtems
12include_HEADERS =
13include_rtems_HEADERS =
14EXTRA_LIBRARIES =
15TMP_LIBS =
16CLEANFILES =
17
18## capture
19
20libcapture_C_FILES = capture/capture.c capture/capture-cli.c
21include_rtems_HEADERS += capture/capture.h capture/capture-cli.h
22
23EXTRA_LIBRARIES += libcapture.a
24CLEANFILES += libcapture.a
25libcapture_a_SOURCES = $(libcapture_C_FILES)
26libcapture_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
27
28EXTRA_LIBRARIES += libcapture_g.a
29CLEANFILES += libcapture_g.a
30libcapture_g_a_SOURCES = $(libcapture_a_SOURCES)
31libcapture_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
32
33TMP_LIBS += libcapture$(LIB_VARIANT).a
34
35## cpuuse
36libcpuuse_C_FILES = cpuuse/cpuuse.c
37include_rtems_HEADERS += cpuuse/cpuuse.h
38
39EXTRA_LIBRARIES += libcpuuse.a
40CLEANFILES += libcpuuse.a
41libcpuuse_a_SOURCES = $(libcpuuse_C_FILES)
42libcpuuse_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
43
44EXTRA_LIBRARIES += libcpuuse_g.a
45CLEANFILES += libcpuuse_g.a
46libcpuuse_g_a_SOURCES = $(libcpuuse_a_SOURCES)
47libcpuuse_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
48
49TMP_LIBS += libcpuuse$(LIB_VARIANT).a
50
51## devnull
52libdevnull_C_FILES = devnull/devnull.c
53include_rtems_HEADERS += devnull/devnull.h
54
55EXTRA_LIBRARIES += libdevnull.a
56CLEANFILES += libdevnull.a
57libdevnull_a_SOURCES = $(libdevnull_C_FILES)
58libdevnull_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
59
60EXTRA_LIBRARIES += libdevnull_g.a
61CLEANFILES += libdevnull_g.a
62libdevnull_g_a_SOURCES = $(libdevnull_a_SOURCES)
63libdevnull_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
64
65TMP_LIBS += libdevnull$(LIB_VARIANT).a
66
67## dummy
68libdummy_C_FILES = dummy/dummy.c
69EXTRA_DIST += dummy/README
70
71EXTRA_LIBRARIES += libdummy.a
72CLEANFILES += libdummy.a
73libdummy_a_SOURCES = $(libdummy_C_FILES)
74libdummy_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
75
76EXTRA_LIBRARIES += libdummy_g.a
77CLEANFILES += libdummy_g.a
78libdummy_g_a_SOURCES = $(libdummy_a_SOURCES)
79libdummy_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
80
81TMP_LIBS += libdummy$(LIB_VARIANT).a
82
83## dumpbuf
84libdumpbuf_C_FILES = dumpbuf/dumpbuf.c
85include_rtems_HEADERS += dumpbuf/dumpbuf.h
86
87EXTRA_LIBRARIES += libdumpbuf.a
88CLEANFILES += libdumpbuf.a
89libdumpbuf_a_SOURCES = $(libdumpbuf_C_FILES)
90libdumpbuf_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
91
92EXTRA_LIBRARIES += libdumpbuf_g.a
93CLEANFILES += libdumpbuf_g.a
94libdumpbuf_g_a_SOURCES = $(libdumpbuf_a_SOURCES)
95libdumpbuf_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
96
97TMP_LIBS += libdumpbuf$(LIB_VARIANT).a
98
99## monitor
100
101include_rtems_HEADERS += monitor/monitor.h
102libmonitor_C_FILES = monitor/mon-command.c monitor/mon-symbols.c \
103    monitor/mon-prmisc.c monitor/mon-monitor.c monitor/mon-object.c \
104    monitor/mon-server.c monitor/mon-task.c monitor/mon-queue.c \
105    monitor/mon-driver.c monitor/mon-dname.c monitor/mon-itask.c \
106    monitor/mon-extension.c monitor/mon-manager.c monitor/mon-config.c \
107    monitor/symbols.h
108if HAS_MP
109libmonitor_C_FILES += monitor/mon-mpci.c
110endif
111
112EXTRA_LIBRARIES += libmonitor.a
113CLEANFILES += libmonitor.a
114libmonitor_a_SOURCES = $(libmonitor_C_FILES)
115libmonitor_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
116
117EXTRA_LIBRARIES += libmonitor_g.a
118CLEANFILES += libmonitor_g.a
119libmonitor_g_a_SOURCES = $(libmonitor_a_SOURCES)
120libmonitor_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
121
122EXTRA_DIST += monitor/README
123
124TMP_LIBS += libmonitor$(LIB_VARIANT).a
125
126## mw-fb
127libmw_fb_C_FILES = mw-fb/mw_fb.c mw-fb/mw_uid.c
128include_rtems_HEADERS += mw-fb/mw_fb.h mw-fb/mw_uid.h
129
130EXTRA_LIBRARIES += libmw-fb.a
131CLEANFILES += libmw-fb.a
132libmw_fb_a_SOURCES = $(libmw_fb_C_FILES)
133libmw_fb_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
134
135EXTRA_LIBRARIES += libmw-fb_g.a
136CLEANFILES += libmw-fb_g.a
137libmw_fb_g_a_SOURCES = $(libmw_fb_a_SOURCES)
138libmw_fb_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
139
140TMP_LIBS += libmw-fb$(LIB_VARIANT).a
141
142## shell
143
144if LIBSHELL
145include_rtems_HEADERS += shell/shell.h
146libshell_C_FILES = shell/cmds.c shell/shell.c
147
148EXTRA_LIBRARIES += libshell.a
149CLEANFILES += libshell.a
150libshell_a_SOURCES = $(libshell_C_FILES)
151libshell_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
152
153EXTRA_LIBRARIES += libshell_g.a
154CLEANFILES += libshell_g.a
155libshell_g_a_SOURCES = $(libshell_a_SOURCES)
156libshell_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
157
158TMP_LIBS += libshell$(LIB_VARIANT).a
159endif
160
161EXTRA_DIST += shell/README
162
163## rtmonuse
164librtmonuse_C_FILES = rtmonuse/rtmonuse.c
165include_rtems_HEADERS += rtmonuse/rtmonuse.h
166
167EXTRA_LIBRARIES += librtmonuse.a
168CLEANFILES += librtmonuse.a
169librtmonuse_a_SOURCES = $(librtmonuse_C_FILES)
170librtmonuse_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
171
172EXTRA_LIBRARIES += librtmonuse_g.a
173CLEANFILES += librtmonuse_g.a
174librtmonuse_g_a_SOURCES = $(librtmonuse_a_SOURCES)
175librtmonuse_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
176
177TMP_LIBS += librtmonuse$(LIB_VARIANT).a
178
179## serdbg
180
181if LIBSERDBG
182include_HEADERS += serdbg/serdbgcnf.h serdbg/serdbg.h \
183    serdbg/termios_printk_cnf.h serdbg/termios_printk.h
184libserdbg_C_FILES = serdbg/serdbg.c serdbg/serdbgio.c \
185    serdbg/termios_printk.c
186
187EXTRA_LIBRARIES += libserdbg.a
188CLEANFILES += libserdbg.a
189libserdbg_a_SOURCES = $(libserdbg_C_FILES)
190libserdbg_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
191
192EXTRA_LIBRARIES += libserdbg_g.a
193CLEANFILES += libserdbg_g.a
194libserdbg_g_a_SOURCES = $(libserdbg_a_SOURCES)
195libserdbg_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
196
197TMP_LIBS += libserdbg$(LIB_VARIANT).a
198endif
199
200EXTRA_DIST += serdbg/README
201
202## stackchk
203
204include_rtems_HEADERS += stackchk/stackchk.h
205libstackchk_C_FILES = stackchk/check.c stackchk/internal.h
206
207EXTRA_LIBRARIES += libstackchk.a
208CLEANFILES += libstackchk.a
209libstackchk_a_SOURCES = $(libstackchk_C_FILES)
210libstackchk_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
211
212EXTRA_LIBRARIES += libstackchk_g.a
213CLEANFILES += libstackchk_g.a
214libstackchk_g_a_SOURCES = $(libstackchk_a_SOURCES)
215libstackchk_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
216
217TMP_LIBS += libstackchk$(LIB_VARIANT).a
218EXTRA_DIST += stackchk/README
219
220## libuntar
221
222include_rtems_HEADERS += untar/untar.h
223libuntar_C_FILES = untar/untar.c
224
225EXTRA_LIBRARIES += libuntar.a
226CLEANFILES += libuntar.a
227libuntar_a_SOURCES = $(libuntar_C_FILES)
228libuntar_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
229
230EXTRA_LIBRARIES += libuntar_g.a
231CLEANFILES += libuntar_g.a
232libuntar_g_a_SOURCES = $(libuntar_a_SOURCES)
233libuntar_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
234
235TMP_LIBS += libuntar$(LIB_VARIANT).a
236
237EXTRA_DIST += untar/README
238
239## fsmount
240libfsmount_C_FILES = fsmount/fsmount.c
241include_rtems_HEADERS += fsmount/fsmount.h
242
243EXTRA_LIBRARIES += libfsmount.a
244CLEANFILES += libfsmount.a
245libfsmount_a_SOURCES = $(libfsmount_C_FILES)
246libfsmount_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
247
248EXTRA_LIBRARIES += libfsmount_g.a
249CLEANFILES += libfsmount_g.a
250libfsmount_g_a_SOURCES = $(libfsmount_a_SOURCES)
251libfsmount_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
252
253TMP_LIBS += libfsmount$(LIB_VARIANT).a
254
255EXTRA_DIST += fsmount/README
256
257## ---
258
259all-local: $(PREINSTALL_FILES) $(TMP_LIBS)
260
261PREINSTALL_FILES =
262
263$(PROJECT_INCLUDE)/$(dirstamp):
264        @$(mkdir_p) $(PROJECT_INCLUDE)
265        @: > $(PROJECT_INCLUDE)/$(dirstamp)
266
267$(PROJECT_INCLUDE)/rtems/$(dirstamp):
268        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems
269        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
270
271$(PROJECT_INCLUDE)/rtems/capture.h: capture/capture.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
272        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/capture.h
273PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/capture.h
274
275$(PROJECT_INCLUDE)/rtems/capture-cli.h: capture/capture-cli.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
276        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/capture-cli.h
277PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/capture-cli.h
278
279$(PROJECT_INCLUDE)/rtems/cpuuse.h: cpuuse/cpuuse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
280        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cpuuse.h
281PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/cpuuse.h
282
283$(PROJECT_INCLUDE)/rtems/devnull.h: devnull/devnull.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
284        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/devnull.h
285PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/devnull.h
286
287$(PROJECT_INCLUDE)/rtems/dumpbuf.h: dumpbuf/dumpbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
288        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/dumpbuf.h
289PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/dumpbuf.h
290
291$(PROJECT_INCLUDE)/rtems/monitor.h: monitor/monitor.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
292        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/monitor.h
293PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/monitor.h
294
295$(PROJECT_INCLUDE)/rtems/mw_fb.h: mw-fb/mw_fb.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
296        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mw_fb.h
297PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mw_fb.h
298
299$(PROJECT_INCLUDE)/rtems/mw_uid.h: mw-fb/mw_uid.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
300        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mw_uid.h
301PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mw_uid.h
302
303if LIBSHELL
304$(PROJECT_INCLUDE)/rtems/shell.h: shell/shell.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
305        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/shell.h
306PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/shell.h
307endif
308
309$(PROJECT_INCLUDE)/rtems/rtmonuse.h: rtmonuse/rtmonuse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
310        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtmonuse.h
311PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtmonuse.h
312
313if LIBSERDBG
314$(PROJECT_INCLUDE)/serdbgcnf.h: serdbg/serdbgcnf.h $(PROJECT_INCLUDE)/$(dirstamp)
315        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/serdbgcnf.h
316PREINSTALL_FILES += $(PROJECT_INCLUDE)/serdbgcnf.h
317
318$(PROJECT_INCLUDE)/serdbg.h: serdbg/serdbg.h $(PROJECT_INCLUDE)/$(dirstamp)
319        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/serdbg.h
320PREINSTALL_FILES += $(PROJECT_INCLUDE)/serdbg.h
321
322$(PROJECT_INCLUDE)/termios_printk_cnf.h: serdbg/termios_printk_cnf.h $(PROJECT_INCLUDE)/$(dirstamp)
323        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/termios_printk_cnf.h
324PREINSTALL_FILES += $(PROJECT_INCLUDE)/termios_printk_cnf.h
325
326$(PROJECT_INCLUDE)/termios_printk.h: serdbg/termios_printk.h $(PROJECT_INCLUDE)/$(dirstamp)
327        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/termios_printk.h
328PREINSTALL_FILES += $(PROJECT_INCLUDE)/termios_printk.h
329endif
330
331$(PROJECT_INCLUDE)/rtems/stackchk.h: stackchk/stackchk.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
332        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/stackchk.h
333PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/stackchk.h
334
335$(PROJECT_INCLUDE)/rtems/untar.h: untar/untar.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
336        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/untar.h
337PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/untar.h
338
339$(PROJECT_INCLUDE)/rtems/fsmount.h: fsmount/fsmount.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
340        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fsmount.h
341PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fsmount.h
342
343include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.