From adaff713dc3e9ff494632a44d5743cbc0e0e16c7 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 1 Dec 2019 18:26:04 +0100 Subject: Makefile improvements - remove double -c in .c.o target. - remove config.mk abstraction. - change LIBS and INCS to LIBGIT_INC and LIBGIT_LIB. - use system cflags and ldflags, but allow the same override rules for porters. --- config.mk | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 config.mk (limited to 'config.mk') diff --git a/config.mk b/config.mk deleted file mode 100644 index 90419a0..0000000 --- a/config.mk +++ /dev/null @@ -1,30 +0,0 @@ -# customize below to fit your system - -# paths -PREFIX = /usr/local -MANPREFIX = ${PREFIX}/man -DOCPREFIX = ${PREFIX}/share/doc/stagit - -# compiler and linker -#CC = cc - -GITINC = /usr/local/include -GITLIB = /usr/local/lib - -# includes and libs -INCS = -I${GITINC} -LIBS = -L${GITLIB} -lgit2 - -# debug -#CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic ${INCS} -#LDFLAGS = ${LIBS} - -# optimized -CFLAGS = -O2 -std=c99 ${INCS} -LDFLAGS = -s ${LIBS} - -# optimized static -#CFLAGS = -static -O2 -std=c99 ${INCS} -#LDFLAGS = -static -s ${LIBS} - -CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS} -- cgit v1.2.3