Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Boyce <boyski@users.sourceforge.net>2011-09-13 07:38:58 +0400
committerDavid Boyce <boyski@users.sourceforge.net>2011-09-13 07:38:58 +0400
commit9940a01c3f922d6026717a998300c747c4dfe784 (patch)
tree33632fc088da9001c6ce6a5994618dd40ed9ddf9 /examples/Makefile
parent3f3f6225f8237e974b135de30eaac731c929936e (diff)
Fixed to build examples with knowledge of include and lib locations.
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/Makefile b/examples/Makefile
index f7bf469a5..5a5ceccb3 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,10 +1,15 @@
+.PHONY: all
+
+CFLAGS = -g -I../include
+LFLAGS = -Ldirectory-containing-libgit
+
all: general showindex
general : general.c
- gcc -lgit2 -o general general.c
+ gcc -o general $(CFLAGS) general.c $(LFLAGS) -lgit2 -lz
showindex : showindex.c
- gcc -lgit2 -o showindex showindex.c
+ gcc -o showindex $(CFLAGS) showindex.c $(LFLAGS) -lgit2 -lz
clean:
- rm general showindex
+ rm general showindex