summaryrefslogtreecommitdiff
path: root/config.mk
blob: 75175a1d743543a98fb4402cd587c2365fe3ebe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#----------------user/install options----------------
VERSION = 0.1.1

PROJECT = vimp
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin/
MANDIR ?= $(PREFIX)/share/man/

#----------------compile options---------------------
LIBS = gtk+-2.0 webkit-1.0 libsoup-2.4

CFLAGS += $(shell pkg-config --cflags $(LIBS))
CFLAGS += -Wall
CFLAGS += -pipe
CFLAGS += -ansi
CFLAGS += -std=c99
CFLAGS += -pedantic
CFLAGS += -Wmissing-declarations
CFLAGS += -Wmissing-parameter-type
#CFLAGS += -Wstrict-prototypes

LDFLAGS += $(shell pkg-config --libs $(LIBS)) -lX11 -lXext

# features
CPPFLAGS += -DFEATURE_COOKIE

CPPFLAGS += -DPROJECT=\"$(PROJECT)\"
CPPFLAGS += -DVERSION=\"${VERSION}\"

#----------------developer options-------------------
DFLAGS += $(CFLAGS)
DFLAGS += -DDEBUG
DFLAGS += -ggdb
DFLAGS += -g

#----------------end of options----------------------
OBJ       = $(patsubst %.c, %.o, $(wildcard src/*.c))
DOBJ      = $(patsubst %.c, %.do, $(wildcard src/*.c))
HEAD      = $(wildcard src/*.h)
DEPS      = $(OBJ:%.o=%.d)

TARGET    = $(PROJECT)
DTARGET   = $(TARGET)_dbg
DIST_FILE = $(PROJECT)_$(VERSION).tar.gz

FMOD = 0644

MFLAGS = --no-print-directory