GNUmakefile 297 B

123456789101112131415
  1. CXXFLAGS ?= -g -O2
  2. CXXFLAGS += -pedantic -Wall -Wno-long-long
  3. LDLIBS := -lkvm
  4. .PHONY: all man clean
  5. all: dtpstree
  6. man: man1/dtpstree.1
  7. man1/%.1: % man1/%.1.in
  8. help2man -I $@.in -Nn '$(shell sed -e '$$ s|^// ||p;d' $<.cpp)' -o $@ $(shell realpath $<)
  9. clean:
  10. rm -f dtpstree $(wildcard *core)