farbfeld

suckless image format with conversion tools
git clone git://git.suckless.org/farbfeld
Log | Files | Refs | README | LICENSE

commit a593273a24500f14c66e5ca0c2a9948db22f36a7
parent 0c46370da3bdbc122b64a5811cad43b8cbdb5eab
Author: sin <sin@2f30.org>
Date:   Tue, 17 Nov 2015 17:36:15 +0000

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.

Diffstat:
Mconfig.mk | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git 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