summary refs log tree commit diff
path: root/Makefile
blob: 573290a7b9e359fcefa78d722bb253f4e56195d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
LIBS_PREFIX = /usr/local

CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
CFLAGS += ${LIBS_PREFIX:%=-I%/include}
LDFLAGS += ${LIBS_PREFIX:%=-L%/lib}
LDLIBS = -lsqlite3

BINS = litterbox

-include config.mk

dev: tags all

all: ${BINS}

${BINS:=.o}: litterbox.h

tags: *.c *.h
	ctags -w *.c *.h

clean:
	rm -f tags ${BINS} ${BINS:=.o}