source: rtems/c/src/lib/libc/Makefile.in @ 3cad2919

4.104.114.84.95
Last change on this file since 3cad2919 was 3cad2919, checked in by Joel Sherrill <joel.sherrill@…>, on 10/01/99 at 15:55:30

Addition of more functionality by Eric Norum to support GNU readline.

  • Property mode set to 100644
File size: 3.3 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ..
9subdir = libc
10
11RTEMS_ROOT = @RTEMS_ROOT@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@
15
16LIBNAME = libcsupport.a
17LIB = ${ARCH}/${LIBNAME}
18
19BASE_FS_C_PIECES = base_fs mount unmount ioman libio libio_sockets eval
20
21IMFS_C_PIECES = imfs_chown imfs_creat imfs_directory imfs_eval imfs_free \
22    imfs_gtkn imfs_init imfs_link imfs_mknod imfs_mount imfs_fchmod \
23    imfs_rmnod imfs_unlink imfs_unmount imfs_utime imfs_ntype imfs_stat \
24    imfs_getchild memfile deviceio imfs_handlers imfs_debug imfs_symlink \
25    imfs_readlink imfs_fdatasync
26
27TERMIOS_C_PIECES = cfgetispeed cfgetospeed cfsetispeed cfsetospeed tcgetattr \
28    tcsetattr tcdrain tcflow tcflush termios \
29    termiosinitialize termiosreserveresources
30
31SYSTEM_CALL_C_PIECES = open close read write lseek ioctl mkdir mknod mkfifo \
32    rmdir chdir chmod fchmod chown link unlink umask ftruncate utime fstat \
33    fcntl fpathconf getdents fsync fdatasync pipe dup dup2 symlink readlink
34
35DIRECTORY_SCAN_C_PIECES = opendir closedir readdir rewinddir scandir seekdir \
36    telldir getcwd
37
38MALLOC_C_PIECES = malloc __brk __sbrk
39
40PASSWORD_GROUP_C_PIECES = getpwent getgrent
41
42LIBC_GLUE_C_PIECES = __gettod __times truncate access stat lstat pathconf \
43    newlibc no_libc
44
45UNIX_LIBC_C_PIECES = unixlibc hosterr
46
47# C and C++ source names, if any, go here -- minus the .c or .cc
48UNIX_C_PIECES = $(UNIX_LIBC_C_PIECES) $(BASE_FS_C_PIECES) $(MALLOC_C_PIECES) \
49    $(TERMIOS_C_PIECES)
50
51EMBEDDED_C_PIECES = $(LIBC_GLUE_C_PIECES) $(BASE_FS_C_PIECES) \
52    $(MALLOC_C_PIECES) $(PASSWORD_GROUP_C_PIECES) $(TERMIOS_C_PIECES) \
53    $(SYSTEM_CALL_C_PIECES) $(DIRECTORY_SCAN_C_PIECES) $(IMFS_C_PIECES)
54
55@UNIX_TRUE@C_PIECES = $(UNIX_C_PIECES)
56@UNIX_FALSE@C_PIECES = $(EMBEDDED_C_PIECES)
57C_FILES = $(C_PIECES:%=%.c)
58C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
59
60H_FILES = $(srcdir)/libcsupport.h
61SYS_H_FILES =
62RTEMS_H_FILES = $(srcdir)/libio.h
63
64include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
65include $(RTEMS_ROOT)/make/lib.cfg
66
67INSTALL_CHANGE = @INSTALL_CHANGE@
68mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
69
70INSTALLDIRS = $(PROJECT_INCLUDE)/rtems $(PROJECT_INCLUDE)/sys \
71    $(PROJECT_INCLUDE)
72
73$(INSTALLDIRS):
74        @$(mkinstalldirs) $(INSTALLDIRS)
75
76SRCS = $(C_FILES) $(H_FILES) $(SYS_H_FILES) $(RTEMS_H_FILES)
77OBJS = $(C_O_FILES)
78
79#
80# Add local stuff here using +=
81#
82
83DEFINES +=
84CPPFLAGS +=
85CFLAGS += $(LIBC_DEFINES)
86
87#
88# Add your list of files to delete here.  The config files
89#  already know how to delete some stuff, so you may want
90#  to just run 'make clean' first to see what gets missed.
91#  'make clobber' already includes 'make clean'
92#
93
94CLEAN_ADDITIONS += $(LIB)
95CLOBBER_ADDITIONS +=
96
97all: ${ARCH} preinstall $(LIB)
98        @$(INSTALL_VARIANT) -m 644 ${LIB} $(PROJECT_RELEASE)/lib
99
100$(LIB): $(SRCS) ${OBJS}
101        $(make-library)
102
103# Install the library, appending _g or _p as appropriate.
104# for include files, just use $(INSTALL_CHANGE)
105preinstall:
106        @$(mkinstalldirs) $(INSTALLDIRS)
107        @$(INSTALL_CHANGE) -m 644 $(RTEMS_H_FILES) $(PROJECT_INCLUDE)/rtems
108        @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
109        @$(INSTALL_CHANGE) -m 644 $(SYS_H_FILES) $(PROJECT_INCLUDE)/sys
110
111Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
112        cd $(top_builddir) \
113         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.