summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-01-26 21:29:08 +0000
committerChris Bieneman <beanz@apple.com>2016-01-26 21:29:08 +0000
commitcaeade42341b7b7a14b4e6bd13aeccd4a1da452a (patch)
tree1df6772d2400d85425703f186ff6692211c5103c /bindings
parent380ddb15a7d0ef99f20683a25af7c399b966d207 (diff)
Remove autoconf support
Summary: This patch is provided in preparation for removing autoconf on 1/26. The proposal to remove autoconf on 1/26 was discussed on the llvm-dev thread here: http://lists.llvm.org/pipermail/llvm-dev/2016-January/093875.html "I felt a great disturbance in the [build system], as if millions of [makefiles] suddenly cried out in terror and were suddenly silenced. I fear something [amazing] has happened." - Obi Wan Kenobi Reviewers: chandlerc, grosbach, bob.wilson, tstellarAMD, echristo, whitequark Subscribers: chfast, simoncook, emaste, jholewinski, tberghammer, jfb, danalbert, srhines, arsenm, dschuff, jyknight, dsanders, joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D16471 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/Makefile20
-rw-r--r--bindings/ocaml/Makefile20
-rw-r--r--bindings/ocaml/Makefile.ocaml483
-rw-r--r--bindings/ocaml/all_backends/Makefile21
-rw-r--r--bindings/ocaml/analysis/Makefile19
-rw-r--r--bindings/ocaml/backends/Makefile61
-rw-r--r--bindings/ocaml/backends/Makefile.common65
-rw-r--r--bindings/ocaml/bitreader/Makefile19
-rw-r--r--bindings/ocaml/bitwriter/Makefile19
-rw-r--r--bindings/ocaml/executionengine/Makefile20
-rw-r--r--bindings/ocaml/irreader/Makefile19
-rw-r--r--bindings/ocaml/linker/Makefile19
-rw-r--r--bindings/ocaml/llvm/Makefile43
-rw-r--r--bindings/ocaml/target/Makefile19
-rw-r--r--bindings/ocaml/transforms/Makefile18
-rw-r--r--bindings/ocaml/transforms/ipo/Makefile19
-rw-r--r--bindings/ocaml/transforms/passmgr_builder/Makefile19
-rw-r--r--bindings/ocaml/transforms/scalar_opts/Makefile19
-rw-r--r--bindings/ocaml/transforms/utils/Makefile19
-rw-r--r--bindings/ocaml/transforms/vectorize/Makefile19
20 files changed, 0 insertions, 960 deletions
diff --git a/bindings/Makefile b/bindings/Makefile
deleted file mode 100644
index 70e9e6cc630..00000000000
--- a/bindings/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-##===- bindings/Makefile -----------------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ..
-
-include $(LEVEL)/Makefile.config
-
-PARALLEL_DIRS =
-
-ifneq (,$(filter ocaml,$(BINDINGS_TO_BUILD)))
-PARALLEL_DIRS += ocaml
-endif
-
-include $(LEVEL)/Makefile.common
diff --git a/bindings/ocaml/Makefile b/bindings/ocaml/Makefile
deleted file mode 100644
index 2005367e8d7..00000000000
--- a/bindings/ocaml/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-##===- bindings/ocaml/Makefile -----------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../..
-DIRS = llvm bitreader bitwriter irreader analysis target executionengine \
- transforms linker backends all_backends
-ExtraMakefiles = $(PROJ_OBJ_DIR)/Makefile.ocaml
-
-ocamldoc:
- $(Verb) for i in $(DIRS) ; do \
- $(MAKE) -C $$i ocamldoc; \
- done
-
-include $(LEVEL)/Makefile.common
diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml
deleted file mode 100644
index 22b96a298ef..00000000000
--- a/bindings/ocaml/Makefile.ocaml
+++ /dev/null
@@ -1,483 +0,0 @@
-##===- bindings/ocaml/Makefile.ocaml -----------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# An OCaml library is a unique project type in the context of LLVM, so rules are
-# here rather than in Makefile.rules.
-#
-# Reference materials on installing OCaml libraries:
-#
-# https://fedoraproject.org/wiki/Packaging/OCaml
-# http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.txt
-#
-##===----------------------------------------------------------------------===##
-
-include $(LEVEL)/Makefile.config
-
-# We have our own rules for building static libraries.
-NO_BUILD_ARCHIVE = 1
-
-# CFLAGS needs to be set before Makefile.rules is included.
-CXX.Flags += -I"$(shell $(OCAMLFIND) c -where)"
-C.Flags += -I"$(shell $(OCAMLFIND) c -where)"
-
-ifeq ($(ENABLE_SHARED),1)
-LINK_COMPONENTS := all
-endif
-
-include $(LEVEL)/Makefile.common
-
-# Used in out-of-tree builds of OCaml bindings only.
-ifdef SYSTEM_LLVM_CONFIG
-LLVM_CONFIG = $(SYSTEM_LLVM_CONFIG)
-LLVMLibsOptions += $(shell $(LLVM_CONFIG) --ldflags)
-endif
-
-# Intentionally ignore PROJ_prefix here. We want the ocaml stdlib. However, the
-# user can override this with OCAML_LIBDIR or configure --with-ocaml-libdir=.
-PROJ_libocamldir := $(DESTDIR)$(OCAML_LIBDIR)
-OcamlDir := $(LibDir)/ocaml
-
-# Info from llvm-config and similar
-ifndef IS_CLEANING_TARGET
-ifdef UsedComponents
-UsedLibs = $(shell $(LLVM_CONFIG) --libs --system-libs $(UsedComponents))
-UsedLibNames = $(shell $(LLVM_CONFIG) --libnames $(UsedComponents))
-endif
-endif
-
-# How do we link OCaml executables with LLVM?
-# 1) If this is a --enable-shared build, build stub libraries. This also allows
-# to use LLVM from toplevels.
-# 2) If this is a --disable-shared build, embed ocamlc options for building
-# a custom runtime and a static executable. It is not possible to use LLVM
-# from toplevels.
-ifneq ($(ObjectsO),)
-ifeq ($(ENABLE_SHARED),1)
-OCAMLSTUBS := 1
-OCAMLSTUBFLAGS := $(patsubst %,-cclib %, $(LLVMLibsOptions) -l$(LIBRARYNAME))
-endif
-endif
-
-# Avoid the need for LD_LIBRARY_PATH
-ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
-ifneq ($(HOST_OS),Darwin)
-OCAMLRPATH := $(RPATH) -Wl,'$$ORIGIN/../../lib'
-endif
-endif
-
-# See http://caml.inria.fr/mantis/view.php?id=6642
-OCAMLORIGIN := -ccopt -L'$$CAMLORIGIN/..' \
- -ccopt $(RPATH) -ccopt -Wl,'$$CAMLORIGIN/..'
-
-# Tools
-OCAMLCFLAGS += -I $(OcamlDir) $(addprefix -package ,$(FindlibPackages))
-
-ifndef IS_CLEANING_TARGET
-ifneq ($(ObjectsO),)
-OCAMLAFLAGS += $(patsubst %,-cclib %, \
- $(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
- $(shell $(LLVM_CONFIG) --ldflags)) \
- $(UsedLibs) $(ExtraLibs))
-else
-OCAMLAFLAGS += $(patsubst %,-cclib %, \
- $(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
- $(UsedLibs) $(ExtraLibs))
-endif
-endif
-
-ifneq ($(DEBUG_SYMBOLS),1)
- OCAMLDEBUGFLAG := -g
-endif
-
-Compile.CMI := $(strip $(OCAMLFIND) c -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
-Compile.CMO := $(strip $(OCAMLFIND) c -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
-Compile.CMX := $(strip $(OCAMLFIND) opt -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
-
-ifdef OCAMLSTUBS
-# -dllib is engaged with ocamlc builds, $(OCAMLSTUBFLAGS) in ocamlc -custom builds.
-Archive.CMA := $(strip $(OCAMLFIND) c -a -dllib -l$(LIBRARYNAME) $(OCAMLSTUBFLAGS) \
- $(OCAMLDEBUGFLAG) $(OCAMLORIGIN) -o)
-else
-Archive.CMA := $(strip $(OCAMLFIND) c -a -custom $(OCAMLAFLAGS) $(OCAMLDEBUGFLAG) \
- $(OCAMLORIGIN) -o)
-endif
-
-ifdef OCAMLSTUBS
-Archive.CMXA := $(strip $(OCAMLFIND) opt -a $(OCAMLSTUBFLAGS) $(OCAMLDEBUGFLAG) \
- $(OCAMLORIGIN) -o)
-else
-Archive.CMXA := $(strip $(OCAMLFIND) opt -a $(OCAMLAFLAGS) $(OCAMLDEBUGFLAG) \
- $(OCAMLORIGIN) -o)
-endif
-
-# Source files
-ifndef OcamlSources1
-OcamlSources1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.ml))
-endif
-
-ifndef OcamlHeaders1
-OcamlHeaders1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.mli))
-endif
-
-OcamlSources2 := $(filter-out $(ExcludeSources),$(OcamlSources1))
-OcamlHeaders2 := $(filter-out $(ExcludeHeaders),$(OcamlHeaders1))
-
-OcamlSources := $(OcamlSources2:$(PROJ_SRC_DIR)/%=$(ObjDir)/%)
-OcamlHeaders := $(OcamlHeaders2:$(PROJ_SRC_DIR)/%=$(ObjDir)/%)
-
-# Intermediate files
-ObjectsCMI := $(OcamlSources:%.ml=%.cmi)
-ObjectsCMO := $(OcamlSources:%.ml=%.cmo)
-ObjectsCMX := $(OcamlSources:%.ml=%.cmx)
-
-ifdef LIBRARYNAME
-LibraryCMA := $(ObjDir)/$(LIBRARYNAME).cma
-LibraryCMXA := $(ObjDir)/$(LIBRARYNAME).cmxa
-endif
-
-ifdef TOOLNAME
-ToolEXE := $(ObjDir)/$(TOOLNAME)$(EXEEXT)
-endif
-
-# Output files
-# The .cmo files are the only intermediates; all others are to be installed.
-OutputsCMI := $(ObjectsCMI:$(ObjDir)/%.cmi=$(OcamlDir)/%.cmi)
-OutputsCMX := $(ObjectsCMX:$(ObjDir)/%.cmx=$(OcamlDir)/%.cmx)
-OutputLibs := $(UsedLibNames:%=$(OcamlDir)/%)
-
-ifdef LIBRARYNAME
-LibraryA := $(OcamlDir)/lib$(LIBRARYNAME).a
-OutputCMA := $(LibraryCMA:$(ObjDir)/%.cma=$(OcamlDir)/%.cma)
-OutputCMXA := $(LibraryCMXA:$(ObjDir)/%.cmxa=$(OcamlDir)/%.cmxa)
-endif
-
-ifdef OCAMLSTUBS
-SharedLib := $(OcamlDir)/dll$(LIBRARYNAME)$(SHLIBEXT)
-endif
-
-ifdef TOOLNAME
-ifdef EXAMPLE_TOOL
-OutputEXE := $(ExmplDir)/$(strip $(TOOLNAME))$(EXEEXT)
-else
-OutputEXE := $(ToolDir)/$(strip $(TOOLNAME))$(EXEEXT)
-endif
-endif
-
-# Installation targets
-DestLibs := $(UsedLibNames:%=$(PROJ_libocamldir)/%)
-
-ifdef LIBRARYNAME
-DestA := $(PROJ_libocamldir)/lib$(LIBRARYNAME).a
-DestCMA := $(PROJ_libocamldir)/$(LIBRARYNAME).cma
-DestCMXA := $(PROJ_libocamldir)/$(LIBRARYNAME).cmxa
-endif
-
-ifdef OCAMLSTUBS
-DestSharedLib := $(PROJ_libocamldir)/dll$(LIBRARYNAME)$(SHLIBEXT)
-endif
-
-##===- Dependencies -------------------------------------------------------===##
-# Copy the sources into the intermediate directory because older ocamlc doesn't
-# support -o except when linking (outputs are placed next to inputs).
-
-$(ObjDir)/%.mli: $(PROJ_SRC_DIR)/%.mli $(ObjDir)/.dir
- $(Verb) $(CP) -f $< $@
-
-$(ObjDir)/%.ml: $(PROJ_SRC_DIR)/%.ml $(ObjDir)/.dir
- $(Verb) $(CP) -f $< $@
-
-$(ObjectsCMI): $(UsedOcamlInterfaces:%=$(OcamlDir)/%.cmi)
-
-ifdef LIBRARYNAME
-$(ObjDir)/$(LIBRARYNAME).ocamldep: $(OcamlSources) $(OcamlHeaders) \
- $(OcamlDir)/.dir $(ObjDir)/.dir
- $(Verb) $(OCAMLFIND) dep $(OCAMLCFLAGS) $(OcamlSources) $(OcamlHeaders) > $@
-
--include $(ObjDir)/$(LIBRARYNAME).ocamldep
-endif
-
-ifdef TOOLNAME
-$(ObjDir)/$(TOOLNAME).ocamldep: $(OcamlSources) $(OcamlHeaders) \
- $(OcamlDir)/.dir $(ObjDir)/.dir
- $(Verb) $(OCAMLFIND) dep $(OCAMLCFLAGS) $(OcamlSources) $(OcamlHeaders) > $@
-
--include $(ObjDir)/$(TOOLNAME).ocamldep
-endif
-
-##===- Build static library from C sources --------------------------------===##
-
-ifdef LibraryA
-all-local:: $(LibraryA)
-clean-local:: clean-a
-install-local:: install-a
-uninstall-local:: uninstall-a
-
-$(LibraryA): $(ObjectsO) $(OcamlDir)/.dir
- $(Echo) "Building $(BuildMode) $(notdir $@)"
- -$(Verb) $(RM) -f $@
- $(Verb) $(Archive) $@ $(ObjectsO)
- $(Verb) $(Ranlib) $@
-
-clean-a::
- -$(Verb) $(RM) -f $(LibraryA)
-
-install-a:: $(LibraryA)
- $(Echo) "Installing $(BuildMode) $(DestA)"
- $(Verb) $(MKDIR) $(PROJ_libocamldir)
- $(Verb) $(INSTALL) $(LibraryA) $(DestA)
- $(Verb)
-
-uninstall-a::
- $(Echo) "Uninstalling $(DestA)"
- -$(Verb) $(RM) -f $(DestA)
-endif
-
-
-##===- Build stub library from C sources ----------------------------------===##
-
-ifdef SharedLib
-all-local:: $(SharedLib)
-clean-local:: clean-shared
-install-local:: install-shared
-uninstall-local:: uninstall-shared
-
-$(SharedLib): $(ObjectsO) $(OcamlDir)/.dir
- $(Echo) "Building $(BuildMode) $(notdir $@)"
- $(Verb) $(Link) $(SharedLinkOptions) $(OCAMLRPATH) -o $@ $(ObjectsO) \
- $(LLVMLibsOptions)
-
-clean-shared::
- -$(Verb) $(RM) -f $(SharedLib)
-
-install-shared:: $(SharedLib)
- $(Echo) "Installing $(BuildMode) $(DestSharedLib)"
- $(Verb) $(MKDIR) $(PROJ_libocamldir)
- $(Verb) $(INSTALL) $(SharedLib) $(DestSharedLib)
- $(Verb)
-
-uninstall-shared::
- $(Echo) "Uninstalling $(DestSharedLib)"
- -$(Verb) $(RM) -f $(DestSharedLib)
-endif
-
-
-##===- Deposit dependent libraries adjacent to OCaml libs -----------------===##
-
-ifndef SYSTEM_LLVM_CONFIG
-all-local:: build-deplibs
-clean-local:: clean-deplibs
-install-local:: install-deplibs
-uninstall-local:: uninstall-deplibs
-
-build-deplibs: $(OutputLibs)
-
-$(OcamlDir)/%.so: $(LibDir)/%.so
- $(Verb) ln -sf $< $@
-$(OcamlDir)/%.a: $(LibDir)/%.a
- $(Verb) ln -sf $< $@
-
-$(OcamlDir)/%.o: $(LibDir)/%.o
- $(Verb) ln -sf $< $@
-
-clean-deplibs:
- $(Verb) $(RM) -f $(OutputLibs)
-
-install-deplibs:
- $(Verb) $(MKDIR) $(PROJ_libocamldir)
- $(Verb) for i in $(DestLibs:$(PROJ_libocamldir)/%=%); do \
- ln -sf "$(PROJ_libdir)/$$i" "$(PROJ_libocamldir)/$$i"; \
- done
-
-uninstall-deplibs:
- $(Verb) $(RM) -f $(DestLibs)
-endif
-
-##===- Build ocaml interfaces (.mli's -> .cmi's) --------------------------===##
-
-ifneq ($(OcamlHeaders),)
-all-local:: build-cmis
-clean-local:: clean-cmis
-install-local:: install-cmis
-uninstall-local:: uninstall-cmis
-
-build-cmis: $(OutputsCMI)
-
-$(OcamlDir)/%.cmi: $(ObjDir)/%.cmi $(OcamlDir)/.dir
- $(Verb) $(CP) -f $< $@
-
-$(ObjDir)/%.cmi: $(ObjDir)/%.mli $(ObjDir)/.dir
- $(Echo) "Compiling $(notdir $<) for $(BuildMode) build"
- $(Verb) $(Compile.CMI) $@ $<
-
-clean-cmis::
- -$(Verb) $(RM) -f $(OutputsCMI)
-
-# Also install the .mli's (headers) as documentation.
-install-cmis: $(OutputsCMI) $(OcamlHeaders)
- $(Verb) $(MKDIR) $(PROJ_libocamldir)
- $(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
- $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
- $(DataInstall) $(ObjDir)/$$i "$(PROJ_libocamldir)/$$i"; \
- done
- $(Verb) for i in $(OutputsCMI:$(OcamlDir)/%=%); do \
- $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
- $(DataInstall) $(OcamlDir)/$$i "$(PROJ_libocamldir)/$$i"; \
- done
-
-uninstall-cmis::
- $(Verb) for i in $(OutputsCMI:$(OcamlDir)/%=%); do \
- $(EchoCmd) "Uninstalling $(PROJ_libocamldir)/$$i"; \
- $(RM) -f "$(PROJ_libocamldir)/$$i"; \
- done
- $(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
- $(EchoCmd) "Uninstalling $(PROJ_libocamldir)/$$i"; \
- $(RM) -f "$(PROJ_libocamldir)/$$i"; \
- done
-endif
-
-
-##===- Build ocaml bytecode archive (.ml's -> .cmo's -> .cma) -------------===##
-
-$(ObjDir)/%.cmo: $(ObjDir)/%.ml
- $(Echo) "Compiling $(notdir $<) for $(BuildMode) build"
- $(Verb) $(Compile.CMO) $@ $<
-
-ifdef LIBRARYNAME
-all-local:: $(OutputCMA)
-clean-local:: clean-cma
-install-local:: install-cma
-uninstall-local:: uninstall-cma
-
-$(OutputCMA): $(LibraryCMA) $(OcamlDir)/.dir
- $(Verb) $(CP) -f $< $@
-
-$(LibraryCMA): $(ObjectsCMO) $(OcamlDir)/.dir
- $(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
- $(Verb) $(Archive.CMA) $@ $(ObjectsCMO)
-
-clean-cma::
- $(Verb) $(RM) -f $(OutputCMA) $(UsedLibNames:%=$(OcamlDir)/%)
-
-install-cma:: $(OutputCMA)
- $(Echo) "Installing $(BuildMode) $(DestCMA)"
- $(Verb) $(MKDIR) $(PROJ_libocamldir)
- $(Verb) $(DataInstall) $(OutputCMA) "$(DestCMA)"
-
-uninstall-cma::
- $(Echo) "Uninstalling $(DestCMA)"
- -$(Verb) $(RM) -f $(DestCMA)
-endif
-
-##===- Build optimized ocaml archive (.ml's -> .cmx's -> .cmxa, .a) -------===##
-
-# The ocamlopt compiler is supported on a set of targets disjoint from LLVM's.
-# If unavailable, 'configure' will set HAVE_OCAMLOPT to 0 in Makefile.config.
-ifeq ($(HAVE_OCAMLOPT),1)
-
-$(OcamlDir)/%.cmx: $(ObjDir)/%.cmx
- $(Verb) $(CP) -f $< $@
-
-$(ObjDir)/%.cmx: $(ObjDir)/%.ml
- $(Echo) "Compiling optimized $(notdir $<) for $(BuildMode) build"
- $(Verb) $(Compile.CMX) $@ $<
-
-ifdef LIBRARYNAME
-all-local:: $(OutputCMXA) $(OutputsCMX)
-clean-local:: clean-cmxa
-install-local:: install-cmxa
-uninstall-local:: uninstall-cmxa
-
-$(OutputCMXA): $(LibraryCMXA)
- $(Verb) $(CP) -f $< $@
- $(Verb) $(CP) -f $(<:.cmxa=.a) $(@:.cmxa=.a)
-
-$(LibraryCMXA): $(ObjectsCMX)
- $(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
- $(Verb) $(Archive.CMXA) $@ $(ObjectsCMX)
- $(Verb) $(RM) -f $(@:.cmxa=.o)
-
-clean-cmxa::
- $(Verb) $(RM) -f $(OutputCMXA) $(OutputCMXA:.cmxa=.a) $(OutputsCMX)
-
-install-cmxa:: $(OutputCMXA) $(OutputsCMX)
- $(Verb) $(MKDIR) $(PROJ_libocamldir)
- $(Echo) "Installing $(BuildMode) $(DestCMXA)"
- $(Verb) $(DataInstall) $(OutputCMXA) $(DestCMXA)
- $(Echo) "Installing $(BuildMode) $(DestCMXA:.cmxa=.a)"
- $(Verb) $(DataInstall) $(OutputCMXA:.cmxa=.a) $(DestCMXA:.cmxa=.a)
- $(Verb) for i in $(OutputsCMX:$(OcamlDir)/%=%); do \
- $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
- $(DataInstall) $(OcamlDir)/$$i "$(PROJ_libocamldir)/$$i"; \
- done
-
-uninstall-cmxa::
- $(Echo) "Uninstalling $(DestCMXA)"
- $(Verb) $(RM) -f $(DestCMXA)
- $(Echo) "Uninstalling $(DestCMXA:.cmxa=.a)"
- $(Verb) $(RM) -f $(DestCMXA:.cmxa=.a)
- $(Verb) for i in $(OutputsCMX:$(OcamlDir)/%=%); do \
- $(EchoCmd) "Uninstalling $(PROJ_libocamldir)/$$i"; \
- $(RM) -f $(PROJ_libocamldir)/$$i; \
- done
-endif
-endif
-
-##===- Generate documentation ---------------------------------------------===##
-
-$(ObjDir)/$(LIBRARYNAME).odoc: $(ObjectsCMI)
- $(Echo) "Documenting $(notdir $@)"
- $(Verb) $(OCAMLFIND) doc -I $(ObjDir) -I $(OcamlDir) -dump $@ $(OcamlHeaders)
-
-ocamldoc: $(ObjDir)/$(LIBRARYNAME).odoc
-
-##===- Debugging gunk -----------------------------------------------------===##
-printvars:: printcamlvars
-
-printcamlvars::
- $(Echo) "LLVM_CONFIG : " '$(LLVM_CONFIG)'
- $(Echo) "OCAMLCFLAGS : " '$(OCAMLCFLAGS)'
- $(Echo) "OCAMLAFLAGS : " '$(OCAMLAFLAGS)'
- $(Echo) "OCAMLRPATH : " '$(OCAMLRPATH)'
- $(Echo) "OCAMLSTUBS : " '$(OCAMLSTUBS)'
- $(Echo) "OCAMLSTUBFLAGS : " '$(OCAMLSTUBFLAGS)'
- $(Echo) "OCAMLFIND : " '$(OCAMLFIND)'
- $(Echo) "Compile.CMI : " '$(Compile.CMI)'
- $(Echo) "Compile.CMO : " '$(Compile.CMO)'
- $(Echo) "Archive.CMA : " '$(Archive.CMA)'
- $(Echo) "Compile.CMX : " '$(Compile.CMX)'
- $(Echo) "Archive.CMXA : " '$(Archive.CMXA)'
- $(Echo) "CAML_LIBDIR : " '$(CAML_LIBDIR)'
- $(Echo) "LibraryA : " '$(LibraryA)'
- $(Echo) "LibraryCMA : " '$(LibraryCMA)'
- $(Echo) "LibraryCMXA : " '$(LibraryCMXA)'
- $(Echo) "SharedLib : " '$(SharedLib)'
- $(Echo) "OcamlSources1: " '$(OcamlSources1)'
- $(Echo) "OcamlSources2: " '$(OcamlSources2)'
- $(Echo) "OcamlSources : " '$(OcamlSources)'
- $(Echo) "OcamlHeaders1: " '$(OcamlHeaders1)'
- $(Echo) "OcamlHeaders2: " '$(OcamlHeaders2)'
- $(Echo) "OcamlHeaders : " '$(OcamlHeaders)'
- $(Echo) "ObjectsCMI : " '$(ObjectsCMI)'
- $(Echo) "ObjectsCMO : " '$(ObjectsCMO)'
- $(Echo) "ObjectsCMX : " '$(ObjectsCMX)'
- $(Echo) "OCAML_LIBDIR : " '$(OCAML_LIBDIR)'
- $(Echo) "DestA : " '$(DestA)'
- $(Echo) "DestCMA : " '$(DestCMA)'
- $(Echo) "DestCMXA : " '$(DestCMXA)'
- $(Echo) "DestSharedLib: " '$(DestSharedLib)'
- $(Echo) "UsedLibs : " '$(UsedLibs)'
- $(Echo) "UsedLibNames : " '$(UsedLibNames)'
- $(Echo) "ExtraLibs : " '$(ExtraLibs)'
-
-.PHONY: printcamlvars build-cmis \
- clean-a clean-cmis clean-cma clean-cmxa \
- install-a install-cmis install-cma install-cmxa \
- install-exe \
- uninstall-a uninstall-cmis uninstall-cma uninstall-cmxa \
- uninstall-exe
diff --git a/bindings/ocaml/all_backends/Makefile b/bindings/ocaml/all_backends/Makefile
deleted file mode 100644
index f7c8cdbd8c3..00000000000
--- a/bindings/ocaml/all_backends/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-##===- bindings/ocaml/all_backends/Makefile ----------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_all_backends interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-include $(LEVEL)/Makefile.config
-
-LIBRARYNAME := llvm_all_backends
-UsedComponents := $(TARGETS_TO_BUILD)
-UsedOcamlInterfaces :=
-
-include ../Makefile.ocaml
diff --git a/bindings/ocaml/analysis/Makefile b/bindings/ocaml/analysis/Makefile
deleted file mode 100644
index daff06194d1..00000000000
--- a/bindings/ocaml/analysis/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/analysis/Makefile --------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_analysis interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-LIBRARYNAME := llvm_analysis
-UsedComponents := analysis
-UsedOcamlInterfaces := llvm
-
-include ../Makefile.ocaml
diff --git a/bindings/ocaml/backends/Makefile b/bindings/ocaml/backends/Makefile
deleted file mode 100644
index ff39212c50b..00000000000
--- a/bindings/ocaml/backends/Makefile
+++ /dev/null
@@ -1,61 +0,0 @@
-##===- bindings/ocaml/backends/Makefile --------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the master makefile for backend-specific bindings. It works by
-# creating a stub makefile for each configured target, e.g. Makefile.ARM, and
-# invoking it to compile the corresponding library, e.g. Llvm_ARM.
-#
-# This scheme allows to keep changes to Makefile.ocaml minimal.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-ExtraMakefiles = $(PROJ_OBJ_DIR)/Makefile.common
-
-include $(LEVEL)/Makefile.config
-include $(LEVEL)/Makefile.common
-
-all-local:: all-backends
-clean-local:: clean-backends
-install-local:: install-backends
-uninstall-local:: uninstall-backends
-
-stubs:
- $(Verb) for i in $(TARGETS_TO_BUILD); do \
- $(ECHO) "TARGET := $$i" > Makefile.$$i; \
- $(ECHO) "include Makefile.common" >> Makefile.$$i; \
- done
-
-all-backends: stubs
- $(Verb) for i in $(TARGETS_TO_BUILD); do \
- $(MAKE) -f Makefile.$$i all; \
- done
-
-clean-backends: stubs
- $(Verb) for i in $(TARGETS_TO_BUILD); do \
- $(MAKE) -f Makefile.$$i clean; \
- $(RM) -f Makefile.$$i; \
- done
-
-install-backends: stubs
- $(Verb) for i in $(TARGETS_TO_BUILD); do \
- $(MAKE) -f Makefile.$$i install; \
- done
-
-uninstall-backends: stubs
- $(Verb) for i in $(TARGETS_TO_BUILD); do \
- $(MAKE) -f Makefile.$$i uninstall; \
- done
-
-ocamldoc: stubs
- $(Verb) for i in $(TARGETS_TO_BUILD); do \
- $(MAKE) -f Makefile.$$i ocamldoc; \
- done
-
-.PHONY: all-backends clean-backends install-backends uninstall-backends ocamldoc
diff --git a/bindings/ocaml/backends/Makefile.common b/bindings/ocaml/backends/Makefile.common
deleted file mode 100644
index be65dd0f861..00000000000
--- a/bindings/ocaml/backends/Makefile.common
+++ /dev/null
@@ -1,65 +0,0 @@
-##===- bindings/ocaml/backends/Makefile.common -------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the slave makefile for backend-specific bindings. This makefile should
-# be included after defining TARGET. It will then substitute @TARGET@ for
-# the value of TARGET in various *.in files and build an OCaml library in
-# a regular way.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-LIBRARYNAME := llvm_$(TARGET)
-UsedComponents := $(TARGET)
-UsedOcamlInterfaces := llvm
-
-include $(LEVEL)/Makefile.config
-
-SOURCES := $(TARGET)_ocaml.c
-OcamlHeaders1 := $(PROJ_SRC_DIR)/llvm_$(TARGET).mli
-OcamlSources1 := $(PROJ_SRC_DIR)/llvm_$(TARGET).ml
-
-include ../Makefile.ocaml
-
-$(ObjDir)/llvm_$(TARGET).ml: $(PROJ_SRC_DIR)/llvm_backend.ml.in $(ObjDir)/.dir
- $(Verb) $(SED) -e 's/@TARGET@/$(TARGET)/' $< > $@
-
-$(ObjDir)/llvm_$(TARGET).mli: $(PROJ_SRC_DIR)/llvm_backend.mli.in $(ObjDir)/.dir
- $(Verb) $(SED) -e 's/@TARGET@/$(TARGET)/' $< > $@
-
-$(ObjDir)/$(TARGET)_ocaml.o: $(PROJ_SRC_DIR)/backend_ocaml.c $(ObjDir)/.dir
- $(Echo) "Compiling $*.c for $(BuildMode) build" $(PIC_FLAG)
- $(Verb) $(Compile.C) -DTARGET=$(TARGET) $< -o $@
-
-
-##===- OCamlFind Package --------------------------------------------------===##
-
-all-local:: copy-meta
-install-local:: install-meta
-uninstall-local:: uninstall-meta
-
-DestMETA := $(PROJ_libocamldir)/META.llvm_$(TARGET)
-
-# Easy way of generating META in the objdir
-copy-meta: $(OcamlDir)/META.llvm_$(TARGET)
-
-$(OcamlDir)/META.llvm_$(TARGET): META.llvm_backend.in
- $(Verb) $(SED) -e 's/@TARGET@/$(TARGET)/' \
- -e 's/@PACKAGE_VERSION@/$(LLVMVersion)/' $< > $@
-
-install-meta:: $(OcamlDir)/META.llvm_$(TARGET)
- $(Echo) "Install $(BuildMode) $(DestMETA)"
- $(Verb) $(MKDIR) $(PROJ_libocamldir)
- $(Verb) $(DataInstall) $< "$(DestMETA)"
-
-uninstall-meta::
- $(Echo) "Uninstalling $(DestMETA)"
- -$(Verb) $(RM) -f "$(DestMETA)"
-
-.PHONY: copy-meta install-meta uninstall-meta
diff --git a/bindings/ocaml/bitreader/Makefile b/bindings/ocaml/bitreader/Makefile
deleted file mode 100644
index dad4e1dacce..00000000000
--- a/bindings/ocaml/bitreader/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/bitreader/Makefile -------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_bitreader interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-LIBRARYNAME := llvm_bitreader
-UsedComponents := bitreader
-UsedOcamlInterfaces := llvm
-
-include ../Makefile.ocaml
diff --git a/bindings/ocaml/bitwriter/Makefile b/bindings/ocaml/bitwriter/Makefile
deleted file mode 100644
index 9f0b2c85a85..00000000000
--- a/bindings/ocaml/bitwriter/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/bitwriter/Makefile -------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_bitwriter interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-LIBRARYNAME := llvm_bitwriter
-UsedComponents := bitwriter
-UsedOcamlInterfaces := llvm
-
-include ../Makefile.ocaml
diff --git a/bindings/ocaml/executionengine/Makefile b/bindings/ocaml/executionengine/Makefile
deleted file mode 100644
index 8b5d28faa8b..00000000000
--- a/bindings/ocaml/executionengine/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-##===- bindings/ocaml/executionengine/Makefile -------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_executionengine interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-LIBRARYNAME := llvm_executionengine
-UsedComponents := executionengine mcjit native
-UsedOcamlInterfaces := llvm llvm_target
-FindlibPackages := ctypes
-
-include ../Makefile.ocaml
diff --git a/bindings/ocaml/irreader/Makefile b/bindings/ocaml/irreader/Makefile
deleted file mode 100644
index 7665999bb76..00000000000
--- a/bindings/ocaml/irreader/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/irreader/Makefile --------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_irreader interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-LIBRARYNAME := llvm_irreader
-UsedComponents := irreader
-UsedOcamlInterfaces := llvm
-
-include ../Makefile.ocaml
diff --git a/bindings/ocaml/linker/Makefile b/bindings/ocaml/linker/Makefile
deleted file mode 100644
index ca1c96c9634..00000000000
--- a/bindings/ocaml/linker/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/linker/Makefile ----------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_target interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-LIBRARYNAME := llvm_linker
-UsedComponents := linker
-UsedOcamlInterfaces := llvm
-
-include ../Makefile.ocaml
diff --git a/bindings/ocaml/llvm/Makefile b/bindings/ocaml/llvm/Makefile
deleted file mode 100644
index c0785a154d2..00000000000
--- a/bindings/ocaml/llvm/Makefile
+++ /dev/null
@@ -1,43 +0,0 @@
-##===- bindings/ocaml/llvm/Makefile ------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-LIBRARYNAME := llvm
-UsedComponents := core
-UsedOcamlLibs := llvm
-ExtraLibs := -lstdc++
-
-include ../Makefile.ocaml
-
-all-local:: copy-meta
-install-local:: install-meta
-uninstall-local:: uninstall-meta
-
-DestMETA := $(PROJ_libocamldir)/META.llvm
-
-# Easy way of generating META in the objdir
-copy-meta: $(OcamlDir)/META.llvm
-
-$(OcamlDir)/META.llvm: META.llvm
- $(Verb) $(CP) -f $< $@
-
-install-meta:: $(OcamlDir)/META.llvm
- $(Echo) "Install $(BuildMode) $(DestMETA)"
- $(Verb) $(MKDIR) $(PROJ_libocamldir)
- $(Verb) $(DataInstall) $< "$(DestMETA)"
-
-uninstall-meta::
- $(Echo) "Uninstalling $(DestMETA)"
- -$(Verb) $(RM) -f "$(DestMETA)"
-
-.PHONY: copy-meta install-meta uninstall-meta
diff --git a/bindings/ocaml/target/Makefile b/bindings/ocaml/target/Makefile
deleted file mode 100644
index 3c48cd8fc20..00000000000
--- a/bindings/ocaml/target/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/target/Makefile ----------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_target interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-LIBRARYNAME := llvm_target
-UsedComponents := target
-UsedOcamlInterfaces := llvm
-
-include ../Makefile.ocaml
diff --git a/bindings/ocaml/transforms/Makefile b/bindings/ocaml/transforms/Makefile
deleted file mode 100644
index 15bffb40689..00000000000
--- a/bindings/ocaml/transforms/Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-##===- bindings/ocaml/transforms/Makefile ------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../..
-DIRS = ipo passmgr_builder scalar_opts utils vectorize
-
-ocamldoc:
- $(Verb) for i in $(DIRS) ; do \
- $(MAKE) -C $$i ocamldoc; \
- done
-
-include $(LEVEL)/Makefile.common
diff --git a/bindings/ocaml/transforms/ipo/Makefile b/bindings/ocaml/transforms/ipo/Makefile
deleted file mode 100644
index f54bc4e39e4..00000000000
--- a/bindings/ocaml/transforms/ipo/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/transforms/ipo/Makefile --------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_ipo interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../../..
-LIBRARYNAME := llvm_ipo
-UsedComponents := ipo
-UsedOcamlInterfaces := llvm
-
-include ../../Makefile.ocaml
diff --git a/bindings/ocaml/transforms/passmgr_builder/Makefile b/bindings/ocaml/transforms/passmgr_builder/Makefile
deleted file mode 100644
index 54099dbb576..00000000000
--- a/bindings/ocaml/transforms/passmgr_builder/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/transforms/passmgr_builder/Makefile --*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_passmgr_builder interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../../..
-LIBRARYNAME := llvm_passmgr_builder
-UsedComponents := ipo
-UsedOcamlInterfaces := llvm
-
-include ../../Makefile.ocaml
diff --git a/bindings/ocaml/transforms/scalar_opts/Makefile b/bindings/ocaml/transforms/scalar_opts/Makefile
deleted file mode 100644
index 63d86a6e0be..00000000000
--- a/bindings/ocaml/transforms/scalar_opts/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/transforms/scalar_opts/Makefile ------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_scalar_opts interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../../..
-LIBRARYNAME := llvm_scalar_opts
-UsedComponents := scalaropts
-UsedOcamlInterfaces := llvm
-
-include ../../Makefile.ocaml
diff --git a/bindings/ocaml/transforms/utils/Makefile b/bindings/ocaml/transforms/utils/Makefile
deleted file mode 100644
index 76a6f0b8d13..00000000000
--- a/bindings/ocaml/transforms/utils/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/transforms/utils/Makefile ------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_vectorize interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../../..
-LIBRARYNAME := llvm_transform_utils
-UsedComponents := transformutils
-UsedOcamlInterfaces := llvm
-
-include ../../Makefile.ocaml
diff --git a/bindings/ocaml/transforms/vectorize/Makefile b/bindings/ocaml/transforms/vectorize/Makefile
deleted file mode 100644
index 64ac5c3d030..00000000000
--- a/bindings/ocaml/transforms/vectorize/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-##===- bindings/ocaml/transforms/vectorize/Makefile --------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-#
-# This is the makefile for the Objective Caml Llvm_vectorize interface.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL := ../../../..
-LIBRARYNAME := llvm_vectorize
-UsedComponents := vectorize
-UsedOcamlInterfaces := llvm
-
-include ../../Makefile.ocaml