Blob
1 CXXFLAGS += -Wall -Wextra -std=c++112 LIBS = -ltls4 CXXFILES = transport.cc error.cc gemini.cc args.cc request.cc open_file.cc mime.cc vostok.cc5 HXXFILES = args.h error.h gemini.h mime.h open_file.h request.h transport.h utils.h6 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} vostok17 install: vostok18 mkdir -p -m 755 $(PREFIX)/bin19 install -m 755 vostok $(PREFIX)/bin/vostok21 .PHONY: clean install