Makefile 875 B

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