mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-31 23:59:11 +00:00
Fixed to build examples with knowledge of include and lib locations.
This commit is contained in:
parent
3f3f6225f8
commit
9940a01c3f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user