mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
[OCaml] Allow out-of-tree builds of LLVM bindings.
In order to use this feature, configure LLVM as usual, but then build and install it as: make all install SYSTEM_LLVM_CONFIG=llvm-config where llvm-config is the llvm-config binary installed on your system (possibly llvm-config-VERSION on e.g. Debian). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5b23df7cd8
commit
17486ba4bf
@ -32,6 +32,12 @@ endif
|
|||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
||||||
|
# Used in out-of-tree builds of OCaml bindings only.
|
||||||
|
ifdef SYSTEM_LLVM_CONFIG
|
||||||
|
LLVM_CONFIG = $(SYSTEM_LLVM_CONFIG)
|
||||||
|
LLVMLibsOptions += $(shell $(LLVM_CONFIG) --ldflags)
|
||||||
|
endif
|
||||||
|
|
||||||
# Intentionally ignore PROJ_prefix here. We want the ocaml stdlib. However, the
|
# Intentionally ignore PROJ_prefix here. We want the ocaml stdlib. However, the
|
||||||
# user can override this with OCAML_LIBDIR or configure --with-ocaml-libdir=.
|
# user can override this with OCAML_LIBDIR or configure --with-ocaml-libdir=.
|
||||||
PROJ_libocamldir := $(DESTDIR)$(OCAML_LIBDIR)
|
PROJ_libocamldir := $(DESTDIR)$(OCAML_LIBDIR)
|
||||||
@ -261,8 +267,9 @@ uninstall-shared::
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===##
|
##===- Deposit dependent libraries adjacent to OCaml libs -----------------===##
|
||||||
|
|
||||||
|
ifndef SYSTEM_LLVM_CONFIG
|
||||||
all-local:: build-deplibs
|
all-local:: build-deplibs
|
||||||
clean-local:: clean-deplibs
|
clean-local:: clean-deplibs
|
||||||
install-local:: install-deplibs
|
install-local:: install-deplibs
|
||||||
@ -287,7 +294,7 @@ install-deplibs:
|
|||||||
|
|
||||||
uninstall-deplibs:
|
uninstall-deplibs:
|
||||||
$(Verb) $(RM) -f $(DestLibs)
|
$(Verb) $(RM) -f $(DestLibs)
|
||||||
|
endif
|
||||||
|
|
||||||
##===- Build ocaml interfaces (.mli's -> .cmi's) --------------------------===##
|
##===- Build ocaml interfaces (.mli's -> .cmi's) --------------------------===##
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user