Add some basic gtk notebook and window signal handlers & bug squashing
[luakit.git] / config.mk
blobe6b6cbc6c6864e09491b05571e7d7eb81e7602e2
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 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})
14 # Add flags
15 CPPFLAGS := -DVERSION=\"${VERSION}\" -DDEBUG_MESSAGES ${CPPFLAGS}
16 CFLAGS := -std=c99 -ggdb -W -Wall -Wextra ${INCS} ${CFLAGS}
17 LDFLAGS := ${LIBS} ${LDFLAGS}
19 # Building on OSX
20 #CFLAGS += -lgthread-2.0
21 #LDFLAGS += -pthread
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
29 #CC = clang