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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [Makefile.am] - Blame information for rev 438

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

Line No. Rev Author Line
1 148 jeremybenn
## Process this file with automake to generate Makefile.in
2
 
3
AUTOMAKE_OPTIONS = cygnus
4
 
5
INCLUDES = -I$(srcdir)/include $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) $(INCLTDL)
6
 
7
if ELIX_LEVEL_1
8
argp_dir=
9
ARGP_LIB=
10
else
11
argp_dir=argp
12
ARGP_LIB=argp/libargp.la
13
endif
14
 
15
SUBDIRS = machine \
16
        $(argp_dir) \
17
        cmath \
18
        $(EXTRA_SUBDIRS)\
19
        .
20
SUBLIBS = \
21
        $(ARGP_LIB) \
22
        cmath/libcmath.la \
23
        $(EXTRA_SUBLIBS) \
24
        $(LINUX_MACH_LIB)
25
 
26
GENERAL_SOURCES = \
27
        aio.c \
28
        brk.c \
29
        calloc.c \
30
        callocr.c \
31
        cfreer.c \
32
        cfspeed.c \
33
        clock_getres.c \
34
        clock_gettime.c \
35
        clock_settime.c \
36
        flockfile.c \
37
        free.c \
38
        freer.c \
39
        ftok.c \
40
        funlockfile.c \
41
        getdate.c \
42
        getdate_err.c \
43
        gethostid.c \
44
        gethostname.c \
45
        getreent.c \
46
        ids.c \
47
        inode.c \
48
        io.c \
49
        ipc.c \
50
        isatty.c \
51
        linux.c \
52
        mallinfor.c \
53
        malloc.c \
54
        mallocr.c \
55
        mallstatsr.c \
56
        mmap.c \
57
        mq_close.c \
58
        mq_getattr.c \
59
        mq_notify.c \
60
        mq_open.c \
61
        mq_receive.c \
62
        mq_send.c \
63
        mq_setattr.c \
64
        mq_unlink.c \
65
        msize.c \
66
        msizer.c \
67
        mstats.c \
68
        mtrim.c \
69
        mtrimr.c \
70
        ntp_gettime.c \
71
        pread.c \
72
        process.c \
73
        prof-freq.c \
74
        profile.c \
75
        psignal.c \
76
        pwrite.c \
77
        raise.c \
78
        realloc.c \
79
        reallocr.c \
80
        rename.c \
81
        resource.c \
82
        sched.c \
83
        select.c \
84
        seteuid.c \
85
        sethostid.c \
86
        sethostname.c \
87
        shm_open.c \
88
        shm_unlink.c \
89
        sig.c \
90
        sigaction.c \
91
        sigqueue.c \
92
        signal.c \
93
        siglongjmp.c \
94
        sigset.c \
95
        sigwait.c \
96
        socket.c \
97
        sleep.c \
98
        strsignal.c \
99
        strverscmp.c \
100
        sysconf.c \
101
        sysctl.c \
102
        systat.c \
103
        tcdrain.c \
104
        tcsendbrk.c \
105
        termios.c \
106
        time.c \
107
        usleep.c \
108
        versionsort.c
109
 
110
ELIX_2_SOURCES = \
111
        aio64.c \
112
        confstr.c \
113
        ctermid.c \
114
        fclean.c \
115
        fpathconf.c \
116
        fstab.c \
117
        fstatvfs.c \
118
        fstatvfs64.c \
119
        ftw.c \
120
        ftw64.c \
121
        getopt.c \
122
        getopt1.c \
123
        getrlimit64.c \
124
        getwd.c \
125
        io64.c \
126
        malign.c \
127
        malignr.c \
128
        malloptr.c \
129
        mcheck.c \
130
        mntent.c \
131
        mntent_r.c \
132
        pathconf.c \
133
        pread64.c \
134
        pvallocr.c \
135
        pwrite64.c \
136
        readdir64.c \
137
        realpath.c \
138
        scandir64.c \
139
        setrlimit64.c \
140
        statvfs.c \
141
        statvfs64.c \
142
        ttyname_r.c \
143
        utimes.c \
144
        vallocr.c \
145
        versionsort64.c
146
 
147
ELIX_3_SOURCES = \
148
        system.c \
149
        wait.c
150
 
151
ELIX_4_SOURCES = \
152
        getlogin.c \
153
        getpwent.c \
154
        stack.c
155
 
156
if ELIX_LEVEL_1
157
ELIX_SOURCES =
158
else
159
if ELIX_LEVEL_2
160
ELIX_SOURCES = $(ELIX_2_SOURCES)
161
else
162
if ELIX_LEVEL_3
163
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES)
164
else
165
ELIX_SOURCES = $(ELIX_2_SOURCES) $(ELIX_3_SOURCES) $(ELIX_4_SOURCES)
166
endif
167
endif
168
endif
169
 
170
# This will handle both /usr/src/linux-2.4/include/asm/signal.h (in Red Hat Linux 7.1)
171
# and also /usr/src/linux/include/asm/signal.h in older versions of Red Hat Linux
172
SIGNAL_H = /usr/include/asm/signal.h
173
 
174
liblinux_la_LDFLAGS = -Xcompiler -nostdlib
175
 
176
ADD_OBJS = \
177
        $(LINUX_MACH_LIB)
178
 
179
if USE_LIBTOOL
180
noinst_LTLIBRARIES = liblinux.la
181
liblinux_la_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES)
182
liblinux_la_LIBADD = $(ADD_OBJS)
183
liblinux_la_DEPENDENCIES = $(ADD_OBJS)
184
LIBC_COMPILE = $(LTCOMPILE)
185
noinst_DATA = objectlist.awk.in
186
else
187
noinst_LIBRARIES = lib.a
188
lib_a_SOURCES = $(GENERAL_SOURCES) $(ELIX_SOURCES)
189
lib_a_LIBADD = $(ADD_OBJS)
190
lib_a_DEPENDENCIES = $(ADD_OBJS)
191
lib_a_CFLAGS = $(AM_CFLAGS)
192
LIBC_COMPILE = $(COMPILE)
193
noinst_DATA =
194
 
195
lib.a:  $(lib_a_OBJECTS)
196
        rm -f $@
197
        rm -rf tmp
198
        mkdir tmp
199
        cd tmp; \
200
        for i in $(SUBLIBS); do \
201
          $(AR) x ../$$i; \
202
        done; \
203
        $(AR) $(AR_FLAGS) ../$@ *.o
204
        $(RANLIB) $@
205
        rm -rf tmp
206
 
207
endif # USE_LIBTOOL
208
 
209
objectlist.awk.in: $(noinst_LTLIBRARIES) $(SUBLIBS)
210
        -rm -f objectlist.awk.in
211
        for i in `ls *.lo` ; \
212
          do \
213
            echo $$i `pwd`/$$i >> objectlist.awk.in ; \
214
        done
215
        for j in $(SUBLIBS) ; \
216
          do \
217
            export i=`echo $$j | sed -e 's,\(.*\)\/[^\/]*$$,\1,'`; \
218
            if test $$i != "." && test -f $$i/objectlist.awk.in; then \
219
                cat $$i/objectlist.awk.in >> objectlist.awk.in ; \
220
            fi; \
221
        done
222
 
223
all: crt0.o crt1.o
224
 
225
crt0.o: machine/crt0.o
226
        rm -f $@
227
        ln machine/crt0.o $@ >/dev/null 2>/dev/null || cp machine/crt0.o $@
228
 
229
machine/crt0.o: ; @true
230
 
231
$(lpfx)sig.$(oext):     siglist.inc
232
 
233
siglist.inc:
234
                $(AWK) '{ max = 32 } \
235
                  /#define.SIG.*[1-9][0-9]*/ { n[$$3] = $$2 } \
236
                  /#define.NSIG.*[1-9][0-9]*/ { max = $$3 } \
237
                  /#define.SIGUNUSED/ \
238
                    { for (i = 0; i <= max; i++) print "\"" n[i] "\"," }' \
239
                    < $(SIGNAL_H) > siglist.inc || \
240
                    { rm -f siglist.inc; exit 1; }
241
 
242
AM_CFLAGS = -I $(srcdir)/../../stdio
243
ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
244
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host

powered by: WebSVN 2.1.0

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