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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [test/] [malloc/] [Makefile] - Blame information for rev 1771

Go to most recent revision | 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=malloc
24
TARGETS+=testmalloc testmalloc_glibc
25
TARGETS+=mallocbug mallocbug_glibc
26
TARGETS+=realloc0 realloc0_glibc
27
all: $(TARGETS)
28
 
29
malloc: malloc.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
testmalloc_source:
41
        -@ echo "-------"
42
        -@ echo "testmalloc.c source: "
43
        -@ echo " "
44
        -@ cat testmalloc.c
45
        -@ echo " "
46
 
47
testmalloc: testmalloc.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
48
        -@ echo "-------"
49
        -@ echo " "
50
        -@ echo "Compiling vs uClibc: "
51
        -@ echo " "
52
        $(CC) $(CFLAGS) -c $< -o $@.o
53
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
54
        $(STRIPTOOL) -x -R .note -R .comment $@
55
        -$(LDD) $@
56
        ls -l $@
57
        -./$@
58
        -@ echo " "
59
 
60
testmalloc_glibc: testmalloc.c Makefile
61
        -@ echo "-------"
62
        -@ echo " "
63
        -@ echo "Compiling vs GNU libc: "
64
        -@ echo " "
65
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
66
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
67
        $(STRIPTOOL) -x -R .note -R .comment $@
68
        -$(LDD) $@
69
        ls -l $@
70
        -./$@
71
        -@ echo " "
72
 
73
mallocbug: mallocbug.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
        -./$@
84
        -@ echo " "
85
 
86
mallocbug_glibc: mallocbug.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
        -./$@
97
        -@ echo " "
98
 
99
realloc0: realloc0.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
100
        -@ echo "-------"
101
        -@ echo " "
102
        -@ echo "Compiling vs uClibc: "
103
        -@ echo " "
104
        $(CC) $(CFLAGS) -c $< -o $@.o
105
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
106
        $(STRIPTOOL) -x -R .note -R .comment $@
107
        -$(LDD) $@
108
        ls -l $@
109
        -./$@
110
        -@ echo " "
111
 
112
realloc0_glibc: realloc0.c Makefile
113
        -@ echo "-------"
114
        -@ echo " "
115
        -@ echo "Compiling vs GNU libc: "
116
        -@ echo " "
117
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
118
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
119
        $(STRIPTOOL) -x -R .note -R .comment $@
120
        -$(LDD) $@
121
        ls -l $@
122
        -./$@
123
        -@ echo " "
124
 
125
 
126
clean:
127
        $(RM) *.[oa] *~ core $(TARGETS)
128
 
129
 

powered by: WebSVN 2.1.0

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