GNUmakefile 434 B

123456789101112131415161718192021222324252627
  1. name := sourcery
  2. build := stable
  3. flags += -I..
  4. nall.path := ../nall
  5. include $(nall.path)/GNUmakefile
  6. objects := obj/sourcery.o
  7. obj/sourcery.o: sourcery.cpp
  8. all: $(objects)
  9. $(info Linking out/$(name) ...)
  10. +@$(compiler) -o out/$(name) $(objects) $(options)
  11. verbose: nall.verbose all;
  12. clean:
  13. $(call delete,obj/*)
  14. $(call delete,out/*)
  15. install: all
  16. cp out/$(name) $(prefix)/bin/$(name)
  17. uninstall:
  18. rm -f $(prefix)/bin/$(name)