diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-05-14 20:59:01 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-05-14 20:59:40 -0700 |
commit | 79f31b5f151a3fd637e4587c4a14fd29d590e418 (patch) | |
tree | 81730c0f982a2121ba2789245388c4127810bc90 /Makefile.in | |
parent | 6d864f0188ecfc9d7b96c559f714020aaaa872d1 (diff) | |
download | spike-79f31b5f151a3fd637e4587c4a14fd29d590e418.zip spike-79f31b5f151a3fd637e4587c4a14fd29d590e418.tar.gz spike-79f31b5f151a3fd637e4587c4a14fd29d590e418.tar.bz2 |
rvv: also build softfloat shared library
used for unit test
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index 6c18318..709a8c5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -209,11 +209,15 @@ $(2)_reverse_deps := $$(call reverse_list,$$($(2)_subproject_deps)) $(2)_lib_libs := $$($(2)_reverse_deps) $(2)_lib_libnames := $$(patsubst %, lib%.a, $$($(2)_lib_libs)) $(2)_lib_libarg := $$(patsubst %, -l%, $$($(2)_lib_libs)) +$(2)_lib_libnames_shared := $$(if $$($(2)_install_shared_lib),lib$(1).so,) lib$(1).a : $$($(2)_objs) $$($(2)_c_objs) $$($(2)_lib_libnames) $(AR) rcs $$@ $$^ +lib$(1).so : $$($(2)_objs) $$($(2)_c_objs) $$($(2)_lib_libnames_shared) + $(LINK) -shared -o $$@ $(if $(filter Darwin,$(shell uname -s)),-install_name $(install_libs_dir)/$$@) $$^ $$($(2)_lib_libarg) $(LIBS) $(2)_junk += lib$(1).a +$(2)_junk += $$(if $$($(2)_install_shared_lib),lib$(1).so,) # Build unit tests @@ -303,6 +307,7 @@ test_outs += $$($(2)_test_outs) install_hdrs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_install_hdrs)) install_libs += $$(if $$($(2)_install_lib),lib$(1).a,) +install_libs += $$(if $$($(2)_install_shared_lib),lib$(1).so,) install_exes += $$($(2)_install_prog_exes) install_pcs += riscv-$(1).pc |