llvm.org GIT mirror llvm / f368dad
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 Gordon Henriksen 12 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3737
3838 # Tools
3939 OCAMLCFLAGS += -I $(OcamlDir) -I $(ObjDir)
40 ifneq ($(ObjectsO),)
4041 OCAMLAFLAGS += $(patsubst %,-cclib %, \
4142 $(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
4243 $(shell $(LLVM_CONFIG) --ldflags)) \
4344 $(UsedLibs))
45 else
46 OCAMLAFLAGS += $(patsubst %,-cclib %, \
47 $(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
48 $(UsedLibs))
49 endif
4450
4551 # -g was introduced in 3.10.0.
4652 #ifneq ($(ENABLE_OPTIMIZED),1)
106112
107113 ##===- Build static library from C sources --------------------------------===##
108114
115 ifneq ($(ObjectsO),)
109116 all-local:: $(LibraryA)
110117 clean-local:: clean-a
111118 install-local:: install-a
129136 uninstall-a::
130137 $(Echo) "Uninstalling $(DestA)"
131138 -$(Verb) $(RM) -f $(DestA)
139 endif
132140
133141
134142 ##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===##