summaryrefslogtreecommitdiff
path: root/test/Makefile.tests
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-23 21:36:59 +0000
committerChris Lattner <sabre@nondot.org>2002-01-23 21:36:59 +0000
commit52a4e85a98fdb7e03f13cfc1eb9f2ef4326ec62a (patch)
tree53629c7117c91e47936f197bd7967e55698a5f05 /test/Makefile.tests
parentfa149909ab26047db312d7496c2f04f68d259949 (diff)
downloadllvm-52a4e85a98fdb7e03f13cfc1eb9f2ef4326ec62a.tar.gz
llvm-52a4e85a98fdb7e03f13cfc1eb9f2ef4326ec62a.tar.bz2
llvm-52a4e85a98fdb7e03f13cfc1eb9f2ef4326ec62a.tar.xz
More rules checked in
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile.tests')
-rw-r--r--test/Makefile.tests80
1 files changed, 44 insertions, 36 deletions
diff --git a/test/Makefile.tests b/test/Makefile.tests
index 3390d01b11..21c4b7cb43 100644
--- a/test/Makefile.tests
+++ b/test/Makefile.tests
@@ -10,26 +10,41 @@ include ${LEVEL}/Makefile.common
.PHONY: clean default
-## keep %.bc and %.s from being deleted while we're debugging
-.PRECIOUS: Output/%.bc Output/%.ll %.s Output/.dir
-
-
+# These files, which might be intermediate results, should not be deleted by
+# make
+.PRECIOUS: Output/%.bc Output/%.ll
+.PRECIOUS: Output/%.tbc Output/%.tll
+.PRECIOUS: Output/.dir
+
+# LLVM Tool Definitions...
+#
+LCC = /home/vadve/lattner/cvs/gcc_install/bin/gcc
TOOLS = $(LEVEL)/tools/Debug
-
LLI = $(TOOLS)/lli
LLC = $(TOOLS)/llc
-LAS = $(TOOLS)/gccas
+LAS = $(TOOLS)/as
+LGCCAS = $(TOOLS)/gccas
LDIS = $(TOOLS)/dis
LOPT = $(TOOLS)/opt
LLINK = $(TOOLS)/link
+
+LCCFLAGS += -O2 -Wall
LLCFLAGS =
+FAILURE = $(LEVEL)/test/Failure.sh
-LCC = /home/vadve/lattner/cvs/gcc_install/bin/gcc
-LCFLAGS += -O2 -Wall
+# Native Tool Definitions
+NATGCC = /usr/dcs/software/supported/bin/gcc
+CC = /opt/SUNWspro/bin/cc
+AS = /opt/SUNWspro/bin/cc
+DIS = /usr/ccs/bin/dis
+CP = /bin/cp -f
+CFLAGS += -g -xarch=v9
LLCLIB = $(LEVEL)/test/runtime.o
LIBS += $(LLCLIB)
+
+
ifeq ($(TRACE), yes)
LLCFLAGS += -trace
endif
@@ -37,43 +52,36 @@ ifeq ($(TRACEM), yes)
LLCFLAGS += -tracem
endif
-NATGCC = /usr/dcs/software/supported/bin/gcc
-
-CC = /opt/SUNWspro/bin/cc
-AS = /opt/SUNWspro/bin/cc
-DIS = /usr/ccs/bin/dis
-CP = /bin/cp -f
-CFLAGS += -g -xarch=v9
-
-## Special target to force target-dependent library to be compiled
-## directly to native code.
-##
-$(LLCLIB): $(LLCLIB:.o=.c)
- cd $(LEVEL)/test; $(MAKE) $(@F)
-
-#runtime.o: runtime.c
-# $(CC) -c $(CCFLAGS) $<
-
clean ::
- $(RM) *.bc *.mc *.s *.o a.out core
+ $(RM) a.out core
$(RM) -rf Output/
-%.mc: %.bc $(LLC) $(AS)
- @echo "Generating machine instructions for $<"
- $(LLC) -f -dsched y $(LLCFLAGS) $< > $@
+Output/%.ll: %.c $(LCC) Output/.dir
+ $(LCC) $(LCCFLAGS) -S $< -o $@
-%.trace.bc: %.bc $(LLC)
- $(LLC) -f -trace $(LLCFLAGS) $<
+Output/%.bc: Output/%.ll $(LGCCAS)
+ $(LGCCAS) $< -o $@
+Output/%.bc: %.ll $(LAS)
+ $(LAS) $< -o $@
+
+#
+# Testing versions of provided utilities...
+#
+Output/%.tll: %.c $(LCC) Output/.dir
+ @echo "======== Compiling $<"
+ $(LCC) $(LCCFLAGS) -S $< -o $@ || \
+ ( rm -f $@; $(FAILURE) $@ )
+
+Output/%.tbc: Output/%.tll $(LAS)
+ @echo "======== Assembling $<"
+ $(LAS) -f $< -o $@ || \
+ ( rm -f $@; $(FAILURE) $@ )
-Output/%.ll: %.c $(LCC) Output/.dir
- $(LCC) $(LCFLAGS) -S $< -o $@
-Output/%.bc: Output/%.ll $(LAS)
- $(LAS) $< -o $@
#%.s: %.linked.bc
-# $(LLC) -f $(LCFLAGS) $< -o $@
+# $(LLC) -f $(LLCFLAGS) $< -o $@
#%: %.o $(LIBS)
# $(CC) $(LDFLAGS) $< $(LIBS) -o $@