diff options
author | sin <sin@2f30.org> | 2015-11-17 17:36:15 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2015-11-17 17:36:15 +0000 |
commit | a593273a24500f14c66e5ca0c2a9948db22f36a7 (patch) | |
tree | 51113114eff239c2966af1f922b2a77cdaaaae0c /config.mk | |
parent | 0c46370da3bdbc122b64a5811cad43b8cbdb5eab (diff) |
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 (limited to 'config.mk')
-rw-r--r-- | config.mk | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |