Skip to content

Commit 56931d1

Browse files
author
Ramsay Jones
committed
Makefile: Add support for custom build options in config.mak file
Signed-off-by: Ramsay Jones <[email protected]>
1 parent 1e5dd57 commit 56931d1

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/apidocs
22
/trash-*.exe
33
/libgit2.pc
4+
/config.mak
45
*.o
56
*.a
67
*.exe

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ ifneq (,$(findstring MINGW,$(uname_S)))
5555
SPARSE_FLAGS=-Wno-one-bit-signed-bitfield
5656
endif
5757

58+
-include config.mak
59+
5860
SRC_C = $(wildcard src/*.c)
5961
OS_SRC = $(wildcard src/$(OS)/*.c)
6062
SRC_C += $(OS_SRC)

tests/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ ifneq (,$(findstring MINGW,$(uname_S)))
4141
EXTRA_LIBS += -lwsock32 -lpthread
4242
endif
4343

44+
-include ../config.mak
45+
4446
GIT_LIB = ../libgit2.a
4547

4648
HDRS = $(wildcard ../src/*.h)

0 commit comments

Comments
 (0)