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

4.104.114.84.95
Last change on this file since ab25c258 was ab25c258, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2003 at 10:38:32 AM

2003-12-12 Ralf Corsepius <corsepiu@…>

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