comparch-security / FlexiCAS

A Flexible Cache Architectural Simulator
Other
11 stars 3 forks source link

Update autoconf template files to support out-of-tree building #137

Closed xxie-xd closed 2 months ago

xxie-xd commented 2 months ago

Out-of-tree build can provide better support when integrating FlexiCAS into complex projects like spike-sdk-spec2017.

flexicas.mk.in:

by replacing .. to @top_srcdir@, autoconf is able to find correct path of precompiled static libraries libflexicas.a and cryptopp/libcryptopp.a , otherwise we need to mannually copy these two libs to build directory. When building under ../flexicas/build, the macro @top_srcdir@ still evals to ... Therefore the change is harmless.

flexicas.ac:

Empty file, but necessary for configure.ac under parent project, e.g. spike-flexicas/configure.ac