summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-03-25 16:15:25 +0100
committeryuzu-eva <cafebabe@disroot.org>2025-03-25 16:15:25 +0100
commit7cd7876202746fded86d770fb77aea0f55b814d8 (patch)
tree781861dc8c333d2878dec581ddda150e0e34f48e /Makefile
parent1764af3aed0e2ba466f813ca28680d4487f61f19 (diff)
added db-setup script; fixed makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 846d202..c8b28bd 100644
--- a/Makefile
+++ b/Makefile
@@ -9,12 +9,13 @@ INSTALL_PROGRAM=install
INSTALL_DATA=install -m 644
CFLAGS=-Wall -Wextra -O3 -ggdb
+LIBS=-lsqlite3
BIN=myal
all: $(BIN)
myal: $(SRCDIR)/main.c
- $(CC) $(CFLAGS) $(SRCDIR)/main.c -o myal
+ $(CC) $(CFLAGS) $(LIBS) $(SRCDIR)/main.c -o myal
install:
$(INSTALL_PROGRAM) myal $(PREFIX)$(BINDIR)/myal
@@ -22,5 +23,5 @@ install:
clean:
$(RM) myal
-distclean: clean
+uninstall:
$(RM) /usr/local/bin/myal