diff options
author | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-05-13 14:54:24 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-05-13 15:18:27 -0700 |
commit | 126beb482ff62c31cfde36cc1a3d06f15d13a873 (patch) | |
tree | 08273e8a9c25f81a4223b86669ffd4c768775f69 /Makefile.in | |
parent | 40580c0409449f1a02664649e97bd397ed9eb171 (diff) | |
download | riscv-isa-sim-126beb482ff62c31cfde36cc1a3d06f15d13a873.zip riscv-isa-sim-126beb482ff62c31cfde36cc1a3d06f15d13a873.tar.gz riscv-isa-sim-126beb482ff62c31cfde36cc1a3d06f15d13a873.tar.bz2 |
Install pkg-config files for Spike
The actual Spike package consists of a whole bunch of libraries. This
installs a pkg-config file for each generated library, and a meta
pkg-config file (riscv-spike.pc) that links in all the other Spike
libraries except dummy_rocc (which I figure isn't interesting).
This allows me to package and install spike, and then use that package
to build an extension library (so I don't have to fork Spike for my
own ISA extension).
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 1d8d9b2..4dfc07b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -307,6 +307,7 @@ test_outs += $$($(2)_test_outs) install_hdrs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_hdrs)) $$($(2)_gen_hdrs) install_libs += lib$(1).so install_exes += $$($(2)_install_prog_exes) +install_pcs += riscv-$(1).pc endef @@ -358,7 +359,14 @@ install-exes : $(install_exes) $(INSTALL_EXE) $$file $(install_exes_dir); \ done -install : install-hdrs install-libs install-exes +install-pc : $(install_pcs) + $(MKINSTALLDIRS) $(install_libs_dir)/pkgconfig/ + for file in $^; \ + do \ + $(INSTALL_HDR) $$file $(install_libs_dir)/pkgconfig/; \ + done + +install : install-hdrs install-libs install-exes install-pc ifeq ($(enable_stow),yes) $(MKINSTALLDIRS) $(stow_pkg_dir) cd $(stow_pkg_dir) && \ |