source: rtems/cpukit/libcsupport/Makefile.am @ 6cb5bcd

4.104.114.84.95
Last change on this file since 6cb5bcd was 6cb5bcd, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 22, 2003 at 11:31:12 AM

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

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