Use `get_settings_object(..)` to get correct settings GObject
[luakit.git] / config.mk
blobb29e660486bfeec7c6b91287576668ecb42d2ac0
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)
5 # Paths
6 PREFIX ?= /usr/local
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 libxdg-basedir
13 INCS := $(shell pkg-config --cflags ${PKGS}) -I./
14 LIBS := $(shell pkg-config --libs ${PKGS})
16 # Add flags
17 CPPFLAGS := -DVERSION=\"${VERSION}\" ${CPPFLAGS}
18 CFLAGS := -std=c99 -ggdb -W -Wall -Wextra ${INCS} ${CFLAGS}
19 LDFLAGS := ${LIBS} ${LDFLAGS}
21 # Building on OSX
22 #CFLAGS += -lgthread-2.0
23 #LDFLAGS += -pthread
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
31 #CC = clang