source: rtems/c/src/lib/libc/Makefile.am @ df49c60

4.104.114.84.95
Last change on this file since df49c60 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 3:00:15 PM

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 3.5 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 ioman.c libio.c \
15    libio_sockets.c eval.c fs_null_handlers.c
16
17IMFS_C_FILES = imfs_chown.c imfs_creat.c imfs_directory.c imfs_eval.c \
18    imfs_free.c imfs_fsunmount.c imfs_gtkn.c imfs_init.c imfs_initsupp.c \
19    imfs_link.c imfs_mknod.c imfs_mount.c imfs_fchmod.c imfs_unlink.c \
20    imfs_unmount.c imfs_utime.c imfs_ntype.c imfs_stat.c imfs_getchild.c \
21    memfile.c deviceio.c imfs_handlers_device.c imfs_handlers_directory.c \
22    imfs_handlers_link.c imfs_handlers_memfile.c imfs_debug.c imfs_rmnod.c \
23    imfs_symlink.c imfs_readlink.c imfs_fdatasync.c imfs_fcntl.c \
24    miniimfs_init.c
25
26TERMIOS_C_FILES = cfgetispeed.c cfgetospeed.c cfsetispeed.c cfsetospeed.c \
27    tcgetattr.c tcsetattr.c tcdrain.c tcflow.c tcflush.c tcgetprgrp.c \
28    tcsendbreak.c tcsetpgrp.c termios.c termiosinitialize.c \
29    termiosreserveresources.c
30
31SYSTEM_CALL_C_FILES = open.c close.c read.c write.c lseek.c ioctl.c mkdir.c \
32    mknod.c mkfifo.c rmdir.c chdir.c chmod.c fchmod.c chown.c link.c \
33    unlink.c umask.c ftruncate.c utime.c fstat.c fcntl.c fpathconf.c \
34    getdents.c fsync.c fdatasync.c pipe.c dup.c dup2.c symlink.c readlink.c \
35    creat.c
36
37DIRECTORY_SCAN_C_FILES = opendir.c closedir.c readdir.c rewinddir.c \
38    scandir.c seekdir.c telldir.c getcwd.c
39
40MALLOC_C_FILES = malloc.c __brk.c __sbrk.c
41
42PASSWORD_GROUP_C_FILES = getpwent.c getgrent.c
43
44TERMINAL_IDENTIFICATION_C_FILES = ctermid.c isatty.c ttyname.c ttyname_r.c
45
46LIBC_GLUE_C_FILES = __getpid.c __gettod.c __times.c truncate.c access.c \
47    stat.c lstat.c pathconf.c newlibc.c no_posix.c no_libc.c
48
49UNIX_LIBC_C_FILES = unixlibc.c hosterr.c
50
51COMMON_C_FILES = gxx_wrappers.c $(BASE_FS_C_FILES) $(MALLOC_C_FILES) $(TERMIOS_C_FILES) \
52    $(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
53
54UNIX_C_FILES = $(UNIX_LIBC_C_FILES) imfs_unixstub.c
55
56EMBEDDED_C_FILES = $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
57    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
58    $(DIRECTORY_SCAN_C_FILES) $(IMFS_C_FILES)
59
60if UNIX
61C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES)
62else
63C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
64endif
65C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
66
67H_FILES = libcsupport.h imfs.h
68SYS_H_FILES =
69RTEMS_H_FILES = assoc.h error.h libio.h
70noinst_HEADERS = libio_.h
71
72include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
73include $(top_srcdir)/../../../automake/lib.am
74
75PREINSTALL_FILES += $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems \
76    $(PROJECT_INCLUDE)/sys $(H_FILES:%=$(PROJECT_INCLUDE)/%) \
77    $(RTEMS_H_FILES:%=$(PROJECT_INCLUDE)/rtems/%) \
78    $(SYS_H_FILES:%=$(PROJECT_INCLUDE)/sys/%)
79
80$(PROJECT_INCLUDE):
81        @$(mkinstalldirs) $@
82$(PROJECT_INCLUDE)/rtems:
83        @$(mkinstalldirs) $@
84$(PROJECT_INCLUDE)/sys:
85        @$(mkinstalldirs) $@
86
87$(PROJECT_INCLUDE)/%.h: %.h
88        $(INSTALL_DATA) $< $@
89$(PROJECT_INCLUDE)/rtems/%.h: %.h
90        $(INSTALL_DATA) $< $@
91$(PROJECT_INCLUDE)/sys/%.h: %.h
92        $(INSTALL_DATA) $< $@
93
94TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
95
96OBJS = $(C_O_FILES)
97
98#
99# Add local stuff here using +=
100#
101
102AM_CFLAGS += $(LIBC_DEFINES)
103
104all-local: ${ARCH} $(TMPINSTALL_FILES)
105
106$(LIB): ${OBJS}
107        $(make-library)
108
109$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
110        $(INSTALL_DATA) $< $@
111
112DOC_FILES = TODO CASES
113
114EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
115    $(UNIX_C_FILES) $(H_FILES) $(RTEMS_H_FILES) $(SYS_H_FILES)
116
117include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.