forked from parrot/parrot
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flush out Cola updates, cyaz in 2 weeks. :)
git-svn-id: https://svn.parrot.org/parrot/trunk@1329 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
- Loading branch information
Melvin Smith
committed
Apr 13, 2002
1 parent
6ff5ed1
commit d2fd487
Showing
8 changed files
with
571 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,58 @@ | ||
# Manually generated by programmer | ||
|
||
CC=gcc -Wall | ||
YACC=bison -v -y | ||
LEX=flex | ||
LIBS= | ||
#LIBS=-ll -ly | ||
#LIBS=-lfl | ||
# Visual C++ | ||
#CC = cl | ||
DEBUG = -g | ||
# GCC | ||
CC = gcc -Wall | ||
YACC = bison -v -y | ||
LEX = flex | ||
LIBS = | ||
#LIBS = -ll -ly | ||
#LIBS = -lfl | ||
|
||
HEADERS = cola.h parser.h | ||
|
||
default: | ||
default : | ||
$(MAKE) x | ||
cp x colac | ||
|
||
clean: | ||
nogen : sym.o type.o gen.o | ||
$(CC) $(DEBUG) -c parser.c | ||
$(CC) $(DEBUG) -c lexer.c | ||
$(CC) $(DEBUG) -o x parser.o lexer.o sym.o type.o gen.o $(LIBS) | ||
|
||
clean : | ||
rm -f core | ||
rm -f *.o *.imc | ||
rm -f parser.h parser.output | ||
rm -f lexer.c parser.c | ||
rm -f x | ||
|
||
publish: | ||
publish : | ||
perl publish.pl < MANIFEST | ||
|
||
parser.c: cola.y | ||
parser.c : cola.y | ||
$(YACC) -d -o parser.c cola.y | ||
|
||
lexer.c: cola.l $(HEADERS) | ||
lexer.c : cola.l $(HEADERS) | ||
$(LEX) cola.l | ||
|
||
lexer.o: lexer.c $(HEADERS) | ||
$(CC) -g -c lexer.c | ||
lexer.o : lexer.c $(HEADERS) | ||
$(CC) $(DEBUG) -c lexer.c | ||
|
||
parser.o: parser.c $(HEADERS) | ||
$(CC) -g -c parser.c | ||
parser.o : parser.c $(HEADERS) | ||
$(CC) $(DEBUG) -c parser.c | ||
|
||
sym.o: sym.c $(HEADERS) | ||
$(CC) -g -c sym.c | ||
sym.o : sym.c $(HEADERS) | ||
$(CC) $(DEBUG) -c sym.c | ||
|
||
type.o: type.c $(HEADERS) | ||
$(CC) -g -c type.c | ||
type.o : type.c $(HEADERS) | ||
$(CC) $(DEBUG) -c type.c | ||
|
||
gen.o: gen.c $(HEADERS) | ||
$(CC) -g -c gen.c | ||
gen.o : gen.c $(HEADERS) | ||
$(CC) $(DEBUG) -c gen.c | ||
|
||
tree.o: tree.c $(HEADERS) | ||
$(CC) -g -c tree.c | ||
x : parser.o lexer.o sym.o type.o gen.o | ||
$(CC) $(DEBUG) -o x parser.o lexer.o sym.o type.o gen.o $(LIBS) | ||
|
||
x: parser.o lexer.o sym.o type.o gen.o | ||
$(CC) -g -o x parser.o lexer.o sym.o type.o gen.o $(LIBS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.