aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 66ccf89..e75ebf2 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ PREFIX ?= /usr/local
OBJDIR = obj
SRCS = $(wildcard src/*.c)
OBJS = $(SRCS:src/%.c=$(OBJDIR)/%.o)
-CFLAGS += $(shell pkg-config --cflags luajit) -I./include -Wno-format-truncation -std=c99 -D_XOPEN_SOURCE=700
+CFLAGS += $(shell pkg-config --cflags luajit) $(shell pkg-config --cflags libgit2) -I./include -Wno-format-truncation -std=c99 -D_XOPEN_SOURCE=700
# pretty print for compilation. To enable verbose (show commands), run with
# `make V=1`
@@ -38,7 +38,7 @@ default: pkgit
pkgit: $(OBJS)
$(E) " LINK " $@
- $(Q) ${CC} -o $@ $^ $(shell pkg-config --libs luajit) $(LDFLAGS)
+ $(Q) ${CC} -o $@ $^ $(shell pkg-config --libs luajit) $(shell pkg-config --libs libgit2) $(LDFLAGS)
$(OBJDIR):
@mkdir -p $(OBJDIR)