Makefile: track dependencies for tests
This commit is contained in:
@@ -12,10 +12,10 @@ endif
|
||||
BUILDDIR = build
|
||||
|
||||
SOURCES = $(wildcard src/*.c)
|
||||
OBJECTS = $(addprefix $(BUILDDIR)/,$(SOURCES:.c=.o))
|
||||
DEPS = $(addprefix $(BUILDDIR)/,$(SOURCES:.c=.d))
|
||||
LIB = liblilalloc
|
||||
TEST_SOURCES = $(wildcard test/*.c)
|
||||
OBJECTS = $(addprefix $(BUILDDIR)/,$(SOURCES:.c=.o))
|
||||
DEPS = $(addprefix $(BUILDDIR)/,$(SOURCES:.c=.d)) $(addprefix $(BUILDDIR)/,$(TEST_SOURCES:.c=.d))
|
||||
LIB = liblilalloc
|
||||
TEST_BINS = $(patsubst test/%.c,$(BUILDDIR)/test/%,$(TEST_SOURCES))
|
||||
|
||||
.PHONY: all
|
||||
|
||||
Reference in New Issue
Block a user