diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-15 09:17:43 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-15 09:17:43 +0000 |
commit | 15902770073dd67df3a9af0f6da7d63bfb031d72 (patch) | |
tree | 2d7d2ddf6f97af870dc7f87299ecd813db1d38d9 /Makefile | |
parent | 4d2ec6d7054c76105c6237251002df1acb5a6c2d (diff) |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,19 +1,27 @@ CC = cc CFLAGS = -Wall -Wextra -g LDFLAGS = -ltls +LEX = lex +YACC = yacc .PHONY: all clean test all: gmid TAGS README.md -gmid: gmid.o iri.o utf8.o - ${CC} gmid.o iri.o utf8.o -o gmid ${LDFLAGS} +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 gmid iri_test + 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} |