Commit b0474a27 authored by jkvis's avatar jkvis

Conditionally build test targets

parent 28c30a93
......@@ -24,8 +24,8 @@ run_tests: all
clean:
rm -f $(OBJECTS) $(DEPS) $(TARGETS:.o=.out)
$(TARGETS:.o=.out): $(SHARED)
$(CC) $(CFLAGS) $(CPPFLAGS) $(@:.out=.o) $^ $(addprefix -L, $(LIB_DIR)) $(addprefix -l, $(LIB_NAME:lib%.a=%) $(LIB_NAME:lib%.a=%)) -o $@
$(TARGETS:.o=.out): $(SHARED) $(TARGETS)
$(CC) $(CFLAGS) $(CPPFLAGS) $(@:.out=.o) $(SHARED) $(addprefix -L, $(LIB_DIR)) $(addprefix -l, $(LIB_NAME:lib%.a=%) $(LIB_NAME:lib%.a=%)) -o $@
-include $(DEPS)
......
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 to comment