Moved common files back into common/ & luafuncs -> luah (i.e. lua helpers)
[luakit.git] / config.mk
blob6d4a7779b1dcd167c749aa49383eadeb1f2093a4
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-tools/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} ${CPPFLAGS} ${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-tools/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