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

4.104.114.84.95
Last change on this file since f26145b was 05b37c50, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 28, 2005 at 2:32:38 AM

2005-01-28 Ralf Corsepius <ralf.corsepius@…>

  • itron/Makefile.am, libblock/Makefile.am, libcsupport/Makefile.am, libfs/Makefile.am, libmisc/Makefile.am, posix/Makefile.am, rtems/Makefile.am, sapi/Makefile.am: Remove AM_CPPFLAGS += -I$(top_builddir).
  • Property mode set to 100644
File size: 9.6 KB
Line 
1##
2##  $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8noinst_LIBRARIES = libcsupport.a
9libcsupport_a_CPPFLAGS = $(AM_CPPFLAGS)
10
11include_rtemsdir = $(includedir)/rtems
12include_rtems_HEADERS = include/chain.h include/console.h include/clockdrv.h \
13    include/iosupp.h include/ringbuf.h include/rtc.h include/spurious.h \
14    include/timerdrv.h include/vmeintr.h
15
16## motorola
17
18include_rtems_motoroladir = $(includedir)/rtems/motorola
19
20include_rtems_motorola_HEADERS = include/motorola/mc68230.h \
21    include/motorola/mc68681.h
22
23## rtems
24include_rtems_HEADERS += include/rtems/assoc.h include/rtems/error.h \
25    include/rtems/libcsupport.h include/rtems/libio.h include/rtems/libio_.h \
26    include/rtems/termiostypes.h include/rtems/cdefs.h
27
28## zilog
29
30include_rtems_zilogdir = $(includedir)/rtems/zilog
31
32include_rtems_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \
33    include/zilog/z8536.h
34
35##  General stuff
36all-local: $(PREINSTALL_FILES)
37
38ERROR_C_FILES = src/error.c
39
40ASSOCIATION_C_FILES = src/assoc.c src/assocnamebad.c
41
42BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \
43    src/libio_sockets.c src/eval.c src/fs_null_handlers.c src/privateenv.c
44
45TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c \
46    src/cfsetospeed.c src/tcgetattr.c src/tcsetattr.c src/tcdrain.c \
47    src/tcflow.c src/tcflush.c src/tcgetprgrp.c src/tcsendbreak.c \
48    src/tcsetpgrp.c src/termios.c src/termiosinitialize.c \
49    src/termiosreserveresources.c
50
51SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c \
52    src/lseek.c src/ioctl.c src/mkdir.c src/mknod.c src/mkfifo.c src/rmdir.c \
53    src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/chown.c src/link.c \
54    src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c \
55    src/fcntl.c src/fpathconf.c src/getdents.c src/fsync.c src/fdatasync.c \
56    src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c src/creat.c \
57    src/chroot.c src/sync.c
58
59DIRECTORY_SCAN_C_FILES = src/opendir.c src/closedir.c src/readdir.c \
60    src/readdir_r.c src/rewinddir.c src/scandir.c src/seekdir.c \
61    src/telldir.c src/getcwd.c
62
63ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \
64    src/getlogin.c src/getpgrp.c src/getpid.c src/getppid.c src/getuid.c \
65    src/setpgid.c src/setsid.c
66
67MALLOC_C_FILES = src/malloc.c src/mallocfreespace.c src/__brk.c \
68    src/__sbrk.c
69
70PASSWORD_GROUP_C_FILES = src/getpwent.c
71
72TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c src/isatty.c src/ttyname.c \
73    src/ttyname_r.c
74
75LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \
76    src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \
77    src/newlibc.c src/no_posix.c src/no_libc.c src/utsname.c
78
79BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c
80
81libcsupport_a_SOURCES = src/gxx_wrappers.c src/printk.c $(BSD_LIBC_C_FILES) \
82    $(BASE_FS_C_FILES) $(MALLOC_C_FILES) $(ERROR_C_FILES) \
83    $(ASSOCIATION_C_FILES)
84
85if UNIX
86libcsupport_a_SOURCES += src/unixlibc.c src/hosterr.c
87else
88libcsupport_a_SOURCES += $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
89    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
90    $(DIRECTORY_SCAN_C_FILES) $(ID_C_FILES) src/envlock.c \
91    $(TERMIOS_C_FILES)
92endif
93
94EXTRA_DIST = src/TODO src/CASES src/README
95
96DISTCLEANFILES =
97
98libcsupport/include/sys/$(dirstamp):
99        @$(mkdir_p) libcsupport/include/sys
100        @: > libcsupport/include/sys/$(dirstamp)
101
102if NEWLIB
103libcsupport/include/sys/ioccom.h: include/sys/ioccom.h libcsupport/include/sys/$(dirstamp)
104        $(INSTALL_DATA) $< libcsupport/include/sys/ioccom.h
105
106libcsupport/include/sys/filio.h: include/sys/filio.h libcsupport/include/sys/$(dirstamp)
107        $(INSTALL_DATA) $< libcsupport/include/sys/filio.h
108
109libcsupport/include/sys/ioctl.h: include/sys/ioctl.h libcsupport/include/sys/$(dirstamp)
110        $(INSTALL_DATA) $< libcsupport/include/sys/ioctl.h
111
112libcsupport/include/sys/sockio.h: include/sys/sockio.h libcsupport/include/sys/$(dirstamp)
113        $(INSTALL_DATA) $< libcsupport/include/sys/sockio.h
114
115libcsupport/include/sys/ttycom.h: include/sys/ttycom.h libcsupport/include/sys/$(dirstamp)
116        $(INSTALL_DATA) $< libcsupport/include/sys/ttycom.h
117
118libcsupport/include/sys/termios.h: include/sys/termios.h libcsupport/include/sys/$(dirstamp)
119        $(INSTALL_DATA) $< libcsupport/include/sys/termios.h
120
121libcsupport/include/sys/utsname.h: include/sys/utsname.h libcsupport/include/sys/$(dirstamp)
122        $(INSTALL_DATA) $< libcsupport/include/sys/utsname.h
123
124libcsupport/include/sys/cdefs.h: include/sys/cdefs.h libcsupport/include/sys/$(dirstamp)
125        $(INSTALL_DATA) $< libcsupport/include/sys/cdefs.h
126endif
127
128PREINSTALL_DIRS =
129PREINSTALL_FILES =
130
131$(PROJECT_INCLUDE)/rtems/$(dirstamp):
132        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems
133        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
134PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp)
135
136$(PROJECT_INCLUDE)/rtems/chain.h: include/chain.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
137        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/chain.h
138PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/chain.h
139
140$(PROJECT_INCLUDE)/rtems/console.h: include/console.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
141        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/console.h
142PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/console.h
143
144$(PROJECT_INCLUDE)/rtems/clockdrv.h: include/clockdrv.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
145        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/clockdrv.h
146PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/clockdrv.h
147
148$(PROJECT_INCLUDE)/rtems/iosupp.h: include/iosupp.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
149        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/iosupp.h
150PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/iosupp.h
151
152$(PROJECT_INCLUDE)/rtems/ringbuf.h: include/ringbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
153        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ringbuf.h
154PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ringbuf.h
155
156$(PROJECT_INCLUDE)/rtems/rtc.h: include/rtc.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
157        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtc.h
158PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtc.h
159
160$(PROJECT_INCLUDE)/rtems/spurious.h: include/spurious.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
161        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/spurious.h
162PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/spurious.h
163
164$(PROJECT_INCLUDE)/rtems/timerdrv.h: include/timerdrv.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
165        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/timerdrv.h
166PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/timerdrv.h
167
168$(PROJECT_INCLUDE)/rtems/vmeintr.h: include/vmeintr.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
169        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/vmeintr.h
170PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/vmeintr.h
171
172$(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp):
173        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/motorola
174        @: > $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp)
175PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp)
176
177$(PROJECT_INCLUDE)/rtems/motorola/mc68230.h: include/motorola/mc68230.h $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp)
178        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/motorola/mc68230.h
179PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/motorola/mc68230.h
180
181$(PROJECT_INCLUDE)/rtems/motorola/mc68681.h: include/motorola/mc68681.h $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp)
182        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/motorola/mc68681.h
183PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/motorola/mc68681.h
184
185$(PROJECT_INCLUDE)/rtems/assoc.h: include/rtems/assoc.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
186        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/assoc.h
187PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/assoc.h
188
189$(PROJECT_INCLUDE)/rtems/error.h: include/rtems/error.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
190        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/error.h
191PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/error.h
192
193$(PROJECT_INCLUDE)/rtems/libcsupport.h: include/rtems/libcsupport.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
194        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libcsupport.h
195PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libcsupport.h
196
197$(PROJECT_INCLUDE)/rtems/libio.h: include/rtems/libio.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
198        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libio.h
199PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libio.h
200
201$(PROJECT_INCLUDE)/rtems/libio_.h: include/rtems/libio_.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
202        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libio_.h
203PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libio_.h
204
205$(PROJECT_INCLUDE)/rtems/termiostypes.h: include/rtems/termiostypes.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
206        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/termiostypes.h
207PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/termiostypes.h
208
209$(PROJECT_INCLUDE)/rtems/cdefs.h: include/rtems/cdefs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
210        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cdefs.h
211PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/cdefs.h
212
213$(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp):
214        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/zilog
215        @: > $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)
216PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)
217
218$(PROJECT_INCLUDE)/rtems/zilog/z8036.h: include/zilog/z8036.h $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)
219        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/zilog/z8036.h
220PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/zilog/z8036.h
221
222$(PROJECT_INCLUDE)/rtems/zilog/z8530.h: include/zilog/z8530.h $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)
223        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/zilog/z8530.h
224PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/zilog/z8530.h
225
226$(PROJECT_INCLUDE)/rtems/zilog/z8536.h: include/zilog/z8536.h $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)
227        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/zilog/z8536.h
228PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/zilog/z8536.h
229
230CLEANFILES = $(PREINSTALL_FILES)
231DISTCLEANFILES += $(PREINSTALL_DIRS)
232
233include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.