summaryrefslogtreecommitdiff
path: root/test/signal/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/signal/Makefile')
-rw-r--r--test/signal/Makefile24
1 files changed, 23 insertions, 1 deletions
diff --git a/test/signal/Makefile b/test/signal/Makefile
index 07bd58cee..b3c6eee79 100644
--- a/test/signal/Makefile
+++ b/test/signal/Makefile
@@ -21,7 +21,7 @@ include $(TESTDIR)/Rules.mak
CFLAGS += -D_GNU_SOURCE
-TARGETS=signal signal_glibc
+TARGETS=signal signal_glibc sigchld sigchld_glibc
all: $(TARGETS)
signal: signal.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
@@ -46,6 +46,28 @@ signal_glibc: signal.c Makefile
-./$@
-@ echo " "
+sigchld: sigchld.c 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 " "
+
+sigchld_glibc: sigchld.c 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)