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

4.104.114.84.95
Last change on this file since dfbb492 was dfbb492, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 11, 2004 at 5:54:47 AM

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

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