source: rtems/cpukit/libmisc/Makefile.am @ 53a8958

4.104.114.84.95
Last change on this file since 53a8958 was 53a8958, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2003 at 1:39:43 PM

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

  • Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
  • Property mode set to 100644
File size: 11.6 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) 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        @$(mkdir_p) $(PROJECT_INCLUDE)
312        @: > $(PROJECT_INCLUDE)/$(dirstamp)
313
314$(PROJECT_INCLUDE)/rtems/$(dirstamp):
315        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems
316        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
317
318$(PROJECT_INCLUDE)/rtems/capture.h: capture/capture.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
319        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/capture.h
320PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/capture.h
321
322$(PROJECT_INCLUDE)/rtems/capture-cli.h: capture/capture-cli.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
323        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/capture-cli.h
324PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/capture-cli.h
325
326$(PROJECT_INCLUDE)/rtems/cpuuse.h: cpuuse/cpuuse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
327        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cpuuse.h
328PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/cpuuse.h
329
330$(PROJECT_INCLUDE)/rtems/devnull.h: devnull/devnull.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
331        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/devnull.h
332PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/devnull.h
333
334$(PROJECT_INCLUDE)/rtems/dumpbuf.h: dumpbuf/dumpbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
335        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/dumpbuf.h
336PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/dumpbuf.h
337
338$(PROJECT_INCLUDE)/rtems/monitor.h: monitor/monitor.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
339        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/monitor.h
340PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/monitor.h
341
342$(PROJECT_INCLUDE)/rtems/mw_fb.h: mw-fb/mw_fb.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
343        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mw_fb.h
344PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mw_fb.h
345
346$(PROJECT_INCLUDE)/rtems/mw_uid.h: mw-fb/mw_uid.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
347        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mw_uid.h
348PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mw_uid.h
349
350if LIBSHELL
351$(PROJECT_INCLUDE)/rtems/shell.h: shell/shell.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
352        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/shell.h
353PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/shell.h
354endif
355
356$(PROJECT_INCLUDE)/rtems/rtmonuse.h: rtmonuse/rtmonuse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
357        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtmonuse.h
358PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtmonuse.h
359
360if LIBSERDBG
361$(PROJECT_INCLUDE)/serdbgcnf.h: serdbg/serdbgcnf.h $(PROJECT_INCLUDE)/$(dirstamp)
362        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/serdbgcnf.h
363PREINSTALL_FILES += $(PROJECT_INCLUDE)/serdbgcnf.h
364
365$(PROJECT_INCLUDE)/serdbg.h: serdbg/serdbg.h $(PROJECT_INCLUDE)/$(dirstamp)
366        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/serdbg.h
367PREINSTALL_FILES += $(PROJECT_INCLUDE)/serdbg.h
368
369$(PROJECT_INCLUDE)/termios_printk_cnf.h: serdbg/termios_printk_cnf.h $(PROJECT_INCLUDE)/$(dirstamp)
370        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/termios_printk_cnf.h
371PREINSTALL_FILES += $(PROJECT_INCLUDE)/termios_printk_cnf.h
372
373$(PROJECT_INCLUDE)/termios_printk.h: serdbg/termios_printk.h $(PROJECT_INCLUDE)/$(dirstamp)
374        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/termios_printk.h
375PREINSTALL_FILES += $(PROJECT_INCLUDE)/termios_printk.h
376endif
377
378$(PROJECT_INCLUDE)/rtems/stackchk.h: stackchk/stackchk.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
379        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/stackchk.h
380PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/stackchk.h
381
382$(PROJECT_INCLUDE)/rtems/untar.h: untar/untar.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
383        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/untar.h
384PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/untar.h
385
386$(PROJECT_INCLUDE)/rtems/fsmount.h: fsmount/fsmount.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
387        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fsmount.h
388PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fsmount.h
389
390include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.