Files
FolderOpdsServer/Makefile

23 lines
520 B
Makefile

CFLAGS=-Wall -Wextra -ggdb
LIBWS=./vendor/libmicrohttpd/
LIBWS_LIB=$(LIBWS)lib/libmicrohttpd.a
LIBSHA=./vendor/sha256/
LIBSHA_SRC=$(LIBSHA)sha256.c
LDFLAGS=-lm -luuid
INCL_FLAGS=-I$(LIBWS)include -I$(LIBSHA)
server: src/server.c $(LIBSHA_SRC) output
gcc $(CFLAGS) $(INCL_FLAGS) -o output/server src/server.c $(LIBWS_LIB) $(LDFLAGS)
LDFLAGS2=-lm
INCL_FLAGS2=-I$(LIBSHA)
userctl: src/userctl.c $(LIBSHA_SRC) output
gcc $(CFLAGS) $(INCL_FLAGS2) -o output/userctl src/userctl.c $(LDFLAGS2)
output:
mkdir -p output