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

4.104.114.84.95
Last change on this file since e18080ab was e18080ab, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 27, 2005 at 6:42:37 AM

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

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