Blob


1 CXXFLAGS += -Wall -Wextra -std=c++11
2 LIBS = -ltls
4 CXXFILES = transport.cc error.cc gemini.cc args.cc request.cc open_file.cc mime.cc vostok.cc
5 HXXFILES = args.h error.h gemini.h mime.h open_file.h request.h transport.h utils.h
6 OFILES = ${CXXFILES:.cc=.o}
8 .cc.o: ${HXXFILES}
9 ${CXX} ${CXXFLAGS} -c -o $@ $<
11 vostok: ${OFILES}
12 ${CXX} ${LDFLAGS} -o $@ ${OFILES} ${LIBS}
14 clean:
15 rm -f ${OFILES} vostok
17 install: vostok
18 mkdir -p -m 755 $(PREFIX)/bin
19 install -m 755 vostok $(PREFIX)/bin/vostok
21 .PHONY: clean install