aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-31 15:49:55 -0300
committerEuAndreh <eu@euandre.org>2021-07-31 15:53:12 -0300
commitfe77a80d2ef2e721ec8eef5985f633b9065602b4 (patch)
treef6cf6310283ca62f5ce3d58c94e92ef6b8c3ce90
parentsrc/: Embed unit-test.c into gistatic.c (diff)
downloadgistatic-fe77a80d2ef2e721ec8eef5985f633b9065602b4.tar.gz
gistatic-fe77a80d2ef2e721ec8eef5985f633b9065602b4.tar.xz
Makefile: Add -lgit2 flag
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ffbdf40..7aa4730 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ NAME = gistatic
MAILING_LIST = public-inbox
TRANSLATIONS = pt fr eo
CONTRIBLANGS =
+LOCALLDLIBS = -lgit2
DEFS = \
-D_POSIX_C_SOURCE=200809L \
-DVERSION='"$(VERSION)"' \
@@ -18,11 +19,12 @@ DEFS = \
sed -e 's:@VERSION@:$(VERSION):g' -e 's:@DATE@:$(DATE):g' < $< > $@
.c:
- $(CC) $(CFLAGS) $(DEFS) -o $@ $<
+ $(CC) $(CFLAGS) $(DEFS) $(LDFLAGS) -o $@ $< $(LOCALLDLIBS) \
+ $(LDLIBS)
.c.t:
- $(CC) $(CFLAGS) $(DEFS) -DTEST -o $@ $<
-
+ $(CC) $(CFLAGS) $(DEFS) $(LDFLAGS) -DTEST -o $@ $< $(LOCALLDLIBS) \
+ $(LDLIBS)
manpages.en.in = \
doc/gistatic.en.1.in
@@ -40,7 +42,7 @@ check: all src/gistatic.t
clean:
rm -rf public/ $(manpages) README.*.md CHANGELOG.*.md messages.mo \
- src/gistatic src/gistatic.t
+ src/gistatic src/gistatic.t vgcore.*
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin