aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 57435e3386eaf1f1912952351203eb49be5122c4 (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
# Temporary development value, real default will be /usr/local
export PREFIX           ?= $(shell pwd)/ftag_prefix
# Temporary development value, real default will be $HOME/.cache/ftag
export FTAG_CACHE_DIR   ?= $(shell pwd)/ftag_cache
# Temporary development value, real default will be $HOME/.config/ftag
export FTAG_CONFIG_DIR  ?= $(shell pwd)/ftag_config

export PROG             ?= ftag
export CFLAGS           ?= -O0 -g3
export LDFLAGS          ?=
export LIBS             ?=



export __CFLAGS := -std=c99 -Wall \
                   -DFTAG_PREFIX=\"$(PREFIX)\" \
                   -D_POSIX_C_SOURCE=200809L \
                   $(shell pkg-config --cflags sqlite3)
export __LIBS   := $(shell pkg-config --libs sqlite3)

all: $(PROG)

$(PROG):
	make -C src
	mv src/$(PROG) ./

install: $(PROG)
	true

clean:
	make -C src clean

.PHONY: all clean install