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 14LEVEL := ../../.. 15LIBRARYNAME := llvm 16UsedComponents := core 17UsedOcamLibs := llvm 18 19include ../Makefile.ocaml 20 21all-local:: copy-meta 22install-local:: install-meta 23uninstall-local:: uninstall-meta 24 25DestMETA := $(PROJ_libocamldir)/META.llvm 26 27# Easy way of generating META in the objdir 28copy-meta: $(OcamlDir)/META.llvm 29 30$(OcamlDir)/META.llvm: META.llvm 31 $(Verb) $(CP) -f $< $@ 32 33install-meta:: $(ObjDir)/META.llvm 34 $(Echo) "Install $(BuildMode) $(DestMETA)" 35 $(Verb) $(MKDIR) $(PROJ_libocamldir) 36 $(Verb) $(DataInstall) META.llvm "$(DestMETA)" 37 38uninstall-meta:: 39 $(Echo) "Uninstalling $(DestMETA)" 40 -$(Verb) $(RM) -f "$(DestMETA)" 41