summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-17 02:16:00 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-17 02:16:00 +0000
commit7b9cd2baf91a1f7f0cd364758102cec4e0f9c2c1 (patch)
treea3bd6b70e3e860600c93b6c298aa274b236d53e9 /test/Makefile
parent34074d24da57f821430c6f9d1b2cb58e06794ed1 (diff)
More tests. Seems malloc isn't working...
-Erik
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile66
1 files changed, 51 insertions, 15 deletions
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: