KVS/Makefile

30 lines
434 B
Makefile

CC ?= gcc
SHELL ?= /bin/sh
KVSFLIST := \
src/KVS/main.c \
src/KVS/tpm.c \
src/KVS/rmasmoke.c \
src/KVS/ui.c
CFLAGS := \
-Iinclude \
-g \
-static
$(shell mkdir -p build)
all: clean kvs kvg
kvs: build/kvs
kvg: build/kvg
build/kvs: src/KVS/main.c
$(CC) $(KVSFLIST) -o build/kvs $(CFLAGS)
chmod +rx build/kvs
build/kvg: src/KVG/main.c
$(CC) src/KVG/main.c -o build/kvg $(CFLAGS)
chmod +rx build/kvg
clean:
rm -rf build