diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-12-05 21:07:52 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-12-05 21:07:52 +0100 |
commit | b069cb6fd50d180cd6afb272c0016a6715f126d9 (patch) | |
tree | 231fa45825ad7f858b33f1cdd3b33108b07843c5 /config.mk | |
parent | 8b6a646b7a654488afc9f5969d977de942bbb030 (diff) |
add Makefile and config.mk
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..c019e51 --- /dev/null +++ b/config.mk @@ -0,0 +1,30 @@ +# customize below to fit your system + +# paths +PREFIX = /usr/local +MANPREFIX = ${PREFIX}/share/man + +GITINC = /usr/local/include +GITLIB = /usr/local/lib + +# includes and libs +INCS = -I${GITINC} +LIBS = -L${GITLIB} -lgit2 -lc + +# debug +CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic \ + -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS} +LDFLAGS = ${LIBS} + +# optimized +#CFLAGS = -O2 -std=c99 \ +# -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS} +#LDFLAGS = -s ${LIBS} + +# optimized static +#CFLAGS = -static -O2 -std=c99 \ +# -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS} +#LDFLAGS = -static -s ${LIBS} + +# compiler and linker +#CC = cc |