Makefile 589 B

1234567891011121314151617181920212223242526
  1. include src/Makefile.Host
  2. DIRS = src test regression
  3. .PHONY: all clean
  4. all clean:
  5. for d in $(DIRS); \
  6. do \
  7. $(MAKE) -C $$d $@ || exit $?; \
  8. done
  9. .PHONY: test
  10. test:
  11. $(MAKE) -C test test
  12. .PHONY: format
  13. format:
  14. clang-format -i $(shell find . -path ./lib/crypto/mbedtls -prune -o \
  15. -path ./lib/crypto/udivmodti4.c -prune -o \
  16. -path ./src/host/Linux-SGX/sgx-driver -prune -o \
  17. \( -name '*.h' -o -name '*.c' \) -print)
  18. .PHONY: pack
  19. pack:
  20. $(MAKE) -C test pack
  21. $(MAKE) -C regression pack