summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/network/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/network/Makefile b/examples/network/Makefile
index 60969bd87..810eb705b 100644
--- a/examples/network/Makefile
+++ b/examples/network/Makefile
@@ -3,7 +3,8 @@ default: all
CC = gcc
CFLAGS += -g
CFLAGS += -I../../include
-LDFLAGS += -L../../build -L../.. -lgit2 -lpthread
+LDFLAGS += -L../../build -L../..
+LIBRARIES += -lgit2 -lpthread
OBJECTS = \
git2.o \
@@ -13,7 +14,7 @@ OBJECTS = \
index-pack.o
all: $(OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o git2 $(OBJECTS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o git2 $(OBJECTS) $(LIBRARIES)
clean:
$(RM) $(OBJECTS)