From 8cdf1afb795cf4f2d6eb01fa6a533d9321adec59 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 21 Aug 2021 05:46:01 -0300 Subject: src/tests-lib.c: Move testing helper function and share it with other files --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3