2020-10-02 19:39:00 +02:00
|
|
|
CC = cc
|
|
|
|
CFLAGS = -Wall -Wextra -g
|
|
|
|
LDFLAGS = -ltls
|
|
|
|
|
2020-12-25 13:13:12 +01:00
|
|
|
.PHONY: all clean test
|
2020-10-02 19:39:00 +02:00
|
|
|
|
|
|
|
all: gmid TAGS README.md
|
|
|
|
|
2021-01-11 14:08:00 +01:00
|
|
|
gmid: gmid.o iri.o utf8.o
|
|
|
|
${CC} gmid.o iri.o utf8.o -o gmid ${LDFLAGS}
|
2020-10-02 19:39:00 +02:00
|
|
|
|
2021-01-11 14:08:00 +01:00
|
|
|
TAGS: gmid.c iri.c utf8.c
|
|
|
|
-etags gmid.c iri.c utf8.c || true
|
2020-10-02 19:39:00 +02:00
|
|
|
|
|
|
|
clean:
|
2021-01-11 14:08:00 +01:00
|
|
|
rm -f *.o gmid iri_test
|
2020-12-25 13:13:12 +01:00
|
|
|
|
2021-01-11 14:08:00 +01:00
|
|
|
iri_test: iri_test.o iri.o utf8.o
|
|
|
|
${CC} iri_test.o iri.o utf8.o -o iri_test ${LDFLAGS}
|
2020-12-25 13:13:12 +01:00
|
|
|
|
2021-01-11 14:08:00 +01:00
|
|
|
test: iri_test
|
|
|
|
./iri_test
|