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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [linux/] [uClibc/] [test/] [string/] [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=string string_glibc
24
TARGETS+=testcopy testcopy_glibc
25
TARGETS+=#strerror #strsignal
26
 
27
all: $(TARGETS)
28
 
29
string: string.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
30
        -@ echo "-------"
31
        -@ echo " "
32
        -@ echo "Compiling vs uClibc: "
33
        -@ echo " "
34
        $(CC) $(CFLAGS) -c $< -o $@.o
35
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
36
        $(STRIPTOOL) -x -R .note -R .comment $@
37
        -./$@
38
        -@ echo " "
39
 
40
string_glibc: string.c Makefile
41
        -@ echo "-------"
42
        -@ echo " "
43
        -@ echo "Compiling vs GNU libc: "
44
        -@ echo " "
45
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
46
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
47
        $(STRIPTOOL) -x -R .note -R .comment $@
48
        -./$@
49
        -@ echo " "
50
 
51
testcopy: testcopy.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
52
        -@ echo "-------"
53
        -@ echo " "
54
        -@ echo "Compiling vs uClibc: "
55
        -@ echo " "
56
        $(CC) $(CFLAGS) -c $< -o $@.o
57
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
58
        $(STRIPTOOL) -x -R .note -R .comment $@
59
        -./$@ > testcopy.out
60
        -@ echo " "
61
 
62
testcopy_glibc: testcopy.c Makefile
63
        -@ echo "-------"
64
        -@ echo " "
65
        -@ echo "Compiling vs GNU libc: "
66
        -@ echo " "
67
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
68
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
69
        $(STRIPTOOL) -x -R .note -R .comment $@
70
        -./$@ > testcopy.gnu.out
71
        -@ echo " "
72
 
73
testcopy_diff: testcopy testcopy_glibc
74
        -@ echo "-------"
75
        -@ echo " "
76
        -@ echo "Diffing output: "
77
        -@ echo " "
78
        -diff -u testcopy.gnu.out testcopy.out
79
        -@ echo " "
80
 
81
 
82
strerror: ../../libc/string/strerror.c $(TESTDIR)/Config $(TESTDIR)/Rules.mak
83
        -@ echo "-------"
84
        -@ echo " "
85
        -@ echo "Compiling vs uClibc: "
86
        -@ echo " "
87
        $(CC) $(CFLAGS) -DCHECK_BUF -c $< -o $@.o
88
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
89
        $(STRIPTOOL) -x -R .note -R .comment $@
90
        -./$@
91
        -@ echo " "
92
 
93
strsignal: ../../libc/string/strsignal.c
94
        -@ echo "-------"
95
        -@ echo " "
96
        -@ echo "Compiling vs uClibc: "
97
        -@ echo " "
98
        $(CC) $(CFLAGS) -DCHECK_BUF -c $< -o $@.o
99
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
100
        $(STRIPTOOL) -x -R .note -R .comment $@
101
        -./$@
102
        -@ echo " "
103
 
104
 
105
clean:
106
        $(RM) *.[oa] *~ core $(TARGETS) testcopy.gnu.out testcopy.out
107
 
108
 

powered by: WebSVN 2.1.0

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