mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 15:58:29 +00:00

This fixes a number of warnings and problems with cross-platform builds. Among other things, it's not safe to name a member of a structure "strcmp" because that may be #defined.
17 lines
255 B
Makefile
17 lines
255 B
Makefile
default: all
|
|
|
|
CC = gcc
|
|
CFLAGS += -g
|
|
CFLAGS += -I../../include
|
|
LDFLAGS += -L../../build -L../.. -lgit2 -lpthread
|
|
|
|
OBJECTS = \
|
|
git2.o \
|
|
ls-remote.o \
|
|
fetch.o \
|
|
clone.o \
|
|
index-pack.o
|
|
|
|
all: $(OBJECTS)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o git2 $(OBJECTS)
|