@ -35,16 +35,19 @@ RUST_TARGET = --target $(host_triplet)
e n d i f
e n d i f
all-local : Cargo .toml
all-local : Cargo .toml
mkdir -p $( abs_top_builddir) /rust/gen
i f H A V E _ C Y G P A T H
i f H A V E _ C Y G P A T H
cd $( abs_top_srcdir) /rust && \
cd $( abs_top_srcdir) /rust && \
@rustup_home@ CARGO_HOME = " $( CARGO_HOME) " \
@rustup_home@ CARGO_HOME = " $( CARGO_HOME) " \
CARGO_TARGET_DIR = " $( e_rustdir) /target " \
CARGO_TARGET_DIR = " $( e_rustdir) /target " \
SURICATA_LUA_SYS_HEADER_DST = " $( e_rustdir) /gen " \
$( CARGO) build $( RELEASE) \
$( CARGO) build $( RELEASE) \
--features " $( RUST_FEATURES) " $( RUST_TARGET)
--features " $( RUST_FEATURES) " $( RUST_TARGET)
e l s e
e l s e
cd $( abs_top_srcdir) /rust && \
cd $( abs_top_srcdir) /rust && \
@rustup_home@ CARGO_HOME = " $( CARGO_HOME) " \
@rustup_home@ CARGO_HOME = " $( CARGO_HOME) " \
CARGO_TARGET_DIR = " $( abs_top_builddir) /rust/target " \
CARGO_TARGET_DIR = " $( abs_top_builddir) /rust/target " \
SURICATA_LUA_SYS_HEADER_DST = " $( abs_top_builddir) /rust/gen " \
$( CARGO) build $( RELEASE) $( NIGHTLY_ARGS) \
$( CARGO) build $( RELEASE) $( NIGHTLY_ARGS) \
--features " $( RUST_FEATURES) " $( RUST_TARGET)
--features " $( RUST_FEATURES) " $( RUST_TARGET)
e n d i f
e n d i f
@ -57,9 +60,6 @@ endif
$( RUST_SURICATA_LIBDIR) /${ RUST_SURICATA_LIBNAME } ; \
$( RUST_SURICATA_LIBDIR) /${ RUST_SURICATA_LIBNAME } ; \
fi
fi
$( MAKE) gen/rust-bindings.h
$( MAKE) gen/rust-bindings.h
mkdir -p $( abs_top_builddir) /rust/gen
cp -a $( RUST_SURICATA_LIBDIR) /build/suricata-lua-sys-*/out/lua/*.h \
$( abs_top_builddir) /rust/gen/
install-library :
install-library :
$( MKDIR_P) " $( DESTDIR) $( libdir) "
$( MKDIR_P) " $( DESTDIR) $( libdir) "