aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ccdd358..1a4a771 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ LDLIBS = -lgit2
sed -e 's:@VERSION@:$(VERSION):g' -e 's:@DATE@:$(DATE):g' < $< > $@
.c.t:
- $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $< $(LDLIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $< src/tests-lib.o $(LDLIBS)
manpages.en.in = \
@@ -33,7 +33,7 @@ objects = $(sources:.c=.o)
tests = $(sources:.c=.t)
-all: src/config.h $(manpages) src/gistatic libgistatic.a
+all: src/config.h src/tests-lib.o src/gistatic libgistatic.a $(manpages)
src/gistatic: $(objects) src/main.o
@@ -52,7 +52,7 @@ src/config.h:
printf '\n#endif\n' >> $@
$(objects): src/config.h
-$(tests): src/config.h
+$(tests): src/config.h src/tests-lib.h src/tests-lib.o
src/gistatic.o: src/gistatic.h src/tar.o src/tar.h
src/main.o: src/gistatic.h src/gistatic.o