source: rtems/cpukit/libmisc/Makefile.am @ 6a17d376

4.104.114.84.95
Last change on this file since 6a17d376 was 6a17d376, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 11, 2003 at 3:56:01 PM

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

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