source: rtems/c/src/lib/libc/Makefile.in @ 3165b4d3

4.104.114.84.95
Last change on this file since 3165b4d3 was 3165b4d3, checked in by Joel Sherrill <joel.sherrill@…>, on 02/10/99 at 17:04:12

Added getcwd().

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