summaryrefslogtreecommitdiff
path: root/test/Makefile.tests
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-05-19 15:47:52 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-05-19 15:47:52 +0000
commit2a4d8d2461f2ead5da8440c438a79b3fb93bff00 (patch)
tree68bd57fde78e655c1a2bea57dbb8668ad9f87992 /test/Makefile.tests
parentbcfa423e3d1a2a385b56e3ec0f03137f0c33efc7 (diff)
downloadllvm-2a4d8d2461f2ead5da8440c438a79b3fb93bff00.tar.gz
llvm-2a4d8d2461f2ead5da8440c438a79b3fb93bff00.tar.bz2
llvm-2a4d8d2461f2ead5da8440c438a79b3fb93bff00.tar.xz
Fix libs and includes for compiling with llc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile.tests')
-rw-r--r--test/Makefile.tests25
1 files changed, 13 insertions, 12 deletions
diff --git a/test/Makefile.tests b/test/Makefile.tests
index a370765e8c..bf2b85a600 100644
--- a/test/Makefile.tests
+++ b/test/Makefile.tests
@@ -27,7 +27,7 @@ LLI = $(TOOLS)/lli
LLC = $(TOOLS)/llc
LAS = $(TOOLS)/as
LGCCAS = $(TOOLS)/gccas
-LGCCLD = $(TOOLS)/gccld -L/home/vadve/lattner/cvs/gcc_install/lib/gcc-lib/llvm/3.1/
+LGCCLD = $(TOOLS)/gccld -L/home/vadve/lattner/cvs/gcc_install/lib/gcc-lib/llvm/3.1/ -L/home/vadve/vadve/Research/DynOpt/LLVM/llvm/test/Libraries/Output
LDIS = $(TOOLS)/dis
LOPT = $(TOOLS)/opt
LLINK = $(TOOLS)/link
@@ -45,24 +45,25 @@ DIS = /usr/ccs/bin/dis
CP = /bin/cp -f
CFLAGS += -g -xarch=v9
-#LLCLIB = $(LEVEL)/test/Libraries/runtime.o
-#LIBS += $(LLCLIB)
-
-
ifeq ($(TRACE), yes)
- LLCFLAGS += -trace
-endif
-ifeq ($(TRACEM), yes)
- LLCFLAGS += -tracem
+ LLCFLAGS += -trace basicblock
+ LLCLIBS := -L$(LEVEL)/test/Libraries/Output -linstr64
+else
+ ifeq ($(TRACEM), yes)
+ LLCFLAGS += -trace function
+ LLCLIBS := -L$(LEVEL)/test/Libraries/Output -linstr64
+ endif
endif
+LLCLIBS := $(LLCLIBS) -lm
+
clean ::
$(RM) a.out core
$(RM) -rf Output/
# Compile from X.c to Output/X.ll
-Output/%.ll: %.c $(LCC1) Output/.dir
+Output/%.ll: %.c $(LCC1) Output/.dir $(INCLUDES)
$(LCC) $(LCCFLAGS) -S $< -o $@
# LLVM Assemble from Output/X.ll to Output/X.bc. Output/X.ll must have come
@@ -85,12 +86,12 @@ Output/%.llc.s: Output/%.llvm.bc
# Assemble (and link) an LLVM-linked program using the system assembler...
#
Output/%.llc: Output/%.llc.s
- $(CC) $(CFLAGS) $< $(LIBS) -o $@
+ $(CC) $(CFLAGS) $< $(LLCLIBS) -o $@
#
# Testing versions of provided utilities...
#
-Output/%.tll: %.c $(LCC1) Output/.dir
+Output/%.tll: %.c $(LCC1) Output/.dir $(INCLUDES)
@echo "======== Compiling $<"
$(LCC) $(LCCFLAGS) -S $< -o $@ || \
( rm -f $@; $(FAILURE) $@ )