gmid/Makefile

23 lines
378 B
Makefile
Raw Normal View History

2020-10-02 19:39:00 +02:00
CC = cc
CFLAGS = -Wall -Wextra -g
LDFLAGS = -ltls
.PHONY: all clean test
2020-10-02 19:39:00 +02:00
all: gmid TAGS README.md
gmid: gmid.o uri.o utf8.o
${CC} gmid.o uri.o utf8.o -o gmid ${LDFLAGS}
2020-10-02 19:39:00 +02:00
TAGS: gmid.c uri.c utf8.c
-etags gmid.c uri.c utf8.c || true
2020-10-02 19:39:00 +02:00
clean:
rm -f *.o gmid
uri_test: uri_test.o uri.o utf8.o
${CC} uri_test.o uri.o utf8.o -o uri_test ${LDFLAGS}
test: uri_test
./uri_test