source: rtems/cpukit/libcsupport/Makefile.am @ 524f25ee

4.104.114.84.95
Last change on this file since 524f25ee was 524f25ee, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 8, 2004 at 5:15:33 AM

2004-04-08 Ralf Corsepius <ralf_corsepius@…>

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