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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [test/] [stdlib/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
# Makefile for uClibc
2
#
3
# Copyright (C) 2000,2001 Erik Andersen 
4
#
5
# This program is free software; you can redistribute it and/or modify it under
6
# the terms of the GNU Library General Public License as published by the Free
7
# Software Foundation; either version 2 of the License, or (at your option) any
8
# later version.
9
#
10
# This program is distributed in the hope that it will be useful, but WITHOUT
11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
13
# details.
14
#
15
# You should have received a copy of the GNU Library General Public License
16
# along with this program; if not, write to the Free Software Foundation, Inc.,
17
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
 
19
TESTDIR=../
20
include $(TESTDIR)/Rules.mak
21
 
22
 
23
 
24
TARGETS+=teststrtol teststrtol_glibc teststrtol_diff
25
TARGETS+=qsort qsort_glibc qsort_diff
26
TARGETS+=teston_exit teston_exit_glibc teston_exit_diff
27
TARGETS+=testatexit testatexit_glibc testatexit_diff
28
TARGETS+=ptytest
29
 
30
all: $(TARGETS)
31
 
32
teststrtol_source:
33
        -@ echo "-------"
34
        -@ echo "teststrtol.c source: "
35
        -@ echo " "
36
        -@ cat teststrtol.c
37
        -@ echo " "
38
 
39
teststrtol: teststrtol.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
40
        -@ echo "-------"
41
        -@ echo " "
42
        -@ echo "Compiling vs uClibc: "
43
        -@ echo " "
44
        $(CC) $(CFLAGS) -c $< -o $@.o
45
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
46
        $(STRIPTOOL) -x -R .note -R .comment $@
47
        -$(LDD) $@
48
        ls -l $@
49
        -./$@ > $@.out
50
        -@ echo " "
51
 
52
teststrtol_glibc: teststrtol.c Makefile
53
        -@ echo "-------"
54
        -@ echo " "
55
        -@ echo "Compiling vs GNU libc: "
56
        -@ echo " "
57
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
58
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
59
        $(STRIPTOOL) -x -R .note -R .comment $@
60
        -$(LDD) $@
61
        ls -l $@
62
        -./$@ > $@.out
63
        -@ echo " "
64
 
65
teststrtol_diff: teststrtol_glibc teststrtol
66
        -@ echo "-------"
67
        -@ echo " "
68
        -@ echo "Diffing output: "
69
        -@ echo " "
70
        -diff -u teststrtol_glibc.out teststrtol.out
71
        -@ echo " "
72
 
73
qsort: qsort.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
74
        -@ echo "-------"
75
        -@ echo " "
76
        -@ echo "Compiling vs uClibc: "
77
        -@ echo " "
78
        $(CC) $(CFLAGS) -c $< -o $@.o
79
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
80
        $(STRIPTOOL) -x -R .note -R .comment $@
81
        -$(LDD) $@
82
        ls -l $@
83
        -./$@ > $@.out
84
        -@ echo " "
85
 
86
qsort_glibc: qsort.c Makefile
87
        -@ echo "-------"
88
        -@ echo " "
89
        -@ echo "Compiling vs GNU libc: "
90
        -@ echo " "
91
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
92
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
93
        $(STRIPTOOL) -x -R .note -R .comment $@
94
        -$(LDD) $@
95
        ls -l $@
96
        -./$@ > $@.out
97
        -@ echo " "
98
 
99
qsort_diff: qsort_glibc qsort
100
        -@ echo "-------"
101
        -@ echo " "
102
        -@ echo "Diffing output: "
103
        -@ echo " "
104
        -diff -u qsort_glibc.out qsort.out
105
        -@ echo " "
106
 
107
teston_exit: teston_exit.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
108
        -@ echo "-------"
109
        -@ echo " "
110
        -@ echo "Compiling vs uClibc: "
111
        -@ echo " "
112
        $(CC) $(CFLAGS) -c $< -o $@.o
113
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
114
        $(STRIPTOOL) -x -R .note -R .comment $@
115
        -$(LDD) $@
116
        ls -l $@
117
        -./$@ > $@.out
118
        -@ echo " "
119
 
120
teston_exit_glibc: teston_exit.c Makefile
121
        -@ echo "-------"
122
        -@ echo " "
123
        -@ echo "Compiling vs GNU libc: "
124
        -@ echo " "
125
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
126
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
127
        $(STRIPTOOL) -x -R .note -R .comment $@
128
        -$(LDD) $@
129
        ls -l $@
130
        -./$@ > $@.out
131
        -@ echo " "
132
 
133
teston_exit_diff: teston_exit_glibc teston_exit
134
        -@ echo "-------"
135
        -@ echo " "
136
        -@ echo "Diffing output: "
137
        -@ echo " "
138
        -diff -u teston_exit_glibc.out teston_exit.out
139
        -@ echo " "
140
 
141
testatexit: testatexit.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
142
        -@ echo "-------"
143
        -@ echo " "
144
        -@ echo "Compiling vs uClibc: "
145
        -@ echo " "
146
        $(CC) $(CFLAGS) -c $< -o $@.o
147
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
148
        $(STRIPTOOL) -x -R .note -R .comment $@
149
        -$(LDD) $@
150
        ls -l $@
151
        -./$@ > $@.out
152
        -@ echo " "
153
 
154
testatexit_glibc: testatexit.c Makefile
155
        -@ echo "-------"
156
        -@ echo " "
157
        -@ echo "Compiling vs GNU libc: "
158
        -@ echo " "
159
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
160
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
161
        $(STRIPTOOL) -x -R .note -R .comment $@
162
        -$(LDD) $@
163
        ls -l $@
164
        -./$@ > $@.out
165
        -@ echo " "
166
 
167
testatexit_diff: testatexit_glibc testatexit
168
        -@ echo "-------"
169
        -@ echo " "
170
        -@ echo "Diffing output: "
171
        -@ echo " "
172
        -diff -u testatexit_glibc.out testatexit.out
173
        -@ echo " "
174
 
175
ptytest: ptytest.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
176
        -@ echo "-------"
177
        -@ echo " "
178
        -@ echo "Compiling vs uClibc: "
179
        -@ echo " "
180
        $(CC) $(CFLAGS) -c $< -o $@.o
181
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
182
        $(STRIPTOOL) -x -R .note -R .comment $@
183
        -$(LDD) $@
184
        ls -l $@
185
        -./$@
186
        -@ echo " "
187
 
188
 
189
clean:
190
        $(RM) *.[oa] *~ core $(TARGETS) *.out
191
 
192
 

powered by: WebSVN 2.1.0

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