Makefile 376 B

1234567891011121314
  1. CXXFLAGS = -O3 -Wall
  2. spir_test: spir_test.o libspir_cxx.a
  3. g++ -o $@ $^ -lpthread -ldl
  4. libspir_cxx.a: spir.o ../target/release/libspiral_spir.a
  5. cp ../target/release/libspiral_spir.a $@
  6. ar r $@ $<
  7. ../target/release/libspiral_spir.a: $(wildcard ../src/*.rs)
  8. RUSTFLAGS="-C target-cpu=native" cargo build --release
  9. clean:
  10. -rm -f libspir_cxx.a spir.o spir_test.o spir_test