- CXXFLAGS = -O3 -Wall
- spir_test: spir_test.o libspir_cxx.a
- g++ -o $@ $^ -lpthread -ldl
- libspir_cxx.a: spir.o ../target/release/libspiral_spir.a
- cp ../target/release/libspiral_spir.a $@
- ar r $@ $<
- ../target/release/libspiral_spir.a: $(wildcard ../src/*.rs)
- RUSTFLAGS="-C target-cpu=native" cargo build --release
- clean:
- -rm -f libspir_cxx.a spir.o spir_test.o spir_test
|