1 # Get the current version which is either a nearby git tag or a short-hash
2 # of the current commit.
3 VERSION ?
= $(shell .
/build-utils
/getversion.sh
)
7 MANPREFIX ?
= ${PREFIX}/share
/man
9 # Generate includes and libs
10 PKGS
:= gtk
+-2.0 gthread-2.0 webkit-1.0 lua libxdg-basedir
11 INCS
:= $(shell pkg-config
--cflags ${PKGS}) -I.
/
12 LIBS
:= $(shell pkg-config
--libs
${PKGS})
15 CPPFLAGS
:= -DVERSION
=\"${VERSION}\" -DDEBUG_MESSAGES
${CPPFLAGS}
16 CFLAGS
:= -std
=c99
-ggdb
-W
-Wall
-Wextra
${INCS} ${CFLAGS}
17 LDFLAGS
:= ${LIBS} ${LDFLAGS}
20 #CFLAGS += -lgthread-2.0
23 # Building on FreeBSD (or just use gmake)
24 #VERSION != echo `./build-utils/getversion.sh`
25 #INCS != echo -I. -I/usr/include `pkg-config --cflags ${PKGS}`
26 #LIBS != echo -L/usr/lib `pkg-config --libs ${PKGS}`
28 # Custom compiler / linker