From d19b454a7080b49616983d3a7d2830ed26119fad Mon Sep 17 00:00:00 2001 From: AustrianToast Date: Thu, 18 Sep 2025 23:05:04 +0200 Subject: [PATCH] update Makefile and remove strops --- Makefile | 16 +++++++--------- src/hdbd.c | 1 - 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index de9db0c..c5aaa7e 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,17 @@ .POSIX: -hdb-debug: - gcc -ansi -ggdb -o build/hdb-debug src/main.c src/db.c -lsqlite3 - -hdb: - gcc -ansi -O2 -pipe -o build/hdb src/main.c src/db.c -lsqlite3 +hdb: src/db.c src/hdb.c + gcc -ansi -O2 -pipe -o build/hdb src/hdb.c src/db.c -lsqlite3 strip build/hdb hdbd: src/db.c src/hdbd.c - gcc -ansi -o build/hdbd src/hdbd.c src/db.c -lsqlite3 -lstrops + gcc -ansi -O2 -pipe -o build/hdbd src/hdbd.c src/db.c -lsqlite3 + strip build/hdbd .PHONY: install uninstall -install: hdb - sudo mv build/hdb /usr/local/bin +install: hdb hdbd + sudo mv build/hdb build/hdbd /usr/local/bin uninstall: - sudo rm /usr/local/bin/hdb + sudo rm /usr/local/bin/hdb /usr/local/bin/hdbd diff --git a/src/hdbd.c b/src/hdbd.c index b1c09c1..a008449 100644 --- a/src/hdbd.c +++ b/src/hdbd.c @@ -1,6 +1,5 @@ #define _POSIX_C_SOURCE 200809L /* needed for strndup */ -#include #include #include #include