about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-01 19:22:38 -0500
committerJune McEnroe <june@causal.agency>2019-12-01 19:22:38 -0500
commitc098eb31d870aafd96ef055d725f2e127043f6ab (patch)
tree24b3facbd7d55613bd28f5c649963d6e9716c5f4 /Makefile
parentDocument -d option to unscoop (diff)
downloadlitterbox-c098eb31d870aafd96ef055d725f2e127043f6ab.tar.gz
litterbox-c098eb31d870aafd96ef055d725f2e127043f6ab.zip
Implement database file search
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}