Makefile.freebsd 686 B

1234567891011121314151617181920212223242526272829303132
  1. ################################################################
  2. # FreeBSD 10+ bmake Makefile
  3. #
  4. # Usage:
  5. # $ make -f Makefile.freebsd [check]
  6. .include "../src/defs.mk"
  7. Makefile = Makefile.freebsd
  8. SOURCES != ls *.cpp
  9. TESTS := $(SOURCES:.cpp=.$(TESTSUFF))
  10. .PHONY: tests check
  11. .include "pref.mk"
  12. .include "../src/$(Makefile)"
  13. # Override included values
  14. CFLAGS = -pedantic-errors
  15. CFLAGS_TEST = -MMD -o $@
  16. WARNS = -Wall -Wno-unused-local-typedefs
  17. .if $(std) == 98
  18. WARNS += -Wno-long-long
  19. .if $(compiler) == gcc
  20. WARNS += -Wno-c++0x-compat
  21. .elif $(compiler) == clang
  22. WARNS += -Wno-non-literal-null-conversion
  23. .endif
  24. .endif
  25. GARBAGE += *.d *.$(TESTSUFF)
  26. .-include "*.d"
  27. .include "suff.mk"