OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libc/] [Makefile.am] - Blame information for rev 493

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
##
2
##  $Id: Makefile.am,v 1.2 2001-09-27 12:01:15 chris Exp $
3
##
4
 
5
AUTOMAKE_OPTIONS = foreign 1.4
6
 
7
LIBNAME = libcsupport
8
LIB = ${ARCH}/${LIBNAME}.a
9
 
10
ERROR_C_FILES = error.c
11
 
12
ASSOCIATION_C_FILES = assoc.c assocnamebad.c
13
 
14
BASE_FS_C_FILES = base_fs.c mount.c unmount.c ioman.c libio.c \
15
    libio_sockets.c eval.c fs_null_handlers.c
16
 
17
IMFS_C_FILES = imfs_chown.c imfs_creat.c imfs_directory.c imfs_eval.c \
18
    imfs_free.c imfs_fsunmount.c imfs_gtkn.c imfs_init.c imfs_initsupp.c \
19
    imfs_link.c imfs_mknod.c imfs_mount.c imfs_fchmod.c imfs_unlink.c \
20
    imfs_unmount.c imfs_utime.c imfs_ntype.c imfs_stat.c imfs_getchild.c \
21
    memfile.c deviceio.c imfs_handlers_device.c imfs_handlers_directory.c \
22
    imfs_handlers_link.c imfs_handlers_memfile.c imfs_debug.c imfs_rmnod.c \
23
    imfs_symlink.c imfs_readlink.c imfs_fdatasync.c imfs_fcntl.c \
24
    miniimfs_init.c
25
 
26
TERMIOS_C_FILES = cfgetispeed.c cfgetospeed.c cfsetispeed.c cfsetospeed.c \
27
    tcgetattr.c tcsetattr.c tcdrain.c tcflow.c tcflush.c tcgetprgrp.c \
28
    tcsendbreak.c tcsetpgrp.c termios.c termiosinitialize.c \
29
    termiosreserveresources.c
30
 
31
SYSTEM_CALL_C_FILES = open.c close.c read.c write.c lseek.c ioctl.c mkdir.c \
32
    mknod.c mkfifo.c rmdir.c chdir.c chmod.c fchmod.c chown.c link.c \
33
    unlink.c umask.c ftruncate.c utime.c fstat.c fcntl.c fpathconf.c \
34
    getdents.c fsync.c fdatasync.c pipe.c dup.c dup2.c symlink.c readlink.c \
35
    creat.c
36
 
37
DIRECTORY_SCAN_C_FILES = opendir.c closedir.c readdir.c rewinddir.c \
38
    scandir.c seekdir.c telldir.c getcwd.c
39
 
40
MALLOC_C_FILES = malloc.c __brk.c __sbrk.c
41
 
42
PASSWORD_GROUP_C_FILES = getpwent.c getgrent.c
43
 
44
TERMINAL_IDENTIFICATION_C_FILES = ctermid.c isatty.c ttyname.c ttyname_r.c
45
 
46
LIBC_GLUE_C_FILES = __getpid.c __gettod.c __times.c truncate.c access.c \
47
    stat.c lstat.c pathconf.c newlibc.c no_posix.c no_libc.c
48
 
49
UNIX_LIBC_C_FILES = unixlibc.c hosterr.c
50
 
51
COMMON_C_FILES = gxx_wrappers.c $(BASE_FS_C_FILES) $(MALLOC_C_FILES) $(TERMIOS_C_FILES) \
52
    $(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
53
 
54
UNIX_C_FILES = $(UNIX_LIBC_C_FILES) imfs_unixstub.c
55
 
56
EMBEDDED_C_FILES = $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
57
    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
58
    $(DIRECTORY_SCAN_C_FILES) $(IMFS_C_FILES)
59
 
60
if UNIX
61
C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES)
62
else
63
C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
64
endif
65
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
66
 
67
H_FILES = libcsupport.h imfs.h
68
SYS_H_FILES =
69
RTEMS_H_FILES = assoc.h error.h libio.h
70
noinst_HEADERS = libio_.h
71
 
72
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
73
include $(top_srcdir)/../../../automake/lib.am
74
 
75
PREINSTALL_FILES += $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems \
76
    $(PROJECT_INCLUDE)/sys $(H_FILES:%=$(PROJECT_INCLUDE)/%) \
77
    $(RTEMS_H_FILES:%=$(PROJECT_INCLUDE)/rtems/%) \
78
    $(SYS_H_FILES:%=$(PROJECT_INCLUDE)/sys/%)
79
 
80
$(PROJECT_INCLUDE):
81
        @$(mkinstalldirs) $@
82
$(PROJECT_INCLUDE)/rtems:
83
        @$(mkinstalldirs) $@
84
$(PROJECT_INCLUDE)/sys:
85
        @$(mkinstalldirs) $@
86
 
87
$(PROJECT_INCLUDE)/%.h: %.h
88
        $(INSTALL_DATA) $< $@
89
$(PROJECT_INCLUDE)/rtems/%.h: %.h
90
        $(INSTALL_DATA) $< $@
91
$(PROJECT_INCLUDE)/sys/%.h: %.h
92
        $(INSTALL_DATA) $< $@
93
 
94
TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
95
 
96
OBJS = $(C_O_FILES)
97
 
98
#
99
# Add local stuff here using +=
100
#
101
 
102
AM_CFLAGS += $(LIBC_DEFINES)
103
 
104
all-local: ${ARCH} $(TMPINSTALL_FILES)
105
 
106
$(LIB): ${OBJS}
107
        $(make-library)
108
 
109
$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
110
        $(INSTALL_DATA) $< $@
111
 
112
DOC_FILES = TODO CASES
113
 
114
EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
115
    $(UNIX_C_FILES) $(H_FILES) $(RTEMS_H_FILES) $(SYS_H_FILES)
116
 
117
include $(top_srcdir)/../../../automake/local.am

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.