Makefile 392 B

123456789101112131415161718
  1. MAKEFLAGS += --check-symlink-times
  2. SYS ?= $(shell gcc -dumpmachine)
  3. export SYS
  4. targets = all debug clean
  5. ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
  6. targets += pack
  7. endif
  8. .PHONY: $(targets)
  9. $(targets):
  10. make $@ -C src
  11. make $@ -C test
  12. .PHONY: format
  13. format:
  14. clang-format -i $(shell find . -path ./test/apps -prune -o \( -name '*.h' -o -name '*.c' \) -print)