diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-07 12:47:11 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-07 12:47:11 +0000 |
commit | 0d1013082a9f7d867e9782a24c672d165359805e (patch) | |
tree | 17629033ad8550b598b3a3f459dc959ee7bae6ad /test/unistd/Makefile | |
parent | 91f53c1e984e7ada1910bd0d75ede38f39959fef (diff) |
getopt tests
Diffstat (limited to 'test/unistd/Makefile')
-rw-r--r-- | test/unistd/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/unistd/Makefile b/test/unistd/Makefile index 251f4c78e..360392612 100644 --- a/test/unistd/Makefile +++ b/test/unistd/Makefile @@ -21,7 +21,7 @@ include $(TESTDIR)/Rules.mak -TARGETS=fork fork_glibc vfork vfork_glibc getcwd +TARGETS=fork fork_glibc vfork vfork_glibc getcwd getopt getopt_long all: $(TARGETS) getcwd: getcwd.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) @@ -79,6 +79,20 @@ vfork_glibc: vfork.c ../testsuite.h Makefile -./$@ -@ echo " " +getopt: getopt.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) + $(CC) $(CFLAGS) -c $< -o $@.o + $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIPTOOL) -x -R .note -R .comment $@ + ./$@ -abcXXX -9 + -@ echo " " + +getopt_long: getopt_long.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) + $(CC) $(CFLAGS) -c $< -o $@.o + $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIPTOOL) -x -R .note -R .comment $@ + ./$@ --add XXX --delete YYY --verbose + -@ echo " " + clean: rm -f *.[oa] *~ core $(TARGETS) |