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

4.104.114.84.95
Last change on this file since c7016198 was c7016198, checked in by Joel Sherrill <joel.sherrill@…>, on 11/16/99 at 15:27:52

Added.

  • Property mode set to 100644
File size: 3.8 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
19ERROR_C_PIECES=error
20
21ASSOCIATION_C_PIECES=assoc assocnamebad
22
23BASE_FS_C_PIECES = base_fs mount unmount ioman libio libio_sockets eval \
24    fs_null_handlers
25
26IMFS_C_PIECES = imfs_chown imfs_creat imfs_directory imfs_eval imfs_free \
27    imfs_fsunmount imfs_gtkn imfs_init imfs_initsupp imfs_link imfs_mknod \
28    imfs_mount imfs_fchmod imfs_unlink imfs_unmount imfs_utime \
29    imfs_ntype imfs_stat imfs_getchild memfile deviceio imfs_handlers_device \
30    imfs_handlers_directory imfs_handlers_link imfs_handlers_memfile \
31    imfs_debug imfs_rmnod imfs_symlink imfs_readlink imfs_fdatasync \
32    imfs_fcntl miniimfs_init
33
34TERMIOS_C_PIECES = cfgetispeed cfgetospeed cfsetispeed cfsetospeed tcgetattr \
35    tcsetattr tcdrain tcflow tcflush tcgetprgrp tcsendbreak tcsetpgrp \
36    termios termiosinitialize termiosreserveresources
37
38SYSTEM_CALL_C_PIECES = open close read write lseek ioctl mkdir mknod mkfifo \
39    rmdir chdir chmod fchmod chown link unlink umask ftruncate utime fstat \
40    fcntl fpathconf getdents fsync fdatasync pipe dup dup2 symlink readlink \
41    creat
42
43DIRECTORY_SCAN_C_PIECES = opendir closedir readdir rewinddir scandir seekdir \
44    telldir getcwd
45
46MALLOC_C_PIECES = malloc __brk __sbrk
47
48PASSWORD_GROUP_C_PIECES = getpwent getgrent
49
50TERMINAL_IDENTIFICATION = ctermid isatty ttyname ttyname_r
51LIBC_GLUE_C_PIECES = __getpid __gettod __times truncate access stat \
52    lstat pathconf newlibc no_posix no_libc
53
54UNIX_LIBC_C_PIECES = unixlibc hosterr
55
56# C and C++ source names, if any, go here -- minus the .c or .cc
57UNIX_C_PIECES = $(UNIX_LIBC_C_PIECES) $(BASE_FS_C_PIECES) $(MALLOC_C_PIECES) \
58    $(TERMIOS_C_PIECES) $(ERROR_C_PIECES) $(ASSOCIATION_C_PIECES) \
59    imfs_unixstub
60
61EMBEDDED_C_PIECES = $(LIBC_GLUE_C_PIECES) $(BASE_FS_C_PIECES) \
62    $(MALLOC_C_PIECES) $(PASSWORD_GROUP_C_PIECES) $(TERMIOS_C_PIECES) \
63    $(SYSTEM_CALL_C_PIECES) $(DIRECTORY_SCAN_C_PIECES) $(IMFS_C_PIECES) \
64    $(ERROR_C_PIECES) $(ASSOCIATION_C_PIECES)
65
66
67@UNIX_TRUE@C_PIECES = $(UNIX_C_PIECES)
68@UNIX_FALSE@C_PIECES = $(EMBEDDED_C_PIECES)
69C_FILES = $(C_PIECES:%=%.c)
70C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
71
72H_FILES = $(srcdir)/libcsupport.h $(srcdir)/imfs.h
73SYS_H_FILES =
74RTEMS_H_FILES = $(srcdir)/assoc.h $(srcdir)/error.h $(srcdir)/libio.h
75
76include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
77include $(RTEMS_ROOT)/make/lib.cfg
78
79INSTALL_CHANGE = @INSTALL_CHANGE@
80mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
81
82INSTALLDIRS = $(PROJECT_INCLUDE)/rtems $(PROJECT_INCLUDE)/sys \
83    $(PROJECT_INCLUDE)
84
85$(INSTALLDIRS):
86        @$(mkinstalldirs) $(INSTALLDIRS)
87
88SRCS = $(C_FILES) $(H_FILES) $(SYS_H_FILES) $(RTEMS_H_FILES)
89OBJS = $(C_O_FILES)
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        @$(mkinstalldirs) $(INSTALLDIRS)
119        @$(INSTALL_CHANGE) -m 644 $(RTEMS_H_FILES) $(PROJECT_INCLUDE)/rtems
120        @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
121        @$(INSTALL_CHANGE) -m 644 $(SYS_H_FILES) $(PROJECT_INCLUDE)/sys
122
123Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
124        cd $(top_builddir) \
125         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.