aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorLinus Torvalds <torvalds@home.osdl.org>2004-02-11 15:04:00 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:01:20 -0700
commit15ecac69e164c74f899a15208aa204762af5f1c2 (patch)
treedbd0c05dc7c02037c5772c0c3a166447211669db /Makefile
parentdb4a4265c41a5da5ea06b5597a72776cc69574ab (diff)
downloadsparse-dev-15ecac69e164c74f899a15208aa204762af5f1c2.tar.gz
Add a "test-linearize" program to test the output of
the linearization phase.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d30fc4ec..111657a0 100644
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,12 @@ LDFLAGS=-g
AR=ar
PREFIX=$(HOME)
-PROGRAMS=test-lexing test-parsing obfuscate check compile
+PROGRAMS=test-lexing test-parsing obfuscate check compile test-linearize
LIB_H= token.h parse.h lib.h symbol.h scope.h expression.h target.h
LIB_OBJS= parse.o tokenize.o pre-process.o symbol.o lib.o scope.o \
- expression.o show-parse.o evaluate.o expand.o inline.o
+ expression.o show-parse.o evaluate.o expand.o inline.o linearize.o
LIB_FILE= sparse.a
LIBS=$(LIB_FILE)
@@ -30,6 +30,9 @@ test-lexing: test-lexing.o $(LIB_FILE)
test-parsing: test-parsing.o $(LIB_FILE)
gcc $(LDFLAGS) -o $@ $< $(LIBS)
+test-linearize: test-linearize.o $(LIB_FILE)
+ gcc $(LDFLAGS) -o $@ $< $(LIBS)
+
compile: compile.o compile-i386.o $(LIB_FILE)
gcc $(LDFLAGS) -o $@ $< compile-i386.o $(LIBS)
@@ -52,6 +55,7 @@ show-parse.o: $(LIB_H)
symbol.o: $(LIB_H)
test-lexing.o: $(LIB_H)
test-parsing.o: $(LIB_H)
+test-linearize.o: $(LIB_H)
compile.o: $(LIB_H)
compile-i386.o: $(LIB_H)
tokenize.o: $(LIB_H)