[OCaml] Expose Llvm_executionengine.get_{global_value,function}_address.
[oota-llvm.git] / bindings / ocaml / llvm / Makefile
1 ##===- bindings/ocaml/llvm/Makefile ------------------------*- Makefile -*-===##
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
9 #
10 # This is the makefile for the Objective Caml Llvm interface.
11 #
12 ##===----------------------------------------------------------------------===##
13
14 LEVEL := ../../..
15 LIBRARYNAME := llvm
16 UsedComponents := core
17 UsedOcamlLibs := llvm
18 ExtraLibs := -lstdc++
19
20 include ../Makefile.ocaml
21
22 all-local:: copy-meta
23 install-local:: install-meta
24 uninstall-local:: uninstall-meta
25
26 DestMETA := $(PROJ_libocamldir)/META.llvm
27
28 # Easy way of generating META in the objdir
29 copy-meta: $(OcamlDir)/META.llvm
30
31 $(OcamlDir)/META.llvm: META.llvm
32         $(Verb) $(CP) -f $< $@
33
34 install-meta:: $(OcamlDir)/META.llvm
35         $(Echo) "Install $(BuildMode) $(DestMETA)"
36         $(Verb) $(MKDIR) $(PROJ_libocamldir)
37         $(Verb) $(DataInstall) $< "$(DestMETA)"
38
39 uninstall-meta::
40         $(Echo) "Uninstalling $(DestMETA)"
41         -$(Verb) $(RM) -f "$(DestMETA)"
42
43 .PHONY: copy-meta install-meta uninstall-meta