Commit e2886f1e by lionel vitte

Fix link issue in network examples

parent 7dbf4039
...@@ -3,7 +3,8 @@ default: all ...@@ -3,7 +3,8 @@ default: all
CC = gcc CC = gcc
CFLAGS += -g CFLAGS += -g
CFLAGS += -I../../include CFLAGS += -I../../include
LDFLAGS += -L../../build -L../.. -lgit2 -lpthread LDFLAGS += -L../../build -L../..
LIBRARIES += -lgit2 -lpthread
OBJECTS = \ OBJECTS = \
git2.o \ git2.o \
...@@ -13,7 +14,7 @@ OBJECTS = \ ...@@ -13,7 +14,7 @@ OBJECTS = \
index-pack.o index-pack.o
all: $(OBJECTS) all: $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) -o git2 $(OBJECTS) $(CC) $(CFLAGS) $(LDFLAGS) -o git2 $(OBJECTS) $(LIBRARIES)
clean: clean:
$(RM) $(OBJECTS) $(RM) $(OBJECTS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment