fz/Makefile

30 lines
714 B
Makefile
Raw Permalink Normal View History

2021-11-03 04:29:33 +01:00
CC = gcc
2022-02-28 14:31:59 +01:00
HELP2MAN ?= help2man
2021-11-03 04:29:33 +01:00
CFLAGS = -g -D_GNU_SOURCE -std=gnu11 -O0 -Og -Wall -Wextra -Werror
LIBS = -lz -lm -lcdb -ldb
OBJECTS = vector.o node.o sql.o intcommands.o file.o db_cdb.o db_bdb.o com.o botforth.o
HEADERS = def.h botforth.h com.h node.h vector.h
2022-02-28 14:31:59 +01:00
all: botforth db db.1
2021-11-03 04:29:33 +01:00
makeintcommand:
./makeintcommand.sh > getintcommand.c
botforth: $(OBJECTS)
$(CC) $(CFLAGS) -o botforth $(OBJECTS) $(LIBS)
$(OBJECTS): $(HEADERS)
db: vector.o node.o file.o db_cdb.o db_bdb.o db.o
$(CC) $(CFLAGS) -o db vector.o node.o file.o db_cdb.o db_bdb.o db.o $(LIBS)
2022-02-28 14:31:59 +01:00
db.1:
$(HELP2MAN) -N --version-string=0.1 -o db.1 ./db
2021-11-03 04:29:33 +01:00
static: $(OBJECTS)
$(CC) $(CFLAGS) -static -o botforth $(OBJECTS) $(LIBS)
clean:
rm -f *.o