Set destructor = NULL in destroy func to prevent it being called twice
[luakit.git] / config.mk
bloba3ab7424c7fb1e41a7155fa3db093f36a3c05bcd
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
13 INCS := $(shell pkg-config --cflags ${PKGS}) -I./
14 LIBS := $(shell pkg-config --libs ${PKGS})
16 # Add flags
17 CPPFLAGS := -DVERSION=\"${VERSION}\" ${CPPFLAGS} -DDEVELOPMENT_PATHS
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