gmid/Makefile
Omar Polo 1590277007 conf & vhosts
* gmid.c (main): changed behaviour: daemon off by default
(main): changed -c in -C (cert option)
(main): changed -k in -K (key option, for consistency with -C)
(main): added -c to load a configuration
(main): certs, key and doc (-C -K and -d) doesn't have a default value anymore
(handle_handshake): add vhosts support
2021-01-15 09:17:43 +00:00

31 lines
561 B
Makefile

CC = cc
CFLAGS = -Wall -Wextra -g
LDFLAGS = -ltls
LEX = lex
YACC = yacc
.PHONY: all clean test
all: gmid TAGS README.md
lex.yy.c: lex.l y.tab.c
${LEX} lex.l
y.tab.c: parse.y
${YACC} -b y -d parse.y
gmid: gmid.o iri.o utf8.o lex.yy.o y.tab.o
${CC} gmid.o iri.o utf8.o lex.yy.o y.tab.o -o gmid ${LDFLAGS}
TAGS: gmid.c iri.c utf8.c
-etags gmid.c iri.c utf8.c || true
clean:
rm -f *.o lex.yy.c y.tab.c y.tab.h y.output gmid iri_test
iri_test: iri_test.o iri.o utf8.o
${CC} iri_test.o iri.o utf8.o -o iri_test ${LDFLAGS}
test: iri_test
./iri_test