[OCaml] Expose Llvm.parse_command_line_options.
[oota-llvm.git] / bindings / ocaml / llvm / Makefile
index 673eaa2e35a93c46cd6817a7baabbe9d9785079f..c0785a154d2220ad1a2a30fc27fe4c28869e2fad 100644 (file)
@@ -1,20 +1,21 @@
 ##===- 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
-UsedOcamLibs := llvm
+UsedOcamlLibs := llvm
+ExtraLibs := -lstdc++
 
 include ../Makefile.ocaml
 
@@ -30,11 +31,13 @@ copy-meta: $(OcamlDir)/META.llvm
 $(OcamlDir)/META.llvm: META.llvm
        $(Verb) $(CP) -f $< $@
 
-install-meta:: $(ObjDir)/META.llvm
+install-meta:: $(OcamlDir)/META.llvm
        $(Echo) "Install $(BuildMode) $(DestMETA)"
        $(Verb) $(MKDIR) $(PROJ_libocamldir)
-       $(Verb) $(DataInstall) META.llvm "$(DestMETA)"
+       $(Verb) $(DataInstall) $< "$(DestMETA)"
 
 uninstall-meta::
        $(Echo) "Uninstalling $(DestMETA)"
        -$(Verb) $(RM) -f "$(DestMETA)"
+
+.PHONY: copy-meta install-meta uninstall-meta