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

4.104.114.84.95
Last change on this file since 9eb89a1e was 9eb89a1e, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 5, 2000 at 4:04:13 PM

2000-09-04 Ralf Corsepius <corsepiu@…>

  • libc/Makefile.am: Include compile.am
  • Property mode set to 100644
File size: 3.6 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 fchdir.c fchmod.c chown.c \
33    link.c 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 printk.c $(BASE_FS_C_FILES) \
52    $(MALLOC_C_FILES) $(TERMIOS_C_FILES) $(ERROR_C_FILES) \
53    $(ASSOCIATION_C_FILES)
54
55UNIX_C_FILES = $(UNIX_LIBC_C_FILES) imfs_unixstub.c
56
57EMBEDDED_C_FILES = $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
58    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
59    $(DIRECTORY_SCAN_C_FILES) $(IMFS_C_FILES)
60
61if UNIX
62C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES)
63else
64C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
65endif
66C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
67
68H_FILES = libcsupport.h imfs.h
69SYS_H_FILES =
70RTEMS_H_FILES = assoc.h error.h libio.h
71noinst_HEADERS = libio_.h
72
73include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
74include $(top_srcdir)/../../../automake/compile.am
75include $(top_srcdir)/../../../automake/lib.am
76
77PREINSTALL_FILES += $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems \
78    $(PROJECT_INCLUDE)/sys $(H_FILES:%=$(PROJECT_INCLUDE)/%) \
79    $(RTEMS_H_FILES:%=$(PROJECT_INCLUDE)/rtems/%) \
80    $(SYS_H_FILES:%=$(PROJECT_INCLUDE)/sys/%)
81
82$(PROJECT_INCLUDE):
83        @$(mkinstalldirs) $@
84$(PROJECT_INCLUDE)/rtems:
85        @$(mkinstalldirs) $@
86$(PROJECT_INCLUDE)/sys:
87        @$(mkinstalldirs) $@
88
89$(PROJECT_INCLUDE)/%.h: %.h
90        $(INSTALL_DATA) $< $@
91$(PROJECT_INCLUDE)/rtems/%.h: %.h
92        $(INSTALL_DATA) $< $@
93$(PROJECT_INCLUDE)/sys/%.h: %.h
94        $(INSTALL_DATA) $< $@
95
96TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
97
98OBJS = $(C_O_FILES)
99
100#
101# Add local stuff here using +=
102#
103
104AM_CFLAGS += $(LIBC_DEFINES)
105
106all-local: ${ARCH} $(TMPINSTALL_FILES)
107
108$(LIB): ${OBJS}
109        $(make-library)
110
111$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
112        $(INSTALL_DATA) $< $@
113
114DOC_FILES = TODO CASES
115
116EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
117    $(UNIX_C_FILES) $(H_FILES) $(RTEMS_H_FILES) $(SYS_H_FILES)
118
119include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.