diff options
author | David Boyce <boyski@users.sourceforge.net> | 2011-09-13 07:44:39 +0400 |
---|---|---|
committer | David Boyce <boyski@users.sourceforge.net> | 2011-09-16 07:15:38 +0400 |
commit | 784b3b494f057df1e854395f9e640bc25911e542 (patch) | |
tree | efa41f48934a4718cd3b6942d75d9879a443ba3c /examples/Makefile | |
parent | 0251733e01bb5403ee6c9529e6b63e8643054b39 (diff) |
Fixed typo in example Makefile code and slimmed it down more.
Reverted signature of git_signature_new.
Removed error check wrappers (voted down). Made Makefile
work out of the box on Linux and Solaris when standard
cmake build instructions for the library are followed.
Diffstat (limited to 'examples/Makefile')
-rw-r--r-- | examples/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/Makefile b/examples/Makefile index 5a5ceccb3..efb55547b 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,15 +1,13 @@ .PHONY: all +CC = gcc CFLAGS = -g -I../include -LFLAGS = -Ldirectory-containing-libgit +LFLAGS = -L../build -lgit2 -lz all: general showindex -general : general.c - gcc -o general $(CFLAGS) general.c $(LFLAGS) -lgit2 -lz - -showindex : showindex.c - gcc -o showindex $(CFLAGS) showindex.c $(LFLAGS) -lgit2 -lz +% : %.c + $(CC) -o $@ $(CFLAGS) $< $(LFLAGS) clean: - rm general showindex + $(RM) general showindex |