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

4.104.114.84.95
Last change on this file since bceb652f was bceb652f, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 9, 2004 at 2:47:48 AM

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

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