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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [linux/] [uClibc/] [test/] [pwd_grp/] [Makefile] - Blame information for rev 1782

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
TARGETS=test_pwd test_pwd_glibc
24
TARGETS+=test_grp test_grp_glibc
25
TARGETS+=pwcat pwcat_glibc
26
TARGETS+=grcat grcat_glibc
27
TARGETS+=getgroups getgroups_glibc
28
TARGETS+=test_pwd_diff test_grp_diff pwcat_diff grcat_diff getgroups_diff
29
 
30
all: $(TARGETS)
31
 
32
test_pwd: test_pwd.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
33
        -@ echo "-------"
34
        -@ echo " "
35
        -@ echo "Compiling vs uClibc: "
36
        -@ echo " "
37
        $(CC) $(CFLAGS) -c $< -o $@.o
38
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
39
        $(STRIPTOOL) -x -R .note -R .comment $@
40
        -./$@ 2>&1 >test_pwd.out
41
        -@ echo " "
42
 
43
test_pwd_glibc: test_pwd.c Makefile
44
        -@ echo "-------"
45
        -@ echo " "
46
        -@ echo "Compiling vs GNU libc: "
47
        -@ echo " "
48
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
49
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
50
        $(STRIPTOOL) -x -R .note -R .comment $@
51
        -./$@ 2>&1 >test_pwd_glibc.out
52
        -@ echo " "
53
 
54
test_grp: test_grp.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
55
        -@ echo "-------"
56
        -@ echo " "
57
        -@ echo "Compiling vs uClibc: "
58
        -@ echo " "
59
        $(CC) $(CFLAGS) -c $< -o $@.o
60
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
61
        $(STRIPTOOL) -x -R .note -R .comment $@
62
        -./$@ 2>&1 >test_grp.out
63
        -@ echo " "
64
 
65
test_grp_glibc: test_grp.c Makefile
66
        -@ echo "-------"
67
        -@ echo " "
68
        -@ echo "Compiling vs GNU libc: "
69
        -@ echo " "
70
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
71
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
72
        $(STRIPTOOL) -x -R .note -R .comment $@
73
        -./$@ 2>&1 >test_grp_glibc.out
74
        -@ echo " "
75
 
76
pwcat: pwcat.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
77
        -@ echo "-------"
78
        -@ echo " "
79
        -@ echo "Compiling vs uClibc: "
80
        -@ echo " "
81
        $(CC) $(CFLAGS) -c $< -o $@.o
82
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
83
        $(STRIPTOOL) -x -R .note -R .comment $@
84
        -./$@ 2>&1 >pwcat.out
85
        -@ echo " "
86
 
87
pwcat_glibc: pwcat.c Makefile
88
        -@ echo "-------"
89
        -@ echo " "
90
        -@ echo "Compiling vs GNU libc: "
91
        -@ echo " "
92
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
93
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
94
        $(STRIPTOOL) -x -R .note -R .comment $@
95
        -./$@ 2>&1 >pwcat_glibc.out
96
        -@ echo " "
97
 
98
grcat: grcat.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
99
        -@ echo "-------"
100
        -@ echo " "
101
        -@ echo "Compiling vs uClibc: "
102
        -@ echo " "
103
        $(CC) $(CFLAGS) -c $< -o $@.o
104
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
105
        $(STRIPTOOL) -x -R .note -R .comment $@
106
        -./$@ 2>&1 >grcat.out
107
        -@ echo " "
108
 
109
grcat_glibc: grcat.c Makefile
110
        -@ echo "-------"
111
        -@ echo " "
112
        -@ echo "Compiling vs GNU libc: "
113
        -@ echo " "
114
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
115
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
116
        $(STRIPTOOL) -x -R .note -R .comment $@
117
        -./$@ 2>&1 >grcat_glibc.out
118
        -@ echo " "
119
 
120
getgroups: getgroups.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
121
        -@ echo "-------"
122
        -@ echo " "
123
        -@ echo "Compiling vs uClibc: "
124
        -@ echo " "
125
        $(CC) $(CFLAGS) -c $< -o $@.o
126
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
127
        $(STRIPTOOL) -x -R .note -R .comment $@
128
        -./$@ 2>&1 >getgroups.out
129
        -@ echo " "
130
 
131
getgroups_glibc: getgroups.c Makefile
132
        -@ echo "-------"
133
        -@ echo " "
134
        -@ echo "Compiling vs GNU libc: "
135
        -@ echo " "
136
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
137
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
138
        $(STRIPTOOL) -x -R .note -R .comment $@
139
        -./$@ 2>&1 >getgroups_glibc.out
140
        -@ echo " "
141
 
142
test_pwd_diff: test_pwd_glibc test_pwd
143
        -@ echo "-------"
144
        -@ echo " "
145
        -@ echo "Diffing output: "
146
        -@ echo " "
147
        -diff -u test_pwd_glibc.out test_pwd.out
148
        -@ echo " "
149
 
150
test_grp_diff: test_grp_glibc test_grp
151
        -@ echo "-------"
152
        -@ echo " "
153
        -@ echo "Diffing output: "
154
        -@ echo " "
155
        -diff -u test_grp_glibc.out test_grp.out
156
        -@ echo " "
157
 
158
pwcat_diff: pwcat_glibc pwcat
159
        -@ echo "-------"
160
        -@ echo " "
161
        -@ echo "Diffing output: "
162
        -@ echo " "
163
        -diff -u pwcat_glibc.out pwcat.out
164
        -@ echo " "
165
 
166
grcat_diff: grcat_glibc grcat
167
        -@ echo "-------"
168
        -@ echo " "
169
        -@ echo "Diffing output: "
170
        -@ echo " "
171
        -diff -u grcat_glibc.out grcat.out
172
        -@ echo " "
173
 
174
getgroups_diff: getgroups_glibc getgroups
175
        -@ echo "-------"
176
        -@ echo " "
177
        -@ echo "Diffing output: "
178
        -@ echo " "
179
        -diff -u getgroups_glibc.out getgroups.out
180
        -@ echo " "
181
 
182
clean:
183
        $(RM) *.[oa] *~ core $(TARGETS) *.out
184
 
185
 

powered by: WebSVN 2.1.0

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