From e44c028c15f596875449eed8885824add58e6865 Mon Sep 17 00:00:00 2001
From: Eric Andersen <andersen@codepoet.org>
Date: Sat, 24 Aug 2002 21:23:58 +0000
Subject: Simple shared memory test

---
 test/misc/Makefile | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

(limited to 'test/misc/Makefile')

diff --git a/test/misc/Makefile b/test/misc/Makefile
index 60476890f..ae49a865a 100644
--- a/test/misc/Makefile
+++ b/test/misc/Makefile
@@ -19,7 +19,7 @@
 TESTDIR=../
 include $(TESTDIR)/Rules.mak
 
-TARGETS=outb
+TARGETS=sem outb
 all: $(TARGETS)
 
 outb: outb.c ../testsuite.h Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
@@ -32,6 +32,18 @@ outb: outb.c ../testsuite.h Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC
 	$(STRIPTOOL) -x -R .note -R .comment $@
 	./$@
 	-@ echo " "
+
+sem: sem.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 " "
+
 clean:
 	rm -f *.[oa] *~ core $(TARGETS)
 
-- 
cgit v1.2.3