aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 8028648636a742e8f639f4241574524e62894be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export FTAG_ROOT ?= $(shell pwd)/ftag
export PROG      ?= ftag
export CFLAGS    ?= -O0 -g3
export LDFLAGS   ?=
export LIBS      ?=

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

all: $(PROG)

$(PROG):
	make -C src

clean:
	make -C src clean

.PHONY: all clean