From a593273a24500f14c66e5ca0c2a9948db22f36a7 Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 17 Nov 2015 17:36:15 +0000 Subject: Make config.mk easier to edit on different systems This should also allow one to build the tools on both BSD and Linux probably without modifying config.mk at all. --- config.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'config.mk') diff --git a/config.mk b/config.mk index 8e8d2d0..2bd55ed 100644 --- a/config.mk +++ b/config.mk @@ -3,10 +3,16 @@ # paths PREFIX = /usr/local +PNGLIB = /usr/local/lib +PNGINC = /usr/local/include + +INCS = -I${PNGINC} +LIBS = -L${PNGLIB} -lpng + # flags CPPFLAGS = -D_DEFAULT_SOURCE -CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os ${CPPFLAGS} -LDFLAGS = -s -lpng -ljpeg -lgif +CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os ${INCS} ${CPPFLAGS} +LDFLAGS = -s ${LIBS} # compiler and linker CC = cc -- cgit v1.2.3