summaryrefslogtreecommitdiff
path: root/examples/network/Makefile
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-16 17:46:41 +0200
committerVicent Marti <tanoku@gmail.com>2013-04-16 17:46:41 +0200
commita50086d174658914d4d6462afbc83b02825b1f5b (patch)
treee8daa1c7bf678222cf351445179837bed7db3a72 /examples/network/Makefile
parent5b9fac39d8a76b9139667c26a63e6b3f204b3977 (diff)
parentf124ebd457bfbf43de3516629aaba5a279636e04 (diff)
downloadlibgit2-0.18.0.tar.gz
Merge branch 'development'v0.18.0
Diffstat (limited to 'examples/network/Makefile')
-rw-r--r--examples/network/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/network/Makefile b/examples/network/Makefile
index c21869ac9..810eb705b 100644
--- a/examples/network/Makefile
+++ b/examples/network/Makefile
@@ -2,13 +2,20 @@ default: all
CC = gcc
CFLAGS += -g
-CFLAGS += -I../../include -L../../ -lgit2 -lpthread
+CFLAGS += -I../../include
+LDFLAGS += -L../../build -L../..
+LIBRARIES += -lgit2 -lpthread
OBJECTS = \
git2.o \
ls-remote.o \
fetch.o \
+ clone.o \
index-pack.o
all: $(OBJECTS)
- $(CC) $(CFLAGS) -o git2 $(OBJECTS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o git2 $(OBJECTS) $(LIBRARIES)
+
+clean:
+ $(RM) $(OBJECTS)
+ $(RM) git2