forked from libgit2/libgit2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
David Boyce
committed
Sep 16, 2011
1 parent
0251733
commit 784b3b4
Showing
4 changed files
with
44 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters