lel

farbfeld image viewer
git clone git://git.2f30.org/lel
Log | Files | Refs | README | LICENSE

commit 6ad84540f1b6baec45bcb45c392773dc254e290e
parent c9c96132f710460f1fa37f443ea8f70f4709af26
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 17 Nov 2015 21:32:08 +0100

config.mk: introduce X11LIB and X11INC, makes porting simpler

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

diff --git a/config.mk b/config.mk @@ -6,21 +6,22 @@ VERSION = 0.1 PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man +X11INC = /usr/X11R6/include +X11LIB = /usr/X11R6/lib + # includes and libs -INCS = -LIBS = -lc -lX11 +INCS = -I${X11INC} +LIBS = -L${X11LIB} -lX11 + +# flags +CPPFLAGS = -DVERSION=\"${VERSION}\" # debug -CFLAGS = -O0 -g -std=c99 -Wall -pedantic -DVERSION=\"${VERSION}\" +CFLAGS = -O0 -g -std=c99 -Wall -pedantic ${INCS} ${CPPFLAGS} LDFLAGS = ${LIBS} # optimized -#CFLAGS = -O2 -std=c99 -DVERSION=\"${VERSION}\" -#LDFLAGS = -s ${LIBS} - -# tcc -#CC = tcc -#CFLAGS = -DVERSION=\"${VERSION}\" +#CFLAGS = -O2 -std=c99 -DVERSION=\"${VERSION}\" ${INCS} ${CPPFLAGS} #LDFLAGS = -s ${LIBS} # compiler and linker