diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-10 16:15:32 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-03-10 16:15:32 +0000 |
commit | 1dcfa727fc0d4604b4e6b2e812ca3544a00c133a (patch) | |
tree | 8ef7f810a6604516284886077ccf09bdc1984a87 /bindings/ocaml | |
parent | 4290f66cce806617388065e6c863d85e9dd281fc (diff) | |
download | external_llvm-1dcfa727fc0d4604b4e6b2e812ca3544a00c133a.zip external_llvm-1dcfa727fc0d4604b4e6b2e812ca3544a00c133a.tar.gz external_llvm-1dcfa727fc0d4604b4e6b2e812ca3544a00c133a.tar.bz2 |
Refresh Makefile.ocaml in objdir if it is modified in srcdir.
Patch by Erick Tryzelaar!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml')
-rw-r--r-- | bindings/ocaml/Makefile.ocaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml index 55a052a..c8e826f 100644 --- a/bindings/ocaml/Makefile.ocaml +++ b/bindings/ocaml/Makefile.ocaml @@ -38,10 +38,16 @@ endif # Tools OCAMLCFLAGS += -I $(OcamlDir) -I $(ObjDir) +ifneq ($(ObjectsO),) OCAMLAFLAGS += $(patsubst %,-cclib %, \ $(filter-out -L$(LibDir),-l$(LIBRARYNAME) \ $(shell $(LLVM_CONFIG) --ldflags)) \ $(UsedLibs)) +else +OCAMLAFLAGS += $(patsubst %,-cclib %, \ + $(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \ + $(UsedLibs)) +endif # -g was introduced in 3.10.0. #ifneq ($(ENABLE_OPTIMIZED),1) @@ -107,6 +113,7 @@ $(ObjectsCMI): $(UsedOcamlInterfaces:%=$(OcamlDir)/%.cmi) ##===- Build static library from C sources --------------------------------===## +ifneq ($(ObjectsO),) all-local:: $(LibraryA) clean-local:: clean-a install-local:: install-a @@ -130,6 +137,7 @@ install-a:: $(LibraryA) uninstall-a:: $(Echo) "Uninstalling $(DestA)" -$(Verb) $(RM) -f $(DestA) +endif ##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===## |