[llvm-commits] CVS: reopt/lib/WholeReoptimizer/Makefile
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Oct 4 13:15:32 PDT 2004
Changes in directory reopt/lib/WholeReoptimizer:
Makefile added (r1.1)
---
Log message:
Add new makefile used to build the whole reoptimizer into a single archive.
---
Diffs of the changes: (+55 -0)
Index: reopt/lib/WholeReoptimizer/Makefile
diff -c /dev/null reopt/lib/WholeReoptimizer/Makefile:1.1
*** /dev/null Mon Oct 4 15:15:31 2004
--- reopt/lib/WholeReoptimizer/Makefile Mon Oct 4 15:15:20 2004
***************
*** 0 ****
--- 1,55 ----
+ LEVEL = ../..
+
+ include $(LEVEL)/Makefile.common
+
+ REOPTLIBDIR = $(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION)
+
+ REOPTIMIZER_OBJS = $(REOPTLIBDIR)/firstTrigger.o \
+ $(REOPTLIBDIR)/tracecache.o $(REOPTLIBDIR)/mapinfo.o \
+ $(REOPTLIBDIR)/scratchmemory.o $(REOPTLIBDIR)/tracetofunction.o \
+ $(REOPTLIBDIR)/tracejit.o $(REOPTLIBDIR)/traceio.o
+
+ # Object files that contain common LLVM code the Reoptimizer depends on
+ REOPTIMIZER_LLVMOBJS = $(LLVMLIBCURRENTSOURCE)/vmcore.o \
+ $(LLVMLIBCURRENTSOURCE)/bcreader.o $(LLVMLIBCURRENTSOURCE)/bcwriter.o \
+ $(LLVMLIBCURRENTSOURCE)/sparcv9.o \
+ $(LLVMLIBCURRENTSOURCE)/sparcv9livevar.o \
+ $(LLVMLIBCURRENTSOURCE)/sched.o $(LLVMLIBCURRENTSOURCE)/codegen.o \
+ $(LLVMLIBCURRENTSOURCE)/executionengine.o \
+ $(LLVMLIBCURRENTSOURCE)/lli-jit.o \
+ $(LLVMLIBCURRENTSOURCE)/lli-interpreter.o
+
+ # Library archive files that contain common LLVM code the Reoptimizer depends on
+ REOPTIMIZER_LLVMLIBS = $(LLVMLIBCURRENTSOURCE)/libsparcv9regalloc.a \
+ $(LLVMLIBCURRENTSOURCE)/libtarget.a \
+ $(LLVMLIBCURRENTSOURCE)/libscalaropts.a \
+ $(LLVMLIBCURRENTSOURCE)/libtransformutils.a \
+ $(LLVMLIBCURRENTSOURCE)/libanalysis.a \
+ $(LLVMLIBCURRENTSOURCE)/libsupport.a \
+ $(LLVMLIBCURRENTSOURCE)/libLLVMsystem.a
+
+ WHOLE_REOPTIMIZER_LIB = $(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION)/libwholereoptimizer.a
+
+ all:: $(WHOLE_REOPTIMIZER_LIB)
+
+ $(WHOLE_REOPTIMIZER_LIB): $(REOPTIMIZER_OBJS) $(REOPTIMIZER_LLVMOBJS) $(REOPTIMIZER_LLVMLIBS)
+ $(VERB) rm -f $@
+ @echo "Building $(WHOLE_REOPTIMIZER_LIB)"
+ @echo "Adding reoptimizer .o files to libwholereoptimizer.a"
+ $(VERB) ar rc $@ $(REOPTIMIZER_OBJS) $(REOPTIMIZER_LLVMOBJS)
+ $(VERB) @for lib in $(REOPTIMIZER_LLVMLIBS); \
+ do \
+ echo "Adding files from $${lib} to libwholereoptimizer.a"; \
+ d=`basename $${lib}`x; \
+ mkdir $${d}; \
+ cd $${d}; \
+ ar x $$lib; \
+ ar q $@ *; \
+ cd ..; \
+ rm -rf $${d}; \
+ done
+ @echo "==== Done building libwholereoptimizer.a ===="
+
+ clean::
+ $(VERB) rm -f $(WHOLE_REOPTIMIZER_LIB)
+
More information about the llvm-commits
mailing list