source: rtems/cpukit/libcsupport/Makefile.am @ 53a8958

4.104.114.84.95
Last change on this file since 53a8958 was 53a8958, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2003 at 1:39:43 PM

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

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