2009-08-30 23:41:20 +00:00
|
|
|
##===- bindings/ocaml/llvm/Makefile ------------------------*- Makefile -*-===##
|
2007-09-18 12:49:39 +00:00
|
|
|
#
|
|
|
|
# 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:49:39 +00:00
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
#
|
2007-10-06 21:00:36 +00:00
|
|
|
# This is the makefile for the Objective Caml Llvm interface.
|
2007-09-18 12:49:39 +00:00
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
LEVEL := ../../..
|
|
|
|
LIBRARYNAME := llvm
|
|
|
|
UsedComponents := core
|
|
|
|
UsedOcamLibs := llvm
|
|
|
|
|
|
|
|
include ../Makefile.ocaml
|
2011-10-14 20:38:02 +00:00
|
|
|
|
|
|
|
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 $< $@
|
|
|
|
|
2011-11-09 12:00:39 +00:00
|
|
|
install-meta:: $(OcamlDir)/META.llvm
|
2011-10-14 20:38:02 +00:00
|
|
|
$(Echo) "Install $(BuildMode) $(DestMETA)"
|
|
|
|
$(Verb) $(MKDIR) $(PROJ_libocamldir)
|
2011-11-09 12:00:39 +00:00
|
|
|
$(Verb) $(DataInstall) $< "$(DestMETA)"
|
2011-10-14 20:38:02 +00:00
|
|
|
|
|
|
|
uninstall-meta::
|
|
|
|
$(Echo) "Uninstalling $(DestMETA)"
|
|
|
|
-$(Verb) $(RM) -f "$(DestMETA)"
|
2011-11-09 12:00:39 +00:00
|
|
|
|
|
|
|
.PHONY: copy-meta install-meta uninstall-meta
|