Makefile 291 B

123456789101112131415
  1. MAKEFLAGS += --check-symlink-times
  2. SYS ?= $(shell gcc -dumpmachine)
  3. export SYS
  4. targets = all clean
  5. .PHONY: $(targets)
  6. $(targets):
  7. make $@ -C src
  8. make $@ -C test
  9. .PHONY: format
  10. format:
  11. clang-format -i $(shell find . -path ./test/apps -prune -o \( -name '*.h' -o -name '*.c' \) -print)