Commit 26c2307f by Bertrand Mesot Committed by Cédric Tissières

Name test files so that they can be compiled automatically

parent a2a8c634
......@@ -24,12 +24,15 @@ ARCHIVES = \
../samdump2/libsamdump2.a \
../ntproba/libntproba.a
all: alltests
TEST_SOURCES=$(wildcard test_*.c)
TARGETS=$(TEST_SOURCES:%.c=%)
all: $(TARGETS)
%.a:
alltests: $(OBJECTS) $(ARCHIVES)
test_%: test_%.o $(ARCHIVES)
$(CC) $^ -o $@ $(LDFLAGS)
clean: clean_
rm -f alltests
rm -f $(TARGETS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment