LIBDIR = ./rust/target/release
STATLIB = $(LIBDIR)/lib{{{pkg_name}}}.a
PKG_LIBS = -L$(LIBDIR) -l{{{pkg_name}}}

all: C_clean

$(SHLIB): $(STATLIB)

$(STATLIB):
	cargo build --lib --release --manifest-path=./rust/Cargo.toml

C_clean:
	rm -Rf $(SHLIB) $(STATLIB) $(OBJECTS)

clean:
	rm -Rf $(SHLIB) $(STATLIB) $(OBJECTS) rust/target
