forked from OSchip/llvm-project
Refresh Makefile.ocaml in objdir if it is modified in srcdir.
Patch by Erick Tryzelaar! llvm-svn: 48150
This commit is contained in:
parent
04e38cf30a
commit
962755dbf5
|
@ -38,10 +38,16 @@ endif
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
OCAMLCFLAGS += -I $(OcamlDir) -I $(ObjDir)
|
OCAMLCFLAGS += -I $(OcamlDir) -I $(ObjDir)
|
||||||
|
ifneq ($(ObjectsO),)
|
||||||
OCAMLAFLAGS += $(patsubst %,-cclib %, \
|
OCAMLAFLAGS += $(patsubst %,-cclib %, \
|
||||||
$(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
|
$(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
|
||||||
$(shell $(LLVM_CONFIG) --ldflags)) \
|
$(shell $(LLVM_CONFIG) --ldflags)) \
|
||||||
$(UsedLibs))
|
$(UsedLibs))
|
||||||
|
else
|
||||||
|
OCAMLAFLAGS += $(patsubst %,-cclib %, \
|
||||||
|
$(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
|
||||||
|
$(UsedLibs))
|
||||||
|
endif
|
||||||
|
|
||||||
# -g was introduced in 3.10.0.
|
# -g was introduced in 3.10.0.
|
||||||
#ifneq ($(ENABLE_OPTIMIZED),1)
|
#ifneq ($(ENABLE_OPTIMIZED),1)
|
||||||
|
@ -107,6 +113,7 @@ $(ObjectsCMI): $(UsedOcamlInterfaces:%=$(OcamlDir)/%.cmi)
|
||||||
|
|
||||||
##===- Build static library from C sources --------------------------------===##
|
##===- Build static library from C sources --------------------------------===##
|
||||||
|
|
||||||
|
ifneq ($(ObjectsO),)
|
||||||
all-local:: $(LibraryA)
|
all-local:: $(LibraryA)
|
||||||
clean-local:: clean-a
|
clean-local:: clean-a
|
||||||
install-local:: install-a
|
install-local:: install-a
|
||||||
|
@ -130,6 +137,7 @@ install-a:: $(LibraryA)
|
||||||
uninstall-a::
|
uninstall-a::
|
||||||
$(Echo) "Uninstalling $(DestA)"
|
$(Echo) "Uninstalling $(DestA)"
|
||||||
-$(Verb) $(RM) -f $(DestA)
|
-$(Verb) $(RM) -f $(DestA)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===##
|
##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===##
|
||||||
|
|
Loading…
Reference in New Issue