GNUmakefile 294 B

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