source: rtems/cpukit/libcsupport/Makefile.am @ 8a2c179

4.104.114.84.95
Last change on this file since 8a2c179 was 8a2c179, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 14, 2004 at 5:21:56 AM

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

  • Makefile.am: Re-add dirstamps to PREINSTALL_FILES. Add PREINSTALL_FILES to CLEANFILES.
  • Property mode set to 100644
File size: 11.0 KB
Line 
1##
2##  $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8AM_CPPFLAGS += -I$(top_builddir)
9AM_CFLAGS += $(LIBC_DEFINES)
10
11EXTRA_LIBRARIES = libcsupport.a
12CLEANFILES = libcsupport.a
13libcsupport_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
14
15EXTRA_LIBRARIES += libcsupport_g.a
16CLEANFILES += libcsupport_g.a
17libcsupport_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
18
19include_HEADERS = include/chain.h include/console.h include/clockdrv.h \
20    include/iosupp.h include/ringbuf.h include/rtc.h include/spurious.h \
21    include/timerdrv.h include/vmeintr.h
22
23if NEED_STDINT_H
24include_HEADERS += include/stdint.h
25endif
26if NEED_INTTYPES_H
27include_HEADERS += include/inttypes.h
28endif
29
30## motorola
31
32include_motoroladir = $(includedir)/motorola
33
34include_motorola_HEADERS = include/motorola/mc68230.h \
35    include/motorola/mc68681.h
36
37## rtems
38include_rtemsdir = $(includedir)/rtems
39
40include_rtems_HEADERS = include/rtems/assoc.h include/rtems/error.h \
41    include/rtems/libcsupport.h include/rtems/libio.h include/rtems/libio_.h \
42    include/rtems/termiostypes.h include/rtems/cdefs.h
43
44## sys
45
46include_sysdir = $(includedir)/sys
47include_sys_HEADERS = include/sys/ioccom.h
48
49if NEWLIB
50# FIXME: We should not install to include/sys unless using newlib.
51include_sys_HEADERS += include/sys/filio.h include/sys/ioctl.h \
52    include/sys/sockio.h include/sys/ttycom.h
53include_sys_HEADERS += include/sys/termios.h include/sys/utsname.h
54endif
55
56if NEED_SYS_CDEFS_H
57include_sys_HEADERS += include/sys/cdefs.h
58endif
59
60## zilog
61
62include_zilogdir = $(includedir)/zilog
63
64include_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \
65    include/zilog/z8536.h
66
67##  General stuff
68all-local: $(PREINSTALL_FILES) libcsupport$(LIB_VARIANT).a
69
70ERROR_C_FILES = src/error.c
71
72ASSOCIATION_C_FILES = src/assoc.c src/assocnamebad.c
73
74BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \
75    src/libio_sockets.c src/eval.c src/fs_null_handlers.c src/privateenv.c
76
77TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c \
78    src/cfsetospeed.c src/tcgetattr.c src/tcsetattr.c src/tcdrain.c \
79    src/tcflow.c src/tcflush.c src/tcgetprgrp.c src/tcsendbreak.c \
80    src/tcsetpgrp.c src/termios.c src/termiosinitialize.c \
81    src/termiosreserveresources.c
82
83SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c \
84    src/lseek.c src/ioctl.c src/mkdir.c src/mknod.c src/mkfifo.c src/rmdir.c \
85    src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/chown.c src/link.c \
86    src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c \
87    src/fcntl.c src/fpathconf.c src/getdents.c src/fsync.c src/fdatasync.c \
88    src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c src/creat.c \
89    src/chroot.c src/sync.c
90
91DIRECTORY_SCAN_C_FILES = src/opendir.c src/closedir.c src/readdir.c \
92    src/readdir_r.c src/rewinddir.c src/scandir.c src/seekdir.c \
93    src/telldir.c src/getcwd.c
94
95ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \
96    src/getlogin.c src/getpgrp.c src/getpid.c src/getppid.c src/getuid.c \
97    src/setpgid.c src/setsid.c
98
99MALLOC_C_FILES = src/malloc.c src/mallocfreespace.c src/__brk.c \
100    src/__sbrk.c
101
102PASSWORD_GROUP_C_FILES = src/getpwent.c
103
104TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c src/isatty.c src/ttyname.c \
105    src/ttyname_r.c
106
107LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \
108    src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \
109    src/newlibc.c src/no_posix.c src/no_libc.c src/utsname.c
110
111BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c
112
113libcsupport_a_SOURCES = src/gxx_wrappers.c src/printk.c $(BSD_LIBC_C_FILES) \
114    $(BASE_FS_C_FILES) $(MALLOC_C_FILES) $(TERMIOS_C_FILES) $(ERROR_C_FILES) \
115    $(ASSOCIATION_C_FILES)
116
117if UNIX
118libcsupport_a_SOURCES += src/unixlibc.c src/hosterr.c
119else
120libcsupport_a_SOURCES += $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
121    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
122    $(DIRECTORY_SCAN_C_FILES) $(ID_C_FILES) src/envlock.c
123endif
124
125libcsupport_g_a_SOURCES = $(libcsupport_a_SOURCES)
126
127EXTRA_DIST = src/TODO src/CASES src/README
128EXTRA_DIST += $(UNUSED_FILES)
129
130PREINSTALL_FILES =
131
132$(PROJECT_INCLUDE)/$(dirstamp):
133        @$(mkdir_p) $(PROJECT_INCLUDE)
134        @: > $(PROJECT_INCLUDE)/$(dirstamp)
135PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
136
137$(PROJECT_INCLUDE)/chain.h: include/chain.h $(PROJECT_INCLUDE)/$(dirstamp)
138        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/chain.h
139PREINSTALL_FILES += $(PROJECT_INCLUDE)/chain.h
140
141$(PROJECT_INCLUDE)/console.h: include/console.h $(PROJECT_INCLUDE)/$(dirstamp)
142        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/console.h
143PREINSTALL_FILES += $(PROJECT_INCLUDE)/console.h
144
145$(PROJECT_INCLUDE)/clockdrv.h: include/clockdrv.h $(PROJECT_INCLUDE)/$(dirstamp)
146        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/clockdrv.h
147PREINSTALL_FILES += $(PROJECT_INCLUDE)/clockdrv.h
148
149$(PROJECT_INCLUDE)/iosupp.h: include/iosupp.h $(PROJECT_INCLUDE)/$(dirstamp)
150        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/iosupp.h
151PREINSTALL_FILES += $(PROJECT_INCLUDE)/iosupp.h
152
153$(PROJECT_INCLUDE)/ringbuf.h: include/ringbuf.h $(PROJECT_INCLUDE)/$(dirstamp)
154        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ringbuf.h
155PREINSTALL_FILES += $(PROJECT_INCLUDE)/ringbuf.h
156
157$(PROJECT_INCLUDE)/rtc.h: include/rtc.h $(PROJECT_INCLUDE)/$(dirstamp)
158        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtc.h
159PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtc.h
160
161$(PROJECT_INCLUDE)/spurious.h: include/spurious.h $(PROJECT_INCLUDE)/$(dirstamp)
162        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/spurious.h
163PREINSTALL_FILES += $(PROJECT_INCLUDE)/spurious.h
164
165$(PROJECT_INCLUDE)/timerdrv.h: include/timerdrv.h $(PROJECT_INCLUDE)/$(dirstamp)
166        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/timerdrv.h
167PREINSTALL_FILES += $(PROJECT_INCLUDE)/timerdrv.h
168
169$(PROJECT_INCLUDE)/vmeintr.h: include/vmeintr.h $(PROJECT_INCLUDE)/$(dirstamp)
170        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/vmeintr.h
171PREINSTALL_FILES += $(PROJECT_INCLUDE)/vmeintr.h
172
173if NEED_STDINT_H
174$(PROJECT_INCLUDE)/stdint.h: include/stdint.h $(PROJECT_INCLUDE)/$(dirstamp)
175        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/stdint.h
176PREINSTALL_FILES += $(PROJECT_INCLUDE)/stdint.h
177endif
178
179if NEED_INTTYPES_H
180$(PROJECT_INCLUDE)/inttypes.h: include/inttypes.h $(PROJECT_INCLUDE)/$(dirstamp)
181        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/inttypes.h
182PREINSTALL_FILES += $(PROJECT_INCLUDE)/inttypes.h
183endif
184
185$(PROJECT_INCLUDE)/motorola/$(dirstamp):
186        @$(mkdir_p) $(PROJECT_INCLUDE)/motorola
187        @: > $(PROJECT_INCLUDE)/motorola/$(dirstamp)
188PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola/$(dirstamp)
189
190$(PROJECT_INCLUDE)/motorola/mc68230.h: include/motorola/mc68230.h $(PROJECT_INCLUDE)/motorola/$(dirstamp)
191        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/motorola/mc68230.h
192PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola/mc68230.h
193
194$(PROJECT_INCLUDE)/motorola/mc68681.h: include/motorola/mc68681.h $(PROJECT_INCLUDE)/motorola/$(dirstamp)
195        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/motorola/mc68681.h
196PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola/mc68681.h
197
198$(PROJECT_INCLUDE)/rtems/$(dirstamp):
199        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems
200        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
201PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/$(dirstamp)
202
203$(PROJECT_INCLUDE)/rtems/assoc.h: include/rtems/assoc.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
204        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/assoc.h
205PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/assoc.h
206
207$(PROJECT_INCLUDE)/rtems/error.h: include/rtems/error.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
208        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/error.h
209PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/error.h
210
211$(PROJECT_INCLUDE)/rtems/libcsupport.h: include/rtems/libcsupport.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
212        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libcsupport.h
213PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libcsupport.h
214
215$(PROJECT_INCLUDE)/rtems/libio.h: include/rtems/libio.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
216        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libio.h
217PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libio.h
218
219$(PROJECT_INCLUDE)/rtems/libio_.h: include/rtems/libio_.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
220        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libio_.h
221PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libio_.h
222
223$(PROJECT_INCLUDE)/rtems/termiostypes.h: include/rtems/termiostypes.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
224        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/termiostypes.h
225PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/termiostypes.h
226
227$(PROJECT_INCLUDE)/rtems/cdefs.h: include/rtems/cdefs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
228        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cdefs.h
229PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/cdefs.h
230
231$(PROJECT_INCLUDE)/sys/$(dirstamp):
232        @$(mkdir_p) $(PROJECT_INCLUDE)/sys
233        @: > $(PROJECT_INCLUDE)/sys/$(dirstamp)
234PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/$(dirstamp)
235
236$(PROJECT_INCLUDE)/sys/ioccom.h: include/sys/ioccom.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
237        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ioccom.h
238PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ioccom.h
239
240if NEWLIB
241$(PROJECT_INCLUDE)/sys/filio.h: include/sys/filio.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
242        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/filio.h
243PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/filio.h
244
245$(PROJECT_INCLUDE)/sys/ioctl.h: include/sys/ioctl.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
246        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ioctl.h
247PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ioctl.h
248
249$(PROJECT_INCLUDE)/sys/sockio.h: include/sys/sockio.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
250        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/sockio.h
251PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/sockio.h
252
253$(PROJECT_INCLUDE)/sys/ttycom.h: include/sys/ttycom.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
254        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ttycom.h
255PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ttycom.h
256
257$(PROJECT_INCLUDE)/sys/termios.h: include/sys/termios.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
258        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/termios.h
259PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/termios.h
260
261$(PROJECT_INCLUDE)/sys/utsname.h: include/sys/utsname.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
262        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/utsname.h
263PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/utsname.h
264endif
265
266if NEED_SYS_CDEFS_H
267$(PROJECT_INCLUDE)/sys/cdefs.h: include/sys/cdefs.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
268        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/cdefs.h
269PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/cdefs.h
270endif
271
272$(PROJECT_INCLUDE)/zilog/$(dirstamp):
273        @$(mkdir_p) $(PROJECT_INCLUDE)/zilog
274        @: > $(PROJECT_INCLUDE)/zilog/$(dirstamp)
275PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/$(dirstamp)
276
277$(PROJECT_INCLUDE)/zilog/z8036.h: include/zilog/z8036.h $(PROJECT_INCLUDE)/zilog/$(dirstamp)
278        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/zilog/z8036.h
279PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/z8036.h
280
281$(PROJECT_INCLUDE)/zilog/z8530.h: include/zilog/z8530.h $(PROJECT_INCLUDE)/zilog/$(dirstamp)
282        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/zilog/z8530.h
283PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/z8530.h
284
285$(PROJECT_INCLUDE)/zilog/z8536.h: include/zilog/z8536.h $(PROJECT_INCLUDE)/zilog/$(dirstamp)
286        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/zilog/z8536.h
287PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/z8536.h
288
289CLEANFILES += $(PREINSTALL_FILES)
290
291include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.