summaryrefslogtreecommitdiff
path: root/test/unistd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/unistd/Makefile')
-rw-r--r--test/unistd/Makefile24
1 files changed, 23 insertions, 1 deletions
diff --git a/test/unistd/Makefile b/test/unistd/Makefile
index 49febf79a..faf716feb 100644
--- a/test/unistd/Makefile
+++ b/test/unistd/Makefile
@@ -3,7 +3,7 @@ include $(TESTDIR)/Rules.mak
-TARGETS=fork fork_glibc
+TARGETS=fork fork_glibc vfork vfork_glibc
all: $(TARGETS)
fork: fork.c ../testsuite.h Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
@@ -28,6 +28,28 @@ fork_glibc: fork.c ../testsuite.h Makefile
-./$@
-@ echo " "
+vfork: vfork.c ../testsuite.h Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Compiling vs uClibc: "
+ -@ echo " "
+ $(CC) $(CFLAGS) -c $< -o $@.o
+ $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(STRIPTOOL) -x -R .note -R .comment $@
+ ./$@
+ -@ echo " "
+
+vfork_glibc: vfork.c ../testsuite.h Makefile
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Compiling vs GNU libc: "
+ -@ echo " "
+ $(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
+ $(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $@
+ -./$@
+ -@ echo " "
+
clean:
rm -f *.[oa] *~ core $(TARGETS)