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

4.104.114.84.95
Last change on this file since 8ed9f53 was 8ed9f53, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 17, 2002 at 9:12:49 AM

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

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