X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=bindings%2Focaml%2Fllvm%2FMakefile;h=fb682c731b4ca515c923fac925832ad897c33e5e;hp=cbfb75ca157d5daaca88e04400366be42c154a7c;hb=10fa04ca7d929c383a44e2aa2035d7893890f41e;hpb=8ef426baa36639458f6777309db25c1768dc9c8a diff --git a/bindings/ocaml/llvm/Makefile b/bindings/ocaml/llvm/Makefile index cbfb75ca157..fb682c731b4 100644 --- a/bindings/ocaml/llvm/Makefile +++ b/bindings/ocaml/llvm/Makefile @@ -1,24 +1,43 @@ -##===- bindings/ocaml/bitwriter/Makefile -------------------*- Makefile -*-===## -# +##===- bindings/ocaml/llvm/Makefile ------------------------*- Makefile -*-===## +# # The LLVM Compiler Infrastructure # -# This file was developed by the LLVM research group and is distributed under -# the University of Illinois Open Source License. See LICENSE.TXT for details. -# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# ##===----------------------------------------------------------------------===## -# -# This is the makefile for the llvm-ml interface. Reference materials on -# installing ocaml libraries: -# -# https://fedoraproject.org/wiki/Packaging/OCaml -# http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.txt -# +# +# This is the makefile for the Objective Caml Llvm interface. +# ##===----------------------------------------------------------------------===## LEVEL := ../../.. LIBRARYNAME := llvm -DONT_BUILD_RELINKED := 1 -UsedComponents := core -UsedOcamLibs := llvm +UsedComponents := core transformutils +UsedOcamlLibs := llvm +ExtraLibs := -lstdc++ include ../Makefile.ocaml + +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 $< $@ + +install-meta:: $(OcamlDir)/META.llvm + $(Echo) "Install $(BuildMode) $(DestMETA)" + $(Verb) $(MKDIR) $(PROJ_libocamldir) + $(Verb) $(DataInstall) $< "$(DestMETA)" + +uninstall-meta:: + $(Echo) "Uninstalling $(DestMETA)" + -$(Verb) $(RM) -f "$(DestMETA)" + +.PHONY: copy-meta install-meta uninstall-meta