Skip to content
Snippets Groups Projects
Commit d9e4622f authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add Makefile (WIP)

parent f0b41aa5
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
.PHONY: all clean fmt test
all: openlibm/libopenlibm.a target/debug/libc.a target/debug/libcrt0.a
cargo build
clean:
cargo clean
make -C openlibm clean
make -C tests clean
fmt:
./fmt.sh
test: openlibm/libopenlibm.a
make -C tests run
target/debug/libc.a:
cargo build
target/debug/libcrt0.a:
cargo build --manifest-path src/crt0/Cargo.toml
openlibm/libopenlibm.a:
CFLAGS=-fno-stack-protector make -C openlibm libopenlibm.a
#!/bin/bash
set -ex
cargo build
cargo build --manifest-path src/crt0/Cargo.toml
CFLAGS=-fno-stack-protector make -C openlibm
make
make -C tests clean
make -C tests run
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment