summaryrefslogtreecommitdiff
path: root/test/args/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-09 04:48:29 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-09 04:48:29 +0000
commit6340fb74f3cead5fc6f32be968d41d5931bcc863 (patch)
tree67df54c069aa58150388684e8b4f349575aaeac3 /test/args/Makefile
parent8b20f6ceaeac307548ab6b0b5ef9c7cc7467ae65 (diff)
Add in a silly test to check that argc, argv, and environ are
working as expected... -Erik
Diffstat (limited to 'test/args/Makefile')
-rw-r--r--test/args/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/args/Makefile b/test/args/Makefile
new file mode 100644
index 000000000..6593be0aa
--- /dev/null
+++ b/test/args/Makefile
@@ -0,0 +1,22 @@
+TESTDIR=../
+include $(TESTDIR)/Rules.mak
+
+
+TARGETS=arg_test
+all: $(TARGETS)
+
+arg_test: arg_test.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 $@
+ -./$@ a b c d e f g h
+ -@ echo " "
+
+clean:
+ rm -f *.[oa] *~ core $(TARGETS)
+
+