Makefile 785 B

123456789101112131415161718192021222324252627282930313233343536
  1. include src/Makefile.Host
  2. DIRS = src test regression
  3. .PHONY: all
  4. all:
  5. $(MAKE) -C src
  6. clean_targets = clean distclean
  7. .PHONY: $(clean_targets)
  8. $(clean_targets):
  9. $(MAKE) -C src $@
  10. $(MAKE) -C test $@
  11. $(MAKE) -C regression $@
  12. $(MAKE) -C lib $@
  13. .PHONY: test
  14. test:
  15. $(MAKE) -C src test
  16. $(MAKE) -C test
  17. $(MAKE) -C regression
  18. .PHONY: sgx-tokens
  19. sgx-tokens:
  20. $(MAKE) -C test sgx-tokens
  21. $(MAKE) -C regression sgx-tokens
  22. .PHONY: format
  23. format:
  24. clang-format -i $(shell find . -path ./lib/crypto/mbedtls -prune -o \
  25. -path ./lib/crypto/udivmodti4.c -prune -o \
  26. -path ./src/host/Linux-SGX/sgx-driver -prune -o \
  27. \( -name '*.h' -o -name '*.c' \) -print)
  28. .PHONY: distclean
  29. distclean: clean