summaryrefslogtreecommitdiff
path: root/test/stdlib/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-03 06:45:58 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-03 06:45:58 +0000
commitf9158d441880222b1ba287947ebc863785bf557c (patch)
tree39cceddbe7fc1457a8224a3b4270db1099d1a991 /test/stdlib/Makefile
parent4836768df76d3919451aa9f847182c8f5f4068e7 (diff)
Scrub up the tests a bit, and force everybody to use the
build dir, so nothing need be installed... -Erik
Diffstat (limited to 'test/stdlib/Makefile')
-rw-r--r--test/stdlib/Makefile50
1 files changed, 25 insertions, 25 deletions
diff --git a/test/stdlib/Makefile b/test/stdlib/Makefile
index 863a56492..f551880f7 100644
--- a/test/stdlib/Makefile
+++ b/test/stdlib/Makefile
@@ -17,16 +17,16 @@ testmalloc_source:
-@ cat testmalloc.c
-@ echo " "
-testmalloc: testmalloc.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
+testmalloc: testmalloc.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
-@ echo "-------"
-@ echo " "
-@ echo "Compiling vs uClibc: "
-@ echo " "
- $(TESTCC) $(TEST_CFLAGS) -c $< -o $@.o
- $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(CC) $(CFLAGS) -c $< -o $@.o
+ $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
-ldd $@
- ls $(LSFLAGS) $@
+ ls -l $@
-./$@
-@ echo " "
@@ -35,24 +35,24 @@ testmalloc_glibc: testmalloc.c Makefile
-@ echo " "
-@ echo "Compiling vs GNU libc: "
-@ echo " "
- $(CC) $(CFLAGS) -c $< -o $@.o
- $(CC) $(LDFLAGS) $@.o -o $@
+ $(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
+ $(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
-ldd $@
- ls $(LSFLAGS) $@
+ ls -l $@
-./$@
-@ echo " "
-mallocbug: mallocbug.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
+mallocbug: mallocbug.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
-@ echo "-------"
-@ echo " "
-@ echo "Compiling vs uClibc: "
-@ echo " "
- $(TESTCC) $(TEST_CFLAGS) -c $< -o $@.o
- $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(CC) $(CFLAGS) -c $< -o $@.o
+ $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
-ldd $@
- ls $(LSFLAGS) $@
+ ls -l $@
-./$@
-@ echo " "
@@ -61,11 +61,11 @@ mallocbug_glibc: mallocbug.c Makefile
-@ echo " "
-@ echo "Compiling vs GNU libc: "
-@ echo " "
- $(CC) $(CFLAGS) -c $< -o $@.o
- $(CC) $(LDFLAGS) $@.o -o $@
+ $(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
+ $(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
-ldd $@
- ls $(LSFLAGS) $@
+ ls -l $@
-./$@
-@ echo " "
@@ -76,13 +76,13 @@ teststrtol_source:
-@ cat teststrtol.c
-@ echo " "
-teststrtol: teststrtol.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
+teststrtol: teststrtol.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
-@ echo "-------"
-@ echo " "
-@ echo "Compiling vs uClibc: "
-@ echo " "
- $(TESTCC) $(TEST_CFLAGS) -c $< -o $@.o
- $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(CC) $(CFLAGS) -c $< -o $@.o
+ $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
-ldd $@
ls -sh $@
@@ -94,8 +94,8 @@ teststrtol_glibc: teststrtol.c Makefile
-@ echo " "
-@ echo "Compiling vs GNU libc: "
-@ echo " "
- $(CC) $(CFLAGS) -c $< -o $@.o
- $(CC) $(LDFLAGS) $@.o -o $@
+ $(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
+ $(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
-ldd $@
ls -sh $@
@@ -110,16 +110,16 @@ teststrtol_diff: teststrtol_glibc teststrtol
-diff -u teststrtol_glibc.out teststrtol.out
-@ echo " "
-qsort: qsort.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
+qsort: qsort.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
-@ echo "-------"
-@ echo " "
-@ echo "Compiling vs uClibc: "
-@ echo " "
- $(TESTCC) $(TEST_CFLAGS) -c $< -o $@.o
- $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(CC) $(CFLAGS) -c $< -o $@.o
+ $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
-ldd $@
- ls $(LSFLAGS) $@
+ ls -l $@
-./$@ > $@.out
-@ echo " "
@@ -128,8 +128,8 @@ qsort_glibc: qsort.c Makefile
-@ echo " "
-@ echo "Compiling vs GNU libc: "
-@ echo " "
- $(CC) $(CFLAGS) -c $< -o $@.o
- $(CC) $(LDFLAGS) $@.o -o $@
+ $(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
+ $(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
-ldd $@
ls -sh $@