mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
787a41926a
This way most code won't link this (substantially large) library, if compiled statically with LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223072 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
##===- 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
|
|
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
|