Makefile 437 B

123456789101112131415161718192021222324
  1. .PHONY: all clean fmt test
  2. all: openlibm/libopenlibm.a target/debug/libc.a target/debug/libcrt0.a
  3. cargo build
  4. clean:
  5. cargo clean
  6. make -C openlibm clean
  7. make -C tests clean
  8. fmt:
  9. ./fmt.sh
  10. test: openlibm/libopenlibm.a
  11. make -C tests run
  12. target/debug/libc.a:
  13. cargo build
  14. target/debug/libcrt0.a:
  15. cargo build --manifest-path src/crt0/Cargo.toml
  16. openlibm/libopenlibm.a:
  17. CFLAGS=-fno-stack-protector make -C openlibm libopenlibm.a