source: rtems/cpukit/libcsupport/Makefile.am @ a369ade

4.104.114.84.95
Last change on this file since a369ade was a369ade, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 7, 2005 at 6:05:49 AM

2005-01-07 Ralf Corsepius <ralf.corsepius@…>

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