GNUmakefile 344 B

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