From 7b9cd2baf91a1f7f0cd364758102cec4e0f9c2c1 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Wed, 17 May 2000 02:16:00 +0000 Subject: More tests. Seems malloc isn't working... -Erik --- test/Makefile | 66 +++++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 15 deletions(-) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index 6ff6d4cbf..09ba7868e 100644 --- a/test/Makefile +++ b/test/Makefile @@ -16,11 +16,12 @@ ifndef $(STRIPTOOL) endif STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $@ -TARGETS=hello_source hello_glibc hello +TARGETS=hello_source hello_glibc hello testmalloc_source testmalloc_glibc testmalloc all: $(TARGETS) hello_source: + -@ rm -f $(TARGETS) -@ echo "-------" -@ echo "hello.c source: " -@ echo " " @@ -30,25 +31,60 @@ hello_source: hello: hello.c Makefile $(TOPDIR)libc.a -@ echo "-------" -@ echo " " - -@ echo -n "Compiling vs uC-Libc: " - -@ $(CC) $(XCFLAGS) -c $< -o $@.o - -@ $(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS) - -@ $(STRIP) - -@ echo "done." - -@ ldd $@ - -@ ls -sh $@ + -@ echo "Compiling vs uC-Libc: " + -@ echo " " + $(CC) $(XCFLAGS) -c $< -o $@.o + $(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIP) + ldd $@ + ls -sh $@ + -./$@ -@ echo " " hello_glibc: hello.c Makefile $(TOPDIR)libc.a -@ echo "-------" -@ echo " " - -@ echo -n "Compiling vs GNU libc: " - -@ $(CC) $(YCFLAGS) -c $< -o $@.o - -@ $(CC) $(YLDFLAGS) --static $@.o -o $@ - -@ $(STRIP) - -@ echo "done." - -@ ldd $@ - -@ ls -sh $@ + -@ echo "Compiling vs GNU libc: " + -@ echo " " + $(CC) $(YCFLAGS) -c $< -o $@.o + $(CC) $(YLDFLAGS) --static $@.o -o $@ + $(STRIP) + ldd $@ + ls -sh $@ + -./$@ + -@ echo " " + +testmalloc_source: + -@ echo "-------" + -@ echo "testmalloc.c source: " + -@ echo " " + -@ cat testmalloc.c + -@ echo " " + +testmalloc: testmalloc.c Makefile $(TOPDIR)libc.a + -@ echo "-------" + -@ echo " " + -@ echo "Compiling vs uC-Libc: " + -@ echo " " + $(CC) $(XCFLAGS) -c $< -o $@.o + $(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIP) + ldd $@ + ls -sh $@ + -./$@ + -@ echo " " + +testmalloc_glibc: testmalloc.c Makefile $(TOPDIR)libc.a + -@ echo "-------" + -@ echo " " + -@ echo "Compiling vs GNU libc: " + -@ echo " " + $(CC) $(YCFLAGS) -c $< -o $@.o + $(CC) $(YLDFLAGS) --static $@.o -o $@ + $(STRIP) + ldd $@ + ls -sh $@ + -./$@ -@ echo " " clean: -- cgit v1.2.3