mirror of
https://github.com/omar-polo/gmid.git
synced 2024-08-28 23:27:19 +02:00
32 lines
563 B
Makefile
32 lines
563 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
|
|
|
|
OBJS = gmid.o iri.o utf8.o lex.yy.o y.tab.o cgi.o sandbox.o
|
|
gmid: ${OBJS}
|
|
${CC} ${OBJS} -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
|