summaryrefslogtreecommitdiff
path: root/test/stat/Makefile
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2001-05-25 23:04:51 +0000
committerDavid Schleef <ds@schleef.org>2001-05-25 23:04:51 +0000
commit55021a78202f4960f5294c55668b400854c7ba65 (patch)
tree95b5fb98250e38cd2c3e0630ae88f5d902fed848 /test/stat/Makefile
parent43989bfe8b133c09a0b57a0a4a2249e64f3bc86d (diff)
Test to check for proper stat mangling.
Diffstat (limited to 'test/stat/Makefile')
-rw-r--r--test/stat/Makefile47
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)
+
+