diff options
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 66 |
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: |