source: rtems/cpukit/libcsupport/Makefile.am @ 0998f21

4.104.114.84.95
Last change on this file since 0998f21 was 0998f21, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 1, 2003 at 4:04:54 AM

2003-11-30 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Add $(dirstamp) to compilation rules.
  • Property mode set to 100644
File size: 11.1 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
146BUILT_SOURCES = $(PREINSTALL_FILES)
147
148PREINSTALL_FILES =
149
150$(PROJECT_INCLUDE)/$(dirstamp):
151        @$(mkinstalldirs) $(PROJECT_INCLUDE)
152        @: > $(PROJECT_INCLUDE)/$(dirstamp)
153PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
154
155$(PROJECT_INCLUDE)/chain.h: include/chain.h $(PROJECT_INCLUDE)/$(dirstamp)
156        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/chain.h
157PREINSTALL_FILES += $(PROJECT_INCLUDE)/chain.h
158
159$(PROJECT_INCLUDE)/console.h: include/console.h $(PROJECT_INCLUDE)/$(dirstamp)
160        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/console.h
161PREINSTALL_FILES += $(PROJECT_INCLUDE)/console.h
162
163$(PROJECT_INCLUDE)/clockdrv.h: include/clockdrv.h $(PROJECT_INCLUDE)/$(dirstamp)
164        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/clockdrv.h
165PREINSTALL_FILES += $(PROJECT_INCLUDE)/clockdrv.h
166
167$(PROJECT_INCLUDE)/iosupp.h: include/iosupp.h $(PROJECT_INCLUDE)/$(dirstamp)
168        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/iosupp.h
169PREINSTALL_FILES += $(PROJECT_INCLUDE)/iosupp.h
170
171$(PROJECT_INCLUDE)/ringbuf.h: include/ringbuf.h $(PROJECT_INCLUDE)/$(dirstamp)
172        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ringbuf.h
173PREINSTALL_FILES += $(PROJECT_INCLUDE)/ringbuf.h
174
175$(PROJECT_INCLUDE)/rtc.h: include/rtc.h $(PROJECT_INCLUDE)/$(dirstamp)
176        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtc.h
177PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtc.h
178
179$(PROJECT_INCLUDE)/spurious.h: include/spurious.h $(PROJECT_INCLUDE)/$(dirstamp)
180        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/spurious.h
181PREINSTALL_FILES += $(PROJECT_INCLUDE)/spurious.h
182
183$(PROJECT_INCLUDE)/timerdrv.h: include/timerdrv.h $(PROJECT_INCLUDE)/$(dirstamp)
184        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/timerdrv.h
185PREINSTALL_FILES += $(PROJECT_INCLUDE)/timerdrv.h
186
187$(PROJECT_INCLUDE)/vmeintr.h: include/vmeintr.h $(PROJECT_INCLUDE)/$(dirstamp)
188        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/vmeintr.h
189PREINSTALL_FILES += $(PROJECT_INCLUDE)/vmeintr.h
190
191if NEED_STDINT_H
192$(PROJECT_INCLUDE)/stdint.h: include/stdint.h $(PROJECT_INCLUDE)/$(dirstamp)
193        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/stdint.h
194PREINSTALL_FILES += $(PROJECT_INCLUDE)/stdint.h
195endif
196
197if NEED_INTTYPES_H
198$(PROJECT_INCLUDE)/inttypes.h: include/inttypes.h $(PROJECT_INCLUDE)/$(dirstamp)
199        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/inttypes.h
200PREINSTALL_FILES += $(PROJECT_INCLUDE)/inttypes.h
201endif
202
203$(PROJECT_INCLUDE)/motorola/$(dirstamp):
204        @$(mkinstalldirs) $(PROJECT_INCLUDE)/motorola
205        @: > $(PROJECT_INCLUDE)/motorola/$(dirstamp)
206PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola/$(dirstamp)
207
208$(PROJECT_INCLUDE)/motorola/mc68230.h: include/motorola/mc68230.h $(PROJECT_INCLUDE)/motorola/$(dirstamp)
209        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/motorola/mc68230.h
210PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola/mc68230.h
211
212$(PROJECT_INCLUDE)/motorola/mc68681.h: include/motorola/mc68681.h $(PROJECT_INCLUDE)/motorola/$(dirstamp)
213        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/motorola/mc68681.h
214PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola/mc68681.h
215
216$(PROJECT_INCLUDE)/rtems/$(dirstamp):
217        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems
218        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
219PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/$(dirstamp)
220
221$(PROJECT_INCLUDE)/rtems/assoc.h: include/rtems/assoc.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
222        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/assoc.h
223PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/assoc.h
224
225$(PROJECT_INCLUDE)/rtems/error.h: include/rtems/error.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
226        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/error.h
227PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/error.h
228
229$(PROJECT_INCLUDE)/rtems/libcsupport.h: include/rtems/libcsupport.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
230        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libcsupport.h
231PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libcsupport.h
232
233$(PROJECT_INCLUDE)/rtems/libio.h: include/rtems/libio.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
234        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libio.h
235PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libio.h
236
237$(PROJECT_INCLUDE)/rtems/libio_.h: include/rtems/libio_.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
238        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libio_.h
239PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libio_.h
240
241$(PROJECT_INCLUDE)/rtems/termiostypes.h: include/rtems/termiostypes.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
242        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/termiostypes.h
243PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/termiostypes.h
244
245$(PROJECT_INCLUDE)/rtems/cdefs.h: include/rtems/cdefs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
246        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cdefs.h
247PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/cdefs.h
248
249$(PROJECT_INCLUDE)/sys/$(dirstamp):
250        @$(mkinstalldirs) $(PROJECT_INCLUDE)/sys
251        @: > $(PROJECT_INCLUDE)/sys/$(dirstamp)
252PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/$(dirstamp)
253
254$(PROJECT_INCLUDE)/sys/filio.h: include/sys/filio.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
255        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/filio.h
256PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/filio.h
257
258$(PROJECT_INCLUDE)/sys/ioccom.h: include/sys/ioccom.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
259        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ioccom.h
260PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ioccom.h
261
262$(PROJECT_INCLUDE)/sys/ioctl.h: include/sys/ioctl.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
263        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ioctl.h
264PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ioctl.h
265
266$(PROJECT_INCLUDE)/sys/sockio.h: include/sys/sockio.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
267        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/sockio.h
268PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/sockio.h
269
270$(PROJECT_INCLUDE)/sys/ttycom.h: include/sys/ttycom.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
271        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ttycom.h
272PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ttycom.h
273
274if NEWLIB
275$(PROJECT_INCLUDE)/sys/termios.h: include/sys/termios.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
276        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/termios.h
277PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/termios.h
278
279$(PROJECT_INCLUDE)/sys/utsname.h: include/sys/utsname.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
280        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/utsname.h
281PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/utsname.h
282endif
283
284if NEED_SYS_CDEFS_H
285$(PROJECT_INCLUDE)/sys/cdefs.h: include/sys/cdefs.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
286        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/cdefs.h
287PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/cdefs.h
288endif
289
290$(PROJECT_INCLUDE)/zilog/$(dirstamp):
291        @$(mkinstalldirs) $(PROJECT_INCLUDE)/zilog
292        @: > $(PROJECT_INCLUDE)/zilog/$(dirstamp)
293PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/$(dirstamp)
294
295$(PROJECT_INCLUDE)/zilog/z8036.h: include/zilog/z8036.h $(PROJECT_INCLUDE)/zilog/$(dirstamp)
296        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/zilog/z8036.h
297PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/z8036.h
298
299$(PROJECT_INCLUDE)/zilog/z8530.h: include/zilog/z8530.h $(PROJECT_INCLUDE)/zilog/$(dirstamp)
300        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/zilog/z8530.h
301PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/z8530.h
302
303$(PROJECT_INCLUDE)/zilog/z8536.h: include/zilog/z8536.h $(PROJECT_INCLUDE)/zilog/$(dirstamp)
304        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/zilog/z8536.h
305PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/z8536.h
306
307include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.