aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/tests/Makefile
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-11-29 06:47:42 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-11-29 06:47:42 +0100
commit599878043dda6c18092e14e7f40e6092c758d54c (patch)
tree51aa341420404f2ffff24d13bdd2ada37db9de8c /libglouglou/tests/Makefile
parentcorrectly handle new users (diff)
downloadglouglou-599878043dda6c18092e14e7f40e6092c758d54c.tar.xz
glouglou-599878043dda6c18092e14e7f40e6092c758d54c.zip
fix Makefile for automatic compilation of new unittests
Diffstat (limited to 'libglouglou/tests/Makefile')
-rw-r--r--libglouglou/tests/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/libglouglou/tests/Makefile b/libglouglou/tests/Makefile
index a68c095..4318d6c 100644
--- a/libglouglou/tests/Makefile
+++ b/libglouglou/tests/Makefile
@@ -3,17 +3,14 @@ LDFLAGS=-L../ -levent -lglouglou
SOURCES = $(shell echo *.c)
OBJECTS = $(SOURCES:.c=.o)
-TARGET = $(SOURCES:.c=)
+TARGETS = $(SOURCES:.c=)
-all: $(TARGET)
+all: $(TARGETS)
-$(TARGET): $(OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJECTS)
-
-run: $(TARGET)
+run: $(TARGETS)
@count=0 ;\
errors=0 ;\
- for test in $(TARGET); do \
+ for test in $(TARGETS); do \
echo =============================================================================== ;\
echo $$test ;\
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:../ ./$$test ;\
@@ -48,4 +45,4 @@ run_loop:
exit 0
clean:
- rm -f $(TARGET) $(OBJECTS)
+ rm -f $(TARGETS) $(OBJECTS)