From 599878043dda6c18092e14e7f40e6092c758d54c Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Thu, 29 Nov 2012 06:47:42 +0100 Subject: fix Makefile for automatic compilation of new unittests --- libglouglou/tests/Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'libglouglou/tests/Makefile') 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) -- cgit v1.2.3-59-g8ed1b