diff --git a/Makefile b/Makefile index 8d39262..97985db 100644 --- a/Makefile +++ b/Makefile @@ -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