source: rtems/cpukit/libmisc/Makefile.am @ 8d46f4f

4.104.114.84.95
Last change on this file since 8d46f4f was 8d46f4f, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 1, 2003 at 4:06:40 AM

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

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