summaryrefslogtreecommitdiff
path: root/test/string
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/string
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/string')
-rw-r--r--test/string/Makefile30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/string/Makefile b/test/string/Makefile
index 715595c6f..36d8a9cff 100644
--- a/test/string/Makefile
+++ b/test/string/Makefile
@@ -8,13 +8,13 @@ TARGETS+=strerror #strsignal
all: $(TARGETS)
-string: string.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
+string: string.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 $@
-./$@
-@ echo " "
@@ -24,19 +24,19 @@ string_glibc: string.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 $@
-./$@
-@ echo " "
-testcopy: testcopy.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
+testcopy: testcopy.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 $@
-./$@ > testcopy.out
-@ echo " "
@@ -46,8 +46,8 @@ testcopy_glibc: testcopy.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 $@
-./$@ > testcopy.gnu.out
-@ echo " "
@@ -61,13 +61,13 @@ testcopy_diff: testcopy testcopy_glibc
-@ echo " "
-strerror: ../../libc/string/strerror.c $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
+strerror: ../../libc/string/strerror.c $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
-@ echo "-------"
-@ echo " "
-@ echo "Compiling vs uClibc: "
-@ echo " "
- $(TESTCC) $(TEST_CFLAGS) -DCHECK_BUF -c $< -o $@.o
- $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(CC) $(CFLAGS) -DCHECK_BUF -c $< -o $@.o
+ $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
-./$@
-@ echo " "
@@ -77,8 +77,8 @@ strsignal: ../../libc/string/strsignal.c
-@ echo " "
-@ echo "Compiling vs uClibc: "
-@ echo " "
- $(TESTCC) $(CFLAGS) -DCHECK_BUF -c $< -o $@.o
- $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(CC) $(CFLAGS) -DCHECK_BUF -c $< -o $@.o
+ $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
-./$@
-@ echo " "