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

4.104.114.84.95
Last change on this file since b8ad66c was b8ad66c, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 17, 2002 at 3:05:53 PM

2002-06-17 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge src/Makefile.am.
  • configure.ac: Reflect changes above.
  • src/Makefile.am: Remove.
  • Property mode set to 100644
File size: 4.6 KB
Line 
1##
2##  $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../aclocal
6
7include $(top_srcdir)/../automake/multilib.am
8include $(top_srcdir)/../automake/compile.am
9include $(top_srcdir)/../automake/lib.am
10
11include_HEADERS = include/chain.h include/console.h include/clockdrv.h \
12    include/iosupp.h include/ringbuf.h include/rtc.h \
13    include/spurious.h include/timerdrv.h include/vmeintr.h
14
15LIBC_HFILES = include/stdint.h include/inttypes.h
16include_HEADERS += $(LIBC_HFILES)
17
18PREINSTALL_FILES = $(PROJECT_INCLUDE) \
19    $(include_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
20
21$(PROJECT_INCLUDE):
22        @$(mkinstalldirs) $@
23$(PROJECT_INCLUDE)/motorola:
24        @$(mkinstalldirs) $@
25$(PROJECT_INCLUDE)/rtems:
26        @$(mkinstalldirs) $@
27$(PROJECT_INCLUDE)/sys:
28        @$(mkinstalldirs) $@
29$(PROJECT_INCLUDE)/zilog:
30        @$(mkinstalldirs) $@
31
32$(PROJECT_INCLUDE)/%.h: include/%.h
33        $(INSTALL_DATA) $< $@
34
35## motorola
36
37include_motoroladir = $(includedir)/motorola
38
39include_motorola_HEADERS = include/motorola/mc68230.h include/motorola/mc68681.h
40
41PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola \
42    $(include_motorola_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
43
44## rtems
45include_rtemsdir = $(includedir)/rtems
46
47include_rtems_HEADERS = \
48    include/rtems/assoc.h include/rtems/error.h include/rtems/libcsupport.h \
49    include/rtems/libio.h include/rtems/libio_.h \
50    include/rtems/termiostypes.h
51
52PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems \
53    $(include_rtems_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
54
55## sys
56
57include_sysdir = $(includedir)/sys
58
59
60if NEWLIB
61NEWLIB_H_FILES = include/sys/termios.h include/sys/cdefs.h include/sys/utsname.h
62endif
63
64include_sys_HEADERS = \
65include/sys/filio.h \
66include/sys/ioccom.h \
67include/sys/ioctl.h \
68include/sys/sockio.h \
69include/sys/termios.h \
70include/sys/ttycom.h \
71include/sys/utime.h \
72$(NEWLIB_H_FILES)
73
74PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \
75    $(include_sys_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
76
77## zilog
78
79include_zilogdir = $(includedir)/zilog
80
81include_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \
82    include/zilog/z8536.h
83
84PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog \
85    $(include_zilog_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
86
87##  General stuff
88all-local: $(PREINSTALL_FILES)
89
90LIBNAME = libcsupport
91LIB = ${ARCH}/${LIBNAME}.a
92
93INCLUDES = -Isrc
94
95ERROR_C_FILES = src/error.c
96
97ASSOCIATION_C_FILES = src/assoc.c src/assocnamebad.c
98
99BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \
100    src/libio_sockets.c src/eval.c src/fs_null_handlers.c src/privateenv.c
101
102TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c src/cfsetospeed.c \
103    src/tcgetattr.c src/tcsetattr.c src/tcdrain.c src/tcflow.c src/tcflush.c src/tcgetprgrp.c \
104    src/tcsendbreak.c src/tcsetpgrp.c src/termios.c src/termiosinitialize.c \
105    src/termiosreserveresources.c
106
107SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c src/lseek.c src/ioctl.c src/mkdir.c \
108    src/mknod.c src/mkfifo.c src/rmdir.c src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/chown.c \
109    src/link.c src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c src/fcntl.c src/fpathconf.c \
110    src/getdents.c src/fsync.c src/fdatasync.c src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c \
111    src/creat.c src/chroot.c
112
113DIRECTORY_SCAN_C_FILES = src/opendir.c src/closedir.c src/readdir.c src/rewinddir.c \
114    src/scandir.c src/seekdir.c src/telldir.c src/getcwd.c
115
116MALLOC_C_FILES = src/malloc.c src/mallocfreespace.c src/__brk.c src/__sbrk.c
117
118PASSWORD_GROUP_C_FILES = src/getpwent.c src/getgrent.c
119
120TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c src/isatty.c src/ttyname.c src/ttyname_r.c
121
122LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c src/truncate.c src/access.c \
123    src/stat.c src/lstat.c src/pathconf.c src/newlibc.c src/no_posix.c src/no_libc.c src/utsname.c
124
125UNIX_LIBC_C_FILES = src/unixlibc.c src/hosterr.c
126
127COMMON_C_FILES = src/gxx_wrappers.c src/printk.c $(BASE_FS_C_FILES) \
128    $(MALLOC_C_FILES) $(TERMIOS_C_FILES) $(ERROR_C_FILES) \
129    $(ASSOCIATION_C_FILES)
130
131UNIX_C_FILES = $(UNIX_LIBC_C_FILES)
132
133EMBEDDED_C_FILES = $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
134    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
135    $(DIRECTORY_SCAN_C_FILES)
136
137if UNIX
138C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES)
139else
140C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
141endif
142
143C_O_FILES = $(C_FILES:src/%.c=${ARCH}/%.o)
144OBJS = $(C_O_FILES)
145
146#
147# Add local stuff here using +=
148#
149
150AM_CFLAGS += $(LIBC_DEFINES)
151
152all-local: ${ARCH} ${LIB}
153
154${ARCH}/%.o: src/%.c
155        ${COMPILE} -o $@ -c $<
156
157$(LIB): ${OBJS}
158        $(make-library)
159
160DOC_FILES = TODO CASES
161
162EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
163    $(UNIX_C_FILES)
164
165include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.