OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libcsupport/] [Makefile.am] - Blame information for rev 1779

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

Line No. Rev Author Line
1 1026 ivang
##
2
##  Makefile.am,v 1.24 2002/07/30 23:26:17 joel Exp
3
##
4
 
5
ACLOCAL_AMFLAGS = -I ../aclocal
6
 
7
include $(top_srcdir)/../automake/multilib.am
8
include $(top_srcdir)/../automake/compile.am
9
include $(top_srcdir)/../automake/lib.am
10
 
11
include_HEADERS = include/chain.h include/console.h include/clockdrv.h \
12
    include/iosupp.h include/ringbuf.h include/rtc.h \
13
    include/spurious.h include/timerdrv.h include/vmeintr.h
14
 
15
LIBC_HFILES = include/stdint.h include/inttypes.h
16
include_HEADERS += $(LIBC_HFILES)
17
 
18
PREINSTALL_FILES = $(PROJECT_INCLUDE) \
19
    $(include_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
20
 
21
$(PROJECT_INCLUDE):
22
        @$(mkinstalldirs) $@
23
$(PROJECT_INCLUDE)/motorola:
24
        @$(mkinstalldirs) $@
25
$(PROJECT_INCLUDE)/rtems:
26
        @$(mkinstalldirs) $@
27
$(PROJECT_INCLUDE)/sys:
28
        @$(mkinstalldirs) $@
29
$(PROJECT_INCLUDE)/zilog:
30
        @$(mkinstalldirs) $@
31
 
32
$(PROJECT_INCLUDE)/%.h: include/%.h
33
        $(INSTALL_DATA) $< $@
34
 
35
## motorola
36
 
37
include_motoroladir = $(includedir)/motorola
38
 
39
include_motorola_HEADERS = include/motorola/mc68230.h include/motorola/mc68681.h
40
 
41
PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola \
42
    $(include_motorola_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
43
 
44
## rtems
45
include_rtemsdir = $(includedir)/rtems
46
 
47
include_rtems_HEADERS = \
48
    include/rtems/assoc.h include/rtems/error.h include/rtems/libcsupport.h \
49
    include/rtems/libio.h include/rtems/libio_.h \
50
    include/rtems/termiostypes.h
51
 
52
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems \
53
    $(include_rtems_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
54
 
55
## sys
56
 
57
include_sysdir = $(includedir)/sys
58
 
59
 
60
if NEWLIB
61
NEWLIB_H_FILES = include/sys/termios.h include/sys/cdefs.h include/sys/utsname.h
62
endif
63
 
64
include_sys_HEADERS = \
65
include/sys/filio.h \
66
include/sys/ioccom.h \
67
include/sys/ioctl.h \
68
include/sys/sockio.h \
69
include/sys/termios.h \
70
include/sys/ttycom.h \
71
$(NEWLIB_H_FILES)
72
 
73
PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \
74
    $(include_sys_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
75
 
76
## zilog
77
 
78
include_zilogdir = $(includedir)/zilog
79
 
80
include_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \
81
    include/zilog/z8536.h
82
 
83
PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog \
84
    $(include_zilog_HEADERS:include/%=$(PROJECT_INCLUDE)/%)
85
 
86
##  General stuff
87
all-local: $(PREINSTALL_FILES)
88
 
89
LIB = ${ARCH}/libcsupport.a
90
 
91
AM_CPPFLAGS += -Isrc
92
 
93
ERROR_C_FILES = src/error.c
94
 
95
ASSOCIATION_C_FILES = src/assoc.c src/assocnamebad.c
96
 
97
BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \
98
    src/libio_sockets.c src/eval.c src/fs_null_handlers.c src/privateenv.c
99
 
100
TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c src/cfsetospeed.c \
101
    src/tcgetattr.c src/tcsetattr.c src/tcdrain.c src/tcflow.c src/tcflush.c src/tcgetprgrp.c \
102
    src/tcsendbreak.c src/tcsetpgrp.c src/termios.c src/termiosinitialize.c \
103
    src/termiosreserveresources.c
104
 
105
SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c src/lseek.c src/ioctl.c src/mkdir.c \
106
    src/mknod.c src/mkfifo.c src/rmdir.c src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/chown.c \
107
    src/link.c src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c src/fcntl.c src/fpathconf.c \
108
    src/getdents.c src/fsync.c src/fdatasync.c src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c \
109
    src/creat.c src/chroot.c
110
 
111
DIRECTORY_SCAN_C_FILES = src/opendir.c src/closedir.c src/readdir.c src/rewinddir.c \
112
    src/scandir.c src/seekdir.c src/telldir.c src/getcwd.c
113
 
114
MALLOC_C_FILES = src/malloc.c src/mallocfreespace.c src/__brk.c src/__sbrk.c
115
 
116
PASSWORD_GROUP_C_FILES = src/getpwent.c src/getgrent.c
117
 
118
TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c src/isatty.c src/ttyname.c src/ttyname_r.c
119
 
120
LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c src/truncate.c src/access.c \
121
    src/stat.c src/lstat.c src/pathconf.c src/newlibc.c src/no_posix.c src/no_libc.c src/utsname.c
122
 
123
UNIX_LIBC_C_FILES = src/unixlibc.c src/hosterr.c
124
 
125
COMMON_C_FILES = src/gxx_wrappers.c src/printk.c $(BASE_FS_C_FILES) \
126
    $(MALLOC_C_FILES) $(TERMIOS_C_FILES) $(ERROR_C_FILES) \
127
    $(ASSOCIATION_C_FILES)
128
 
129
UNIX_C_FILES = $(UNIX_LIBC_C_FILES)
130
 
131
EMBEDDED_C_FILES = $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
132
    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
133
    $(DIRECTORY_SCAN_C_FILES)
134
 
135
if UNIX
136
C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES)
137
else
138
C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
139
endif
140
 
141
C_O_FILES = $(C_FILES:src/%.c=${ARCH}/%.$(OBJEXT))
142
OBJS = $(C_O_FILES)
143
 
144
#
145
# Add local stuff here using +=
146
#
147
 
148
AM_CFLAGS += $(LIBC_DEFINES)
149
 
150
all-local: ${ARCH} ${LIB}
151
 
152
${ARCH}/%.$(OBJEXT): src/%.c
153
        ${COMPILE} -o $@ -c $<
154
 
155
$(LIB): ${OBJS}
156
        $(make-library)
157
 
158
DOC_FILES = TODO CASES
159
 
160
EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
161
    $(UNIX_C_FILES)
162
 
163
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.