diff options
Diffstat (limited to 'test/stat/Makefile')
-rw-r--r-- | test/stat/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/stat/Makefile b/test/stat/Makefile new file mode 100644 index 000000000..4a1cf405f --- /dev/null +++ b/test/stat/Makefile @@ -0,0 +1,47 @@ +TESTDIR=../ +include $(TESTDIR)/Rules.mak + + + +TARGETS=stat stat_glibc + +all: $(TARGETS) + +stat_source: + -@ rm -f $(TARGETS) + -@ echo "-------" + -@ echo "stat.c source: " + -@ echo " " + -@ cat stat.c + -@ echo " " + +stat: stat.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC) + -@ echo "-------" + -@ echo " " + -@ echo "Compiling vs uClibc: " + -@ echo " " + $(TESTCC) $(CFLAGS) -c $< -o $@.o + $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIPTOOL) -x -R .note -R .comment $@ + -ldd $@ + ls $(LSFLAGS) $@ + -./$@ + -@ echo " " + +stat_glibc: stat.c Makefile + -@ echo "-------" + -@ echo " " + -@ echo "Compiling vs GNU libc: " + -@ echo " " + $(CC) $(CFLAGS) -c $< -o $@.o + $(CC) $(LDFLAGS) $@.o -o $@ + $(STRIPTOOL) -x -R .note -R .comment $@ + -ldd $@ + ls $(LSFLAGS) $@ + -./$@ + -@ echo " " + +clean: + rm -f *.[oa] *~ core $(TARGETS) + + |