source: rtems/cpukit/libmisc/Makefile.am @ 9e7e53bf

4.104.114.84.95
Last change on this file since 9e7e53bf was 9e7e53bf, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 30, 2003 at 8:01:23 AM

2003-11-30 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Add $(dirstamp) to preinstallation rules.
  • Property mode set to 100644
File size: 10.9 KB
Line 
1##
2##  $Id$
3##
4
5include $(top_srcdir)/automake/compile.am
6include $(top_srcdir)/automake/lib.am
7
8EXTRA_DIST = README
9
10AM_CPPFLAGS += -I$(top_builddir)
11
12include_rtemsdir = $(includedir)/rtems
13include_HEADERS =
14include_rtems_HEADERS =
15noinst_HEADERS =
16
17## capture
18
19libcapture_C_FILES = capture/capture.c capture/capture-cli.c
20libcapture_OBJS = $(C_FILES:capture/%.c=capture/$(ARCH)/%.$(OBJEXT))
21
22include_rtems_HEADERS += capture/capture.h capture/capture-cli.h
23
24capture/$(ARCH):
25        @$(mkinstalldirs) $@
26capture/$(ARCH)/%.$(OBJEXT): capture/%.c
27        ${COMPILE} -o $@ -c $<
28capture/$(ARCH)/libcapture.a: $(libcapture_OBJS)
29        $(make-library)
30
31LIBS += capture/$(ARCH) capture/$(ARCH)/libcapture.a
32
33EXTRA_DIST += capture/README capture/capture.c capture/capture-cli.c
34
35## cpuuse
36
37libcpuuse_C_FILES = cpuuse/cpuuse.c
38libcpuuse_OBJS = $(libcpuuse_C_FILES:cpuuse/%.c=cpuuse/$(ARCH)/%.$(OBJEXT))
39
40include_rtems_HEADERS += cpuuse/cpuuse.h
41
42cpuuse/$(ARCH):
43        @$(mkinstalldirs) $@
44cpuuse/$(ARCH)/%.$(OBJEXT): cpuuse/%.c
45        ${COMPILE} -o $@ -c $<
46cpuuse/$(ARCH)/libcpuuse.a: $(libcpuuse_OBJS)
47        $(make-library)
48
49LIBS += cpuuse/$(ARCH) cpuuse/$(ARCH)/libcpuuse.a
50EXTRA_DIST += cpuuse/README cpuuse/cpuuse.c
51
52## devnull
53
54libdevnull_C_FILES = devnull/devnull.c
55libdevnull_OBJS = \
56    $(libdevnull_C_FILES:devnull/%.c=devnull/$(ARCH)/%.$(OBJEXT))
57
58include_rtems_HEADERS += devnull/devnull.h
59
60devnull/$(ARCH):
61        @$(mkinstalldirs) $@
62devnull/$(ARCH)/%.$(OBJEXT): devnull/%.c
63        ${COMPILE} -o $@ -c $<
64devnull/$(ARCH)/libdevnull.a: $(libdevnull_OBJS)
65        $(make-library)
66
67LIBS += devnull/$(ARCH) devnull/$(ARCH)/libdevnull.a
68
69EXTRA_DIST += devnull/devnull.c
70
71## dummy
72
73libdummy_C_FILES = dummy/dummy.c
74libdummy_OBJS = $(libdummy_C_FILES:dummy/%.c=dummy/$(ARCH)/%.$(OBJEXT))
75
76dummy/$(ARCH):
77        @$(mkinstalldirs) $@
78dummy/$(ARCH)/%.$(OBJEXT): dummy/%.c
79        ${COMPILE} -o $@ -c $<
80dummy/$(ARCH)/libdummy.a: $(libdummy_OBJS)
81        $(make-library)
82
83LIBS += dummy/$(ARCH) dummy/$(ARCH)/libdummy.a
84
85EXTRA_DIST += dummy/README dummy/dummy.c
86
87## dumpbuf
88
89libdumpbuf_C_FILES = dumpbuf/dumpbuf.c
90libdumpbuf_OBJS = \
91    $(libdumpbuf_C_FILES:dumpbuf/%.c=dumpbuf/$(ARCH)/%.$(OBJEXT))
92
93include_rtems_HEADERS += dumpbuf/dumpbuf.h
94
95dumpbuf/$(ARCH):
96        @$(mkinstalldirs) $@
97dumpbuf/$(ARCH)/%.$(OBJEXT): dumpbuf/%.c
98        ${COMPILE} -o $@ -c $<
99dumpbuf/$(ARCH)/libdumpbuf.a: $(libdumpbuf_OBJS)
100        $(make-library)
101
102LIBS += dumpbuf/$(ARCH) dumpbuf/$(ARCH)/libdumpbuf.a
103
104EXTRA_DIST += dumpbuf/dumpbuf.c
105
106## monitor
107
108# We only build multiprocessing related files if HAS_MP was defined
109libmonitor_MP_C_FILES = monitor/mon-mpci.c
110
111libmonitor_C_FILES = monitor/mon-command.c monitor/mon-symbols.c \
112    monitor/mon-prmisc.c monitor/mon-monitor.c monitor/mon-object.c \
113    monitor/mon-server.c monitor/mon-task.c monitor/mon-queue.c \
114    monitor/mon-driver.c monitor/mon-dname.c monitor/mon-itask.c \
115    monitor/mon-extension.c monitor/mon-manager.c monitor/mon-config.c
116
117libmonitor_OBJS = \
118    $(libmonitor_C_FILES:monitor/%.c=monitor/$(ARCH)/%.$(OBJEXT))
119if HAS_MP
120libmonitor_OBJS += \
121    $(libmonitor_MP_C_FILES:monitor/%.c=monitor/$(ARCH)/%.$(OBJEXT))
122endif
123
124include_rtems_HEADERS += monitor/monitor.h
125
126noinst_HEADERS += monitor/symbols.h
127
128monitor/$(ARCH):
129        @$(mkinstalldirs) $@
130monitor/$(ARCH)/%.$(OBJEXT): monitor/%.c
131        ${COMPILE} -o $@ -c $<
132monitor/$(ARCH)/libmonitor.a: $(libmonitor_OBJS)
133        $(make-library)
134
135LIBS += monitor/$(ARCH) monitor/$(ARCH)/libmonitor.a
136
137EXTRA_DIST += monitor/README monitor/mon-command.c monitor/mon-config.c \
138    monitor/mon-dname.c monitor/mon-driver.c monitor/mon-extension.c \
139    monitor/mon-itask.c monitor/mon-manager.c monitor/mon-monitor.c \
140    monitor/mon-mpci.c monitor/mon-object.c monitor/mon-prmisc.c \
141    monitor/mon-queue.c monitor/mon-server.c monitor/mon-symbols.c \
142    monitor/mon-task.c
143
144## mw-fb
145
146libmw_fb_C_FILES = mw-fb/mw_fb.c mw-fb/mw_uid.c
147libmw_fb_OBJS = $(libmw_fb_C_FILES:mw-fb/%.c=mw-fb/${ARCH}/%.$(OBJEXT))
148
149include_rtems_HEADERS += mw-fb/mw_fb.h mw-fb/mw_uid.h
150
151mw-fb/$(ARCH):
152        @$(mkinstalldirs) $@
153mw-fb/$(ARCH)/%.$(OBJEXT): mw-fb/%.c
154        ${COMPILE} -o $@ -c $<
155mw-fb/$(ARCH)/libmw-fb.a: $(libmw_fb_OBJS)
156        $(make-library)
157
158LIBS += mw-fb/$(ARCH) mw-fb/$(ARCH)/libmw-fb.a
159
160EXTRA_DIST += $(libmw_fb_C_FILES)
161
162## shell
163
164libshell_C_FILES = shell/cmds.c shell/shell.c
165libshell_OBJS = $(libshell_C_FILES:shell/%.c=shell/$(ARCH)/%.$(OBJEXT))
166
167if LIBSHELL
168include_rtems_HEADERS += shell/shell.h
169endif
170
171shell/$(ARCH):
172        @$(mkinstalldirs) $@
173shell/$(ARCH)/%.$(OBJEXT): shell/%.c
174        ${COMPILE} -o $@ -c $<
175shell/$(ARCH)/libshell.a: $(libshell_OBJS)
176        $(make-library)
177
178if LIBSHELL
179LIBS += shell/$(ARCH) shell/$(ARCH)/libshell.a
180endif
181
182EXTRA_DIST += shell/README shell/shell.c shell/cmds.c
183
184## rtmonuse
185
186librtmonuse_C_FILES = rtmonuse/rtmonuse.c
187librtmonuse_OBJS = \
188    $(librtmonuse_C_FILES:rtmonuse/%.c=rtmonuse/$(ARCH)/%.$(OBJEXT))
189
190include_rtems_HEADERS += rtmonuse/rtmonuse.h
191
192rtmonuse/$(ARCH):
193        @$(mkinstalldirs) $@
194rtmonuse/$(ARCH)/%.$(OBJEXT): rtmonuse/%.c
195        ${COMPILE} -o $@ -c $<
196rtmonuse/$(ARCH)/librtmonuse.a: $(librtmonuse_OBJS)
197        $(make-library)
198
199LIBS += rtmonuse/$(ARCH) rtmonuse/$(ARCH)/librtmonuse.a
200
201EXTRA_DIST += rtmonuse/rtmonuse.c
202
203## serdbg
204
205libserdbg_C_FILES = serdbg/serdbg.c serdbg/serdbgio.c \
206    serdbg/termios_printk.c
207libserdbg_OBJS = $(libserdbg_C_FILES:serdbg/%.c=serdbg/$(ARCH)/%.$(OBJEXT))
208
209if LIBSERDBG
210include_HEADERS += serdbg/serdbgcnf.h serdbg/serdbg.h \
211    serdbg/termios_printk_cnf.h serdbg/termios_printk.h
212endif
213
214serdbg/$(ARCH):
215        @$(mkinstalldirs) $@
216serdbg/$(ARCH)/%.$(OBJEXT): serdbg/%.c
217        ${COMPILE} -o $@ -c $<
218serdbg/$(ARCH)/libserdbg.a: $(libserdbg_OBJS)
219        $(make-library)
220
221if LIBSERDBG
222LIBS += serdbg/$(ARCH) serdbg/$(ARCH)/libserdbg.a
223endif
224
225EXTRA_DIST += serdbg/README serdbg/serdbg.c serdbg/serdbgio.c \
226    serdbg/serdbgcnf.h serdbg/serdbg.h serdbg/termios_printk.c \
227    serdbg/termios_printk.h serdbg/termios_printk_cnf.h
228
229## stackchk
230
231libstackchk_C_FILES = stackchk/check.c
232libstackchk_OBJS = \
233    $(libstackchk_C_FILES:stackchk/%.c=stackchk/$(ARCH)/%.$(OBJEXT))
234
235include_rtems_HEADERS += stackchk/stackchk.h
236
237noinst_HEADERS += stackchk/internal.h
238
239stackchk/$(ARCH):
240        @$(mkinstalldirs) $@
241stackchk/$(ARCH)/%.$(OBJEXT): stackchk/%.c
242        ${COMPILE} -o $@ -c $<
243stackchk/$(ARCH)/libstackchk.a: $(libstackchk_OBJS)
244        $(make-library)
245
246LIBS += stackchk/$(ARCH) stackchk/$(ARCH)/libstackchk.a
247
248EXTRA_DIST += stackchk/README stackchk/check.c
249
250## libuntar
251
252libuntar_C_FILES = untar/untar.c
253libuntar_OBJS = $(libuntar_C_FILES:untar/%.c=untar/$(ARCH)/%.$(OBJEXT))
254
255include_rtems_HEADERS += untar/untar.h
256
257untar/$(ARCH):
258        @$(mkinstalldirs) $@
259untar/$(ARCH)/%.$(OBJEXT): untar/%.c
260        ${COMPILE} -o $@ -c $<
261untar/$(ARCH)/libuntar.a: $(libuntar_OBJS)
262        $(make-library)
263
264LIBS += untar/$(ARCH) untar/$(ARCH)/libuntar.a
265
266EXTRA_DIST += untar/README untar/untar.c
267
268## fsmount
269
270libfsmount_C_FILES = fsmount/fsmount.c
271libfsmount_OBJS = \
272    $(libfsmount_C_FILES:fsmount/%.c=fsmount/$(ARCH)/%.$(OBJEXT))
273
274include_rtems_HEADERS += fsmount/fsmount.h
275
276fsmount/$(ARCH):
277        @$(mkinstalldirs) $@
278fsmount/$(ARCH)/%.$(OBJEXT): fsmount/%.c
279        ${COMPILE} -o $@ -c $<
280fsmount/$(ARCH)/libfsmount.a: $(libfsmount_OBJS)
281        $(make-library)
282
283LIBS += fsmount/$(ARCH) fsmount/$(ARCH)/libfsmount.a
284
285EXTRA_DIST += fsmount/README fsmount/fsmount.c
286
287## ---
288
289all-local: $(LIBS)
290.PRECIOUS: $(LIBS)
291
292CLEANDIRS = */$(ARCH)
293
294PREINSTALL_FILES =
295
296$(PROJECT_INCLUDE)/$(dirstamp):
297        @$(mkinstalldirs) $(PROJECT_INCLUDE)
298        @: > $(PROJECT_INCLUDE)/$(dirstamp)
299PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
300
301$(PROJECT_INCLUDE)/rtems/$(dirstamp):
302        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems
303        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
304PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/$(dirstamp)
305
306$(PROJECT_INCLUDE)/rtems/capture.h: capture/capture.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
307        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/capture.h
308PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/capture.h
309
310$(PROJECT_INCLUDE)/rtems/capture-cli.h: capture/capture-cli.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
311        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/capture-cli.h
312PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/capture-cli.h
313
314$(PROJECT_INCLUDE)/rtems/cpuuse.h: cpuuse/cpuuse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
315        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cpuuse.h
316PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/cpuuse.h
317
318$(PROJECT_INCLUDE)/rtems/devnull.h: devnull/devnull.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
319        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/devnull.h
320PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/devnull.h
321
322$(PROJECT_INCLUDE)/rtems/dumpbuf.h: dumpbuf/dumpbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
323        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/dumpbuf.h
324PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/dumpbuf.h
325
326$(PROJECT_INCLUDE)/rtems/monitor.h: monitor/monitor.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
327        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/monitor.h
328PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/monitor.h
329
330$(PROJECT_INCLUDE)/rtems/mw_fb.h: mw-fb/mw_fb.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
331        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mw_fb.h
332PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mw_fb.h
333
334$(PROJECT_INCLUDE)/rtems/mw_uid.h: mw-fb/mw_uid.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
335        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mw_uid.h
336PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mw_uid.h
337
338if LIBSHELL
339$(PROJECT_INCLUDE)/rtems/shell.h: shell/shell.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
340        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/shell.h
341PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/shell.h
342endif
343
344$(PROJECT_INCLUDE)/rtems/rtmonuse.h: rtmonuse/rtmonuse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
345        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtmonuse.h
346PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtmonuse.h
347
348if LIBSERDBG
349$(PROJECT_INCLUDE)/serdbgcnf.h: serdbg/serdbgcnf.h $(PROJECT_INCLUDE)/$(dirstamp)
350        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/serdbgcnf.h
351PREINSTALL_FILES += $(PROJECT_INCLUDE)/serdbgcnf.h
352
353$(PROJECT_INCLUDE)/serdbg.h: serdbg/serdbg.h $(PROJECT_INCLUDE)/$(dirstamp)
354        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/serdbg.h
355PREINSTALL_FILES += $(PROJECT_INCLUDE)/serdbg.h
356
357$(PROJECT_INCLUDE)/termios_printk_cnf.h: serdbg/termios_printk_cnf.h $(PROJECT_INCLUDE)/$(dirstamp)
358        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/termios_printk_cnf.h
359PREINSTALL_FILES += $(PROJECT_INCLUDE)/termios_printk_cnf.h
360
361$(PROJECT_INCLUDE)/termios_printk.h: serdbg/termios_printk.h $(PROJECT_INCLUDE)/$(dirstamp)
362        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/termios_printk.h
363PREINSTALL_FILES += $(PROJECT_INCLUDE)/termios_printk.h
364endif
365
366$(PROJECT_INCLUDE)/rtems/stackchk.h: stackchk/stackchk.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
367        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/stackchk.h
368PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/stackchk.h
369
370$(PROJECT_INCLUDE)/rtems/untar.h: untar/untar.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
371        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/untar.h
372PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/untar.h
373
374$(PROJECT_INCLUDE)/rtems/fsmount.h: fsmount/fsmount.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
375        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fsmount.h
376PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fsmount.h
377
378include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.