update Makefile and remove strops
This commit is contained in:
16
Makefile
16
Makefile
@@ -1,19 +1,17 @@
|
|||||||
.POSIX:
|
.POSIX:
|
||||||
hdb-debug:
|
hdb: src/db.c src/hdb.c
|
||||||
gcc -ansi -ggdb -o build/hdb-debug src/main.c src/db.c -lsqlite3
|
gcc -ansi -O2 -pipe -o build/hdb src/hdb.c src/db.c -lsqlite3
|
||||||
|
|
||||||
hdb:
|
|
||||||
gcc -ansi -O2 -pipe -o build/hdb src/main.c src/db.c -lsqlite3
|
|
||||||
strip build/hdb
|
strip build/hdb
|
||||||
|
|
||||||
hdbd: src/db.c src/hdbd.c
|
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
|
.PHONY: install uninstall
|
||||||
|
|
||||||
install: hdb
|
install: hdb hdbd
|
||||||
sudo mv build/hdb /usr/local/bin
|
sudo mv build/hdb build/hdbd /usr/local/bin
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
sudo rm /usr/local/bin/hdb
|
sudo rm /usr/local/bin/hdb /usr/local/bin/hdbd
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#define _POSIX_C_SOURCE 200809L /* needed for strndup */
|
#define _POSIX_C_SOURCE 200809L /* needed for strndup */
|
||||||
|
|
||||||
#include <strops.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user