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

4.104.114.84.95
Last change on this file since b440e57b was b440e57b, checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/99 at 13:40:30

Added imfs_unixstub.c to satisfy linker problems on UNIX port.

  • Property mode set to 100644
File size: 3.7 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 termios \
36    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 isatty
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
50LIBC_GLUE_C_PIECES = __getpid __gettod __times truncate access stat \
51    lstat pathconf newlibc no_posix no_libc
52
53UNIX_LIBC_C_PIECES = unixlibc hosterr
54
55# C and C++ source names, if any, go here -- minus the .c or .cc
56UNIX_C_PIECES = $(UNIX_LIBC_C_PIECES) $(BASE_FS_C_PIECES) $(MALLOC_C_PIECES) \
57    $(TERMIOS_C_PIECES) $(ERROR_C_PIECES) $(ASSOCIATION_C_PIECES) \
58    imfs_unixstub
59
60EMBEDDED_C_PIECES = $(LIBC_GLUE_C_PIECES) $(BASE_FS_C_PIECES) \
61    $(MALLOC_C_PIECES) $(PASSWORD_GROUP_C_PIECES) $(TERMIOS_C_PIECES) \
62    $(SYSTEM_CALL_C_PIECES) $(DIRECTORY_SCAN_C_PIECES) $(IMFS_C_PIECES) \
63    $(ERROR_C_PIECES) $(ASSOCIATION_C_PIECES)
64
65
66@UNIX_TRUE@C_PIECES = $(UNIX_C_PIECES)
67@UNIX_FALSE@C_PIECES = $(EMBEDDED_C_PIECES)
68C_FILES = $(C_PIECES:%=%.c)
69C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
70
71H_FILES = $(srcdir)/libcsupport.h $(srcdir)/imfs.h
72SYS_H_FILES =
73RTEMS_H_FILES = $(srcdir)/assoc.h $(srcdir)/error.h $(srcdir)/libio.h
74
75include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
76include $(RTEMS_ROOT)/make/lib.cfg
77
78INSTALL_CHANGE = @INSTALL_CHANGE@
79mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
80
81INSTALLDIRS = $(PROJECT_INCLUDE)/rtems $(PROJECT_INCLUDE)/sys \
82    $(PROJECT_INCLUDE)
83
84$(INSTALLDIRS):
85        @$(mkinstalldirs) $(INSTALLDIRS)
86
87SRCS = $(C_FILES) $(H_FILES) $(SYS_H_FILES) $(RTEMS_H_FILES)
88OBJS = $(C_O_FILES)
89
90#
91# Add local stuff here using +=
92#
93
94DEFINES +=
95CPPFLAGS +=
96CFLAGS += $(LIBC_DEFINES)
97
98#
99# Add your list of files to delete here.  The config files
100#  already know how to delete some stuff, so you may want
101#  to just run 'make clean' first to see what gets missed.
102#  'make clobber' already includes 'make clean'
103#
104
105CLEAN_ADDITIONS += $(LIB)
106CLOBBER_ADDITIONS +=
107
108all: ${ARCH} preinstall $(LIB)
109        @$(INSTALL_VARIANT) -m 644 ${LIB} $(PROJECT_RELEASE)/lib
110
111$(LIB): $(SRCS) ${OBJS}
112        $(make-library)
113
114# Install the library, appending _g or _p as appropriate.
115# for include files, just use $(INSTALL_CHANGE)
116preinstall:
117        @$(mkinstalldirs) $(INSTALLDIRS)
118        @$(INSTALL_CHANGE) -m 644 $(RTEMS_H_FILES) $(PROJECT_INCLUDE)/rtems
119        @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
120        @$(INSTALL_CHANGE) -m 644 $(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.