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 | 962755dbf5bb4070d0bf44a350352cc927da0eff (patch) | |
| tree | e1f243c195b18e57a46a16c9e74399aa25fca789 /llvm | |
| parent | 04e38cf30ab7afb79e37445cc1bdb87501a17d3f (diff) | |
| download | bcm5719-llvm-962755dbf5bb4070d0bf44a350352cc927da0eff.tar.gz bcm5719-llvm-962755dbf5bb4070d0bf44a350352cc927da0eff.zip | |
Refresh Makefile.ocaml in objdir if it is modified in srcdir.
Patch by Erick Tryzelaar!
llvm-svn: 48150
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/bindings/ocaml/Makefile.ocaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/bindings/ocaml/Makefile.ocaml b/llvm/bindings/ocaml/Makefile.ocaml index 55a052af7e0..c8e826f77e9 100644 --- a/llvm/bindings/ocaml/Makefile.ocaml +++ b/llvm/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 -----------------===## |

