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 INSTALLDIR ?
= ${DESTDIR}${PREFIX}
8 MANPREFIX ?
= ${DESTDIR}${PREFIX}/share
/man
9 DOCDIR ?
= ${DESTDIR}${PREFIX}/share
/luakit
/docs
11 # Generate includes and libs
12 PKGS
:= gtk
+-2.0 gthread-2.0 webkit-1.0 lua
13 INCS
:= $(shell pkg-config
--cflags ${PKGS}) -I.
/
14 LIBS
:= $(shell pkg-config
--libs
${PKGS})
17 CPPFLAGS
:= -DVERSION
=\"${VERSION}\" ${CPPFLAGS} -DDEVELOPMENT_PATHS
18 CFLAGS
:= -std
=c99
-ggdb
-W
-Wall
-Wextra
${INCS} ${CFLAGS}
19 LDFLAGS
:= ${LIBS} ${LDFLAGS}
22 #CFLAGS += -lgthread-2.0
25 # Building on FreeBSD (or just use gmake)
26 #VERSION != echo `./build-utils/getversion.sh`
27 #INCS != echo -I. -I/usr/include `pkg-config --cflags ${PKGS}`
28 #LIBS != echo -L/usr/lib `pkg-config --libs ${PKGS}`
30 # Custom compiler / linker