3 # Copyright (C) 2000,2001 Erik Andersen <andersen@uclibc.org>
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
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
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
22 #EXTRA_LIBS += -lc -lgcc -lpthread
23 EXTRA_LIBS += -lpthread
25 TARGETS=ex1 ex2 ex3 ex4 ex5 ex6 ex7
28 ex1: ex1.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
31 -@ echo "Compiling vs uClibc: "
33 $(CC) $(CFLAGS) -c $< -o $@.o
34 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
35 $(STRIPTOOL) -x -R .note -R .comment $@
39 ex2: ex2.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
42 -@ echo "Compiling vs uClibc: "
44 $(CC) $(CFLAGS) -c $< -o $@.o
45 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
46 $(STRIPTOOL) -x -R .note -R .comment $@
50 ex3: ex3.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
53 -@ echo "Compiling vs uClibc: "
55 $(CC) $(CFLAGS) -c $< -o $@.o
56 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
57 $(STRIPTOOL) -x -R .note -R .comment $@
61 ex4: ex4.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
64 -@ echo "Compiling vs uClibc: "
66 $(CC) $(CFLAGS) -c $< -o $@.o
67 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
68 $(STRIPTOOL) -x -R .note -R .comment $@
72 ex5: ex5.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
75 -@ echo "Compiling vs uClibc: "
77 $(CC) $(CFLAGS) -c $< -o $@.o
78 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
79 $(STRIPTOOL) -x -R .note -R .comment $@
83 ex6: ex6.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
86 -@ echo "Compiling vs uClibc: "
88 $(CC) $(CFLAGS) -c $< -o $@.o
89 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
90 $(STRIPTOOL) -x -R .note -R .comment $@
94 ex7: ex7.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
97 -@ echo "Compiling vs uClibc: "
99 $(CC) $(CFLAGS) -c $< -o $@.o
100 $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
101 $(STRIPTOOL) -x -R .note -R .comment $@
106 $(RM) *.[oa] *~ core $(TARGETS)