source: rtems/c/src/exec/libcsupport/src/Makefile.am @ e2af631

4.104.114.84.95
Last change on this file since e2af631 was e2af631, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 25, 2000 at 7:35:53 PM

2000-11-25 Antti P Miettinen <antti.p.miettinen@…>

  • libc/termios.c, libc/termiostypes.h: Task driver driver model and line discipline support from Thomas Doerfler <Thomas.Doerfler@…>.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1##
2##  $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7LIBNAME = libcsupport
8LIB = ${ARCH}/${LIBNAME}.a
9
10ERROR_C_FILES = error.c
11
12ASSOCIATION_C_FILES = assoc.c assocnamebad.c
13
14BASE_FS_C_FILES = base_fs.c mount.c unmount.c libio.c \
15    libio_sockets.c eval.c fs_null_handlers.c
16
17TERMIOS_C_FILES = cfgetispeed.c cfgetospeed.c cfsetispeed.c cfsetospeed.c \
18    tcgetattr.c tcsetattr.c tcdrain.c tcflow.c tcflush.c tcgetprgrp.c \
19    tcsendbreak.c tcsetpgrp.c termios.c termiosinitialize.c \
20    termiosreserveresources.c
21
22SYSTEM_CALL_C_FILES = open.c close.c read.c write.c lseek.c ioctl.c mkdir.c \
23    mknod.c mkfifo.c rmdir.c chdir.c chmod.c fchdir.c fchmod.c chown.c \
24    link.c unlink.c umask.c ftruncate.c utime.c fstat.c fcntl.c fpathconf.c \
25    getdents.c fsync.c fdatasync.c pipe.c dup.c dup2.c symlink.c readlink.c \
26    creat.c
27
28DIRECTORY_SCAN_C_FILES = opendir.c closedir.c readdir.c rewinddir.c \
29    scandir.c seekdir.c telldir.c getcwd.c
30
31MALLOC_C_FILES = malloc.c mallocfreespace.c __brk.c __sbrk.c
32
33PASSWORD_GROUP_C_FILES = getpwent.c getgrent.c
34
35TERMINAL_IDENTIFICATION_C_FILES = ctermid.c isatty.c ttyname.c ttyname_r.c
36
37LIBC_GLUE_C_FILES = __getpid.c __gettod.c __times.c truncate.c access.c \
38    stat.c lstat.c pathconf.c newlibc.c no_posix.c no_libc.c
39
40UNIX_LIBC_C_FILES = unixlibc.c hosterr.c
41
42COMMON_C_FILES = gxx_wrappers.c printk.c $(BASE_FS_C_FILES) \
43    $(MALLOC_C_FILES) $(TERMIOS_C_FILES) $(ERROR_C_FILES) \
44    $(ASSOCIATION_C_FILES)
45
46UNIX_C_FILES = $(UNIX_LIBC_C_FILES)
47
48EMBEDDED_C_FILES = $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
49    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
50    $(DIRECTORY_SCAN_C_FILES)
51
52if UNIX
53C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES)
54else
55C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
56endif
57C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
58
59include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
60include $(top_srcdir)/../../../automake/compile.am
61include $(top_srcdir)/../../../automake/lib.am
62
63TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
64
65OBJS = $(C_O_FILES)
66
67#
68# Add local stuff here using +=
69#
70
71AM_CFLAGS += $(LIBC_DEFINES)
72
73all-local: ${ARCH} $(TMPINSTALL_FILES)
74
75$(LIB): ${OBJS}
76        $(make-library)
77
78$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
79        $(INSTALL_DATA) $< $@
80
81DOC_FILES = TODO CASES
82
83EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
84    $(UNIX_C_FILES) termiostypes.h
85
86include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.