summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..573290a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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}