Commit bb502fa803605bcfce08da5467e52813eff4d38d

Chris Young 2012-06-09T12:52:49

Fix makefile

diff --git a/examples/network/Makefile b/examples/network/Makefile
index c21869a..0cffe85 100644
--- a/examples/network/Makefile
+++ b/examples/network/Makefile
@@ -1,8 +1,9 @@
 default: all
 
-CC = gcc
+CC = ppc-amigaos-gcc
 CFLAGS += -g
-CFLAGS += -I../../include -L../../ -lgit2 -lpthread
+CFLAGS += -I../../include -L../../build
+LIBS += -lgit2 -lpthread -lregex
 
 OBJECTS = \
   git2.o \
@@ -11,4 +12,4 @@ OBJECTS = \
   index-pack.o
 
 all: $(OBJECTS)
-	$(CC) $(CFLAGS) -o git2 $(OBJECTS)
+	$(CC) $(CFLAGS) -o git2 $(OBJECTS) $(LIBS)