PWD = $(CURDIR)
OPTS = -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF \
       -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR=OFF
all:
	cmake build/libgit2 -G "Unix Makefiles" -B"$(OUT_DIR)" $(OPTS)
	make -C "$(OUT_DIR)" -j10

PWD = $(CURDIR)
OPTS = -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF \
       -DBUILD_CLAR=OFF -DCMAKE_C_FLAGS=-fPIC \
       -DCMAKE_BUILD_TYPE=RelWithDebInfo
all:
	cmake build/libgit2 -G "Unix Makefiles" -B"$(OUT_DIR)" $(OPTS)
	make -C "$(OUT_DIR)" -j10

Build libgit2 with -fPIC and debug info
Build libgit2 with -fPIC and debug info
