llvm.org GIT mirror llvm / 17486ba
[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 Peter Zotov 5 years ago
1 changed file(s) with 10 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3030 endif
3131
3232 include $(LEVEL)/Makefile.common
33
34 # Used in out-of-tree builds of OCaml bindings only.
35 ifdef SYSTEM_LLVM_CONFIG
36 LLVM_CONFIG = $(SYSTEM_LLVM_CONFIG)
37 LLVMLibsOptions += $(shell $(LLVM_CONFIG) --ldflags)
38 endif
3339
3440 # Intentionally ignore PROJ_prefix here. We want the ocaml stdlib. However, the
3541 # user can override this with OCAML_LIBDIR or configure --with-ocaml-libdir=.
260266 endif
261267
262268
263 ##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===##
264
269 ##===- Deposit dependent libraries adjacent to OCaml libs -----------------===##
270
271 ifndef SYSTEM_LLVM_CONFIG
265272 all-local:: build-deplibs
266273 clean-local:: clean-deplibs
267274 install-local:: install-deplibs
286293
287294 uninstall-deplibs:
288295 $(Verb) $(RM) -f $(DestLibs)
289
296 endif
290297
291298 ##===- Build ocaml interfaces (.mli's -> .cmi's) --------------------------===##
292299