source: rtems/c/src/lib/libc/Makefile.in @ 258fd79

4.104.114.84.95
Last change on this file since 258fd79 was 258fd79, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 2, 1999 at 5:13:27 PM

Password and group routines added by Ralf Corsepius <corsepiu@…>.

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