17 lines
342 B
Makefile
17 lines
342 B
Makefile
CFLAGS=-Wall -Wextra
|
|
|
|
LIBWS=./vendor/libmicrohttpd/
|
|
LIBWS_LIB=$(LIBWS)lib/libmicrohttpd.a
|
|
|
|
LIBSHA=./vendor/sha256/
|
|
LIBSHA_SRC=$(LIBSHA)sha256.c
|
|
|
|
LDFLAGS=-lm
|
|
INCL_FLAGS=-I$(LIBWS)include -I$(LIBSHA)
|
|
|
|
main: src/main.c $(LIBSHA_SRC) output
|
|
gcc $(CFLAGS) $(INCL_FLAGS) -o output/main src/main.c $(LIBWS_LIB) $(LDFLAGS)
|
|
|
|
output:
|
|
mkdir -p output
|