2007-09-18 12:26:17 +00:00
|
|
|
##===- tools/ml/Makefile -----------------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
2007-12-29 20:11:13 +00:00
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
2007-09-18 12:26:17 +00:00
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
#
|
|
|
|
# An ocaml library is a unique project type in the context of LLVM, so rules are
|
|
|
|
# here rather than in Makefile.rules.
|
|
|
|
#
|
2007-10-06 21:00:36 +00:00
|
|
|
# Reference materials on installing ocaml libraries:
|
|
|
|
#
|
|
|
|
# https://fedoraproject.org/wiki/Packaging/OCaml
|
|
|
|
# http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.txt
|
|
|
|
#
|
2007-09-18 12:26:17 +00:00
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.config
|
|
|
|
|
2007-10-04 00:07:50 +00:00
|
|
|
# CFLAGS needs to be set before Makefile.rules is included.
|
2008-01-06 21:54:35 +00:00
|
|
|
CXX.Flags += -I"$(shell $(OCAMLC) -where)"
|
|
|
|
C.Flags += -I"$(shell $(OCAMLC) -where)"
|
2007-09-18 12:26:17 +00:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
|
|
|
# Intentionally ignore PROJ_prefix here. We want the ocaml stdlib. However, the
|
2007-10-02 16:42:10 +00:00
|
|
|
# user can override this with OCAML_LIBDIR or configure --with-ocaml-libdir=.
|
2007-09-18 12:26:17 +00:00
|
|
|
PROJ_libocamldir := $(DESTDIR)$(OCAML_LIBDIR)
|
|
|
|
OcamlDir := $(LibDir)/ocaml
|
|
|
|
|
|
|
|
# Info from llvm-config and similar
|
|
|
|
ifdef UsedComponents
|
|
|
|
UsedLibs = $(shell $(LLVM_CONFIG) --libs $(UsedComponents))
|
|
|
|
UsedLibNames = $(shell $(LLVM_CONFIG) --libnames $(UsedComponents))
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Tools
|
2009-03-06 00:00:58 +00:00
|
|
|
OCAMLCFLAGS += -I $(ObjDir) -I $(OcamlDir)
|
2008-03-10 16:15:32 +00:00
|
|
|
ifneq ($(ObjectsO),)
|
2007-09-18 12:26:17 +00:00
|
|
|
OCAMLAFLAGS += $(patsubst %,-cclib %, \
|
2007-10-12 19:48:13 +00:00
|
|
|
$(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
|
|
|
|
$(shell $(LLVM_CONFIG) --ldflags)) \
|
|
|
|
$(UsedLibs))
|
2008-03-10 16:15:32 +00:00
|
|
|
else
|
|
|
|
OCAMLAFLAGS += $(patsubst %,-cclib %, \
|
|
|
|
$(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
|
|
|
|
$(UsedLibs))
|
|
|
|
endif
|
2007-12-23 16:59:28 +00:00
|
|
|
|
2007-12-25 08:37:43 +00:00
|
|
|
# -g was introduced in 3.10.0.
|
|
|
|
#ifneq ($(ENABLE_OPTIMIZED),1)
|
|
|
|
# OCAMLDEBUGFLAG := -g
|
|
|
|
#endif
|
2007-09-18 12:26:17 +00:00
|
|
|
|
2007-12-23 16:59:28 +00:00
|
|
|
Compile.CMI := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
|
|
|
|
Compile.CMO := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
|
|
|
|
Archive.CMA := $(strip $(OCAMLC) -a -custom $(OCAMLAFLAGS) $(OCAMLDEBUGFLAG) \
|
|
|
|
-o)
|
2007-09-18 12:26:17 +00:00
|
|
|
|
2007-12-23 16:59:28 +00:00
|
|
|
Compile.CMX := $(strip $(OCAMLOPT) -c $(OCAMLCFLAGS) $(OCAMLDEBUGFLAG) -o)
|
|
|
|
Archive.CMXA := $(strip $(OCAMLOPT) -a $(OCAMLAFLAGS) $(OCAMLDEBUGFLAG) -o)
|
2007-09-18 12:26:17 +00:00
|
|
|
|
|
|
|
# Source files
|
2007-09-20 16:47:41 +00:00
|
|
|
OcamlSources1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.ml))
|
|
|
|
OcamlHeaders1 := $(OcamlSources1:.ml=.mli)
|
|
|
|
|
|
|
|
OcamlSources := $(OcamlSources1:$(PROJ_SRC_DIR)/%=$(ObjDir)/%)
|
|
|
|
OcamlHeaders := $(OcamlHeaders1:$(PROJ_SRC_DIR)/%=$(ObjDir)/%)
|
|
|
|
|
|
|
|
# Intermediate files
|
|
|
|
LibraryCMA := $(ObjDir)/$(LIBRARYNAME).cma
|
|
|
|
LibraryCMXA := $(ObjDir)/$(LIBRARYNAME).cmxa
|
|
|
|
ObjectsCMI := $(OcamlSources:%.ml=%.cmi)
|
|
|
|
ObjectsCMO := $(OcamlSources:%.ml=%.cmo)
|
|
|
|
ObjectsCMX := $(OcamlSources:%.ml=%.cmx)
|
|
|
|
|
|
|
|
# Output files
|
|
|
|
# The .cmo files are the only intermediates; all others are to be installed.
|
|
|
|
LibraryA := $(OcamlDir)/lib$(LIBRARYNAME).a
|
|
|
|
OutputCMA := $(LibraryCMA:$(ObjDir)/%.cma=$(OcamlDir)/%.cma)
|
|
|
|
OutputCMXA := $(LibraryCMXA:$(ObjDir)/%.cmxa=$(OcamlDir)/%.cmxa)
|
|
|
|
OutputsCMI := $(ObjectsCMI:$(ObjDir)/%.cmi=$(OcamlDir)/%.cmi)
|
|
|
|
OutputsCMX := $(ObjectsCMX:$(ObjDir)/%.cmx=$(OcamlDir)/%.cmx)
|
2007-12-03 21:15:53 +00:00
|
|
|
OutputLibs := $(UsedLibNames:%=$(OcamlDir)/%)
|
2007-09-18 12:26:17 +00:00
|
|
|
|
|
|
|
# Installation targets
|
|
|
|
DestA := $(PROJ_libocamldir)/lib$(LIBRARYNAME).a
|
|
|
|
DestCMA := $(PROJ_libocamldir)/$(LIBRARYNAME).cma
|
|
|
|
DestCMXA := $(PROJ_libocamldir)/$(LIBRARYNAME).cmxa
|
2007-12-03 21:15:53 +00:00
|
|
|
DestLibs := $(UsedLibNames:%=$(PROJ_libocamldir)/%)
|
2007-09-18 12:26:17 +00:00
|
|
|
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
##===- 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 $< $@
|
|
|
|
|
2007-09-23 13:37:44 +00:00
|
|
|
$(ObjDir)/$(LIBRARYNAME).ocamldep: $(OcamlSources) $(OcamlHeaders) \
|
|
|
|
$(OcamlDir)/.dir $(ObjDir)/.dir
|
2008-03-04 14:52:05 +00:00
|
|
|
$(Verb) $(OCAMLDEP) $(OCAMLCFLAGS) $(OcamlSources) $(OcamlHeaders) > $@
|
2007-09-20 16:47:41 +00:00
|
|
|
|
2007-09-26 20:56:12 +00:00
|
|
|
$(ObjectsCMI): $(UsedOcamlInterfaces:%=$(OcamlDir)/%.cmi)
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
-include $(ObjDir)/$(LIBRARYNAME).ocamldep
|
|
|
|
|
|
|
|
|
2007-09-18 12:26:17 +00:00
|
|
|
##===- Build static library from C sources --------------------------------===##
|
|
|
|
|
2008-03-10 16:15:32 +00:00
|
|
|
ifneq ($(ObjectsO),)
|
2007-09-18 12:26:17 +00:00
|
|
|
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)
|
2009-02-26 07:44:16 +00:00
|
|
|
$(Verb) $(INSTALL) $(LibraryA) $(DestA)
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Verb)
|
|
|
|
|
|
|
|
uninstall-a::
|
|
|
|
$(Echo) "Uninstalling $(DestA)"
|
|
|
|
-$(Verb) $(RM) -f $(DestA)
|
2008-03-10 16:15:32 +00:00
|
|
|
endif
|
2007-09-18 12:26:17 +00:00
|
|
|
|
|
|
|
|
2007-12-03 21:15:53 +00:00
|
|
|
##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===##
|
|
|
|
|
|
|
|
all-local:: build-deplibs
|
|
|
|
clean-local:: clean-deplibs
|
|
|
|
install-local:: install-deplibs
|
|
|
|
uninstall-local:: uninstall-deplibs
|
|
|
|
|
|
|
|
build-deplibs: $(OutputLibs)
|
|
|
|
|
|
|
|
$(OcamlDir)/%.a: $(LibDir)/%.a
|
|
|
|
$(Verb) ln -sf $< $@
|
|
|
|
|
2007-12-23 16:59:28 +00:00
|
|
|
$(OcamlDir)/%.o: $(LibDir)/%.o
|
|
|
|
$(Verb) ln -sf $< $@
|
|
|
|
|
2007-12-03 21:15:53 +00:00
|
|
|
clean-deplibs:
|
|
|
|
$(Verb) rm -f $(OutputLibs)
|
|
|
|
|
|
|
|
install-deplibs:
|
|
|
|
$(Verb) for i in $(DestLibs:$(PROJ_libocamldir)/%=%); do \
|
|
|
|
ln -sf "$(PROJ_libdir)/$$i" "$(PROJ_libocamldir)/$$i"; \
|
|
|
|
done
|
|
|
|
|
|
|
|
uninstall-deplibs:
|
|
|
|
$(Verb) rm -f $(DestLibs)
|
|
|
|
|
|
|
|
|
2007-09-18 12:26:17 +00:00
|
|
|
##===- Build ocaml interfaces (.mli's -> .cmi's) --------------------------===##
|
|
|
|
|
|
|
|
all-local:: build-cmis
|
|
|
|
clean-local:: clean-cmis
|
|
|
|
install-local:: install-cmis
|
|
|
|
uninstall-local:: uninstall-cmis
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
build-cmis: $(OutputsCMI)
|
|
|
|
|
|
|
|
$(OcamlDir)/%.cmi: $(ObjDir)/%.cmi $(OcamlDir)/.dir
|
|
|
|
$(Verb) $(CP) -f $< $@
|
2007-09-18 12:26:17 +00:00
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
$(ObjDir)/%.cmi: $(ObjDir)/%.mli $(ObjDir)/.dir
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Echo) "Compiling $(notdir $<) for $(BuildMode) build"
|
|
|
|
$(Verb) $(Compile.CMI) $@ $<
|
|
|
|
|
|
|
|
clean-cmis::
|
2007-09-20 16:47:41 +00:00
|
|
|
-$(Verb) $(RM) -f $(OutputsCMI)
|
2007-09-18 12:26:17 +00:00
|
|
|
|
|
|
|
# Also install the .mli's (headers) as documentation.
|
2007-09-20 16:47:41 +00:00
|
|
|
install-cmis: $(OutputsCMI) $(OcamlHeaders)
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Verb) $(MKDIR) $(PROJ_libocamldir)
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Verb) for i in $(OutputsCMI:$(OcamlDir)/%=%); do \
|
2007-09-18 12:26:17 +00:00
|
|
|
$(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
|
|
|
|
$(DataInstall) $(OcamlDir)/$$i "$(PROJ_libocamldir)/$$i"; \
|
|
|
|
done
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
|
2007-09-18 12:26:17 +00:00
|
|
|
$(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
|
2007-09-20 16:47:41 +00:00
|
|
|
$(DataInstall) $(ObjDir)/$$i "$(PROJ_libocamldir)/$$i"; \
|
2007-09-18 12:26:17 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
uninstall-cmis::
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Verb) for i in $(OutputsCMI:$(OcamlDir)/%=%); do \
|
2007-09-18 12:26:17 +00:00
|
|
|
$(EchoCmd) "Uninstalling $(PROJ_libocamldir)/$$i"; \
|
|
|
|
$(RM) -f "$(PROJ_libocamldir)/$$i"; \
|
|
|
|
done
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
|
2007-09-18 12:26:17 +00:00
|
|
|
$(EchoCmd) "Uninstalling $(PROJ_libocamldir)/$$i"; \
|
|
|
|
$(RM) -f "$(PROJ_libocamldir)/$$i"; \
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
##===- Build ocaml bytecode archive (.ml's -> .cmo's -> .cma) -------------===##
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
all-local:: $(OutputCMA)
|
2007-09-18 12:26:17 +00:00
|
|
|
clean-local:: clean-cma
|
|
|
|
install-local:: install-cma
|
|
|
|
uninstall-local:: uninstall-cma
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
$(OutputCMA): $(LibraryCMA) $(OcamlDir)/.dir
|
|
|
|
$(Verb) $(CP) -f $< $@
|
|
|
|
|
2007-09-18 12:26:17 +00:00
|
|
|
$(LibraryCMA): $(ObjectsCMO) $(OcamlDir)/.dir
|
|
|
|
$(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
|
|
|
|
$(Verb) $(Archive.CMA) $@ $(ObjectsCMO)
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
$(ObjDir)/%.cmo: $(ObjDir)/%.ml
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Echo) "Compiling $(notdir $<) for $(BuildMode) build"
|
|
|
|
$(Verb) $(Compile.CMO) $@ $<
|
|
|
|
|
|
|
|
clean-cma::
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Verb) $(RM) -f $(OutputCMA) $(UsedLibNames:%=$(OcamlDir)/%)
|
2007-09-18 12:26:17 +00:00
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
install-cma:: $(OutputCMA)
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Echo) "Installing $(BuildMode) $(DestCMA)"
|
|
|
|
$(Verb) $(MKDIR) $(PROJ_libocamldir)
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Verb) $(DataInstall) $(OutputCMA) "$(DestCMA)"
|
2007-09-18 12:26:17 +00:00
|
|
|
|
|
|
|
uninstall-cma::
|
|
|
|
$(Echo) "Uninstalling $(DestCMA)"
|
|
|
|
-$(Verb) $(RM) -f $(DestCMA)
|
|
|
|
|
|
|
|
|
|
|
|
##===- 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 not define OCAMLOPT in Makefile.config.
|
|
|
|
ifdef OCAMLOPT
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
all-local:: $(OutputCMXA) $(OutputsCMX)
|
2007-09-18 12:26:17 +00:00
|
|
|
clean-local:: clean-cmxa
|
|
|
|
install-local:: install-cmxa
|
|
|
|
uninstall-local:: uninstall-cmxa
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
$(OutputCMXA): $(LibraryCMXA)
|
|
|
|
$(Verb) $(CP) -f $< $@
|
|
|
|
$(Verb) $(CP) -f $(<:.cmxa=.a) $(@:.cmxa=.a)
|
|
|
|
|
|
|
|
$(OcamlDir)/%.cmx: $(ObjDir)/%.cmx
|
|
|
|
$(Verb) $(CP) -f $< $@
|
|
|
|
|
2007-09-18 12:26:17 +00:00
|
|
|
$(LibraryCMXA): $(ObjectsCMX)
|
|
|
|
$(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
|
|
|
|
$(Verb) $(Archive.CMXA) $@ $(ObjectsCMX)
|
|
|
|
$(Verb) $(RM) -f $(@:.cmxa=.o)
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
$(ObjDir)/%.cmx: $(ObjDir)/%.ml
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Echo) "Compiling optimized $(notdir $<) for $(BuildMode) build"
|
|
|
|
$(Verb) $(Compile.CMX) $@ $<
|
|
|
|
|
|
|
|
clean-cmxa::
|
2008-03-07 18:43:51 +00:00
|
|
|
$(Verb) $(RM) -f $(OutputCMXA) $(OutputCMXA:.cmxa=.a) $(OutputsCMX)
|
2007-09-18 12:26:17 +00:00
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
install-cmxa:: $(OutputCMXA) $(OutputsCMX)
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Verb) $(MKDIR) $(PROJ_libocamldir)
|
|
|
|
$(Echo) "Installing $(BuildMode) $(DestCMXA)"
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Verb) $(DataInstall) $(OutputCMXA) $(DestCMXA)
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Echo) "Installing $(BuildMode) $(DestCMXA:.cmxa=.a)"
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Verb) $(DataInstall) $(OutputCMXA:.cmxa=.a) $(DestCMXA:.cmxa=.a)
|
|
|
|
$(Verb) for i in $(OutputsCMX:$(OcamlDir)/%=%); do \
|
2007-09-18 12:26:17 +00:00
|
|
|
$(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
|
|
|
|
$(DataInstall) $(OcamlDir)/$$i "$(PROJ_libocamldir)/$$i"; \
|
|
|
|
done
|
|
|
|
|
2007-09-20 16:47:41 +00:00
|
|
|
uninstall-cmxa::
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Echo) "Uninstalling $(DestCMXA)"
|
|
|
|
$(Verb) $(RM) -f $(DestCMXA)
|
|
|
|
$(Echo) "Uninstalling $(DestCMXA:.cmxa=.a)"
|
|
|
|
$(Verb) $(RM) -f $(DestCMXA:.cmxa=.a)
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Verb) for i in $(OutputsCMX:$(OcamlDir)/%=%); do \
|
2007-09-18 12:26:17 +00:00
|
|
|
$(EchoCmd) "Uninstalling $(PROJ_libocamldir)/$$i"; \
|
|
|
|
$(RM) -f $(PROJ_libocamldir)/$$i; \
|
|
|
|
done
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2008-03-10 15:49:16 +00:00
|
|
|
##===- Generate documentation ---------------------------------------------===##
|
|
|
|
|
|
|
|
$(ObjDir)/$(LIBRARYNAME).odoc: $(ObjectsCMI)
|
|
|
|
$(Echo) "Documenting $(notdir $@)"
|
2009-03-06 00:00:58 +00:00
|
|
|
$(Verb) $(OCAMLDOC) -I $(ObjDir) -I $(OcamlDir) -dump $@ $(OcamlHeaders)
|
2008-03-10 15:49:16 +00:00
|
|
|
|
|
|
|
ocamldoc: $(ObjDir)/$(LIBRARYNAME).odoc
|
2007-09-18 12:26:17 +00:00
|
|
|
|
|
|
|
##===- Debugging gunk -----------------------------------------------------===##
|
|
|
|
printvars:: printcamlvars
|
|
|
|
|
|
|
|
printcamlvars::
|
|
|
|
$(Echo) "LLVM_CONFIG : " '$(LLVM_CONFIG)'
|
|
|
|
$(Echo) "OCAMLCFLAGS : " '$(OCAMLCFLAGS)'
|
|
|
|
$(Echo) "OCAMLAFLAGS : " '$(OCAMLAFLAGS)'
|
|
|
|
$(Echo) "OCAMLC : " '$(OCAMLC)'
|
|
|
|
$(Echo) "OCAMLOPT : " '$(OCAMLOPT)'
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Echo) "OCAMLDEP : " '$(OCAMLDEP)'
|
2007-09-18 12:26:17 +00:00
|
|
|
$(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) "LibraryCMA : " '$(LibraryCMA)'
|
|
|
|
$(Echo) "LibraryCMXA : " '$(LibraryCMXA)'
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Echo) "OcamlSources1: " '$(OcamlSources1)'
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Echo) "OcamlSources : " '$(OcamlSources)'
|
2007-09-20 16:47:41 +00:00
|
|
|
$(Echo) "OcamlHeaders : " '$(OcamlHeaders)'
|
2007-09-18 12:26:17 +00:00
|
|
|
$(Echo) "ObjectsCMI : " '$(ObjectsCMI)'
|
|
|
|
$(Echo) "ObjectsCMO : " '$(ObjectsCMO)'
|
|
|
|
$(Echo) "ObjectsCMX : " '$(ObjectsCMX)'
|
|
|
|
$(Echo) "OCAML_LIBDIR : " '$(OCAML_LIBDIR)'
|
|
|
|
$(Echo) "DestA : " '$(DestA)'
|
|
|
|
$(Echo) "DestCMA : " '$(DestCMA)'
|
|
|
|
$(Echo) "DestCMXA : " '$(DestCMXA)'
|
|
|
|
$(Echo) "UsedLibs : " '$(UsedLibs)'
|
|
|
|
$(Echo) "UsedLibNames : " '$(UsedLibNames)'
|
|
|
|
|
|
|
|
.PHONY: printcamlvars build-cmis \
|
|
|
|
clean-a clean-cmis clean-cma clean-cmxa \
|
|
|
|
install-a install-cmis install-cma install-cmxa \
|
|
|
|
uninstall-a uninstall-cmis uninstall-cma uninstall-cmxa
|