1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/runtime/Makefile.libs

37 lines
1.2 KiB
Makefile
Raw Normal View History

# test/Libraries/Makefile.libs
#
# This makefile should be used by subdirectories, which are libraries that are
# to be compiled to llvm bytecode and linked together with a specified name.
#
# Variables to be defined before including this makefile:
#
# 1. LEVEL - Must be set as per normal semantics: The depth from the top of tree
# 2. LIBNAME - Name of library to link together. Forms lib<LIBNAME>.bc
#
DESTLIBDIR := $(LEVEL)/test/Libraries/Output
DESTLIBNAME := $(LEVEL)/test/Libraries/Output/lib$(LIBNAME).bc
all:: $(DESTLIBNAME)
include $(LEVEL)/test/Makefile.tests
# Figure out what object files we want to build...
LObjs := $(sort $(addsuffix .bc, $(basename $(Source))))
LObjects := $(addprefix Output/,$(LObjs))
.PRECIOUS: $(LObjects)
# Link the library, then perform postlink optimization...
$(DESTLIBNAME): $(DESTLIBDIR)/.dir $(LObjects)
$(LLINK) -f $(LObjects) $(LDFLAGS) | \
2002-07-30 02:53:26 +02:00
$(LOPT) -f -deadtypeelim -raise -constprop -dce -o $@
# Install target for libraries: Copy into the gcc install directory in chris's
# tree...
#
2002-11-08 22:29:22 +01:00
INSTALL_DIR := /home/vadve/lattner/cvs/gcc_install_x86/llvm/lib/
install:: $(DESTLIBNAME)
2002-07-30 02:53:26 +02:00
cp $(DESTLIBNAME) $(INSTALL_DIR)