From 00dd849dcbf195461c2b8eaf20d3bc8a348719e5 Mon Sep 17 00:00:00 2001 From: AustrianToast Date: Wed, 28 May 2025 20:25:37 +0200 Subject: [PATCH] Portable Makefile --- Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ff9207c..c57917d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,16 @@ -debug: - gcc -ansi -ggdb -o build/hdb src/main.c src/db.c -lsqlite3 +.POSIX: +hdb-debug: + gcc -ansi -ggdb -o build/hdb-debug src/main.c src/db.c -lsqlite3 -release: - gcc -ansi -O2 -pipe -fno-semantic-interposition -o build/hdb src/main.c src/db.c -lsqlite3 +hdb: + gcc -ansi -O2 -pipe -o build/hdb src/main.c src/db.c -lsqlite3 strip build/hdb +.PHONY: install uninstall + +install: hdb + sudo mv hdb /usr/local/bin + +uninstall: + sudo rm /usr/local/bin/hdb +