1LEX     = flex --header-file=flex.h -P octyy_
2YACC    = bison
3YFLAGS  = -d -y -p octyy_
4CFLAGS = -DTEST_PARSER -std=c99 
5objects = parse.o scan.o y.tab.h test_parser.o ast.o
6
7test_parser: $(objects)
8parse.o: parse.c parse.y
9scan.o: scan.c scan.l
10flex.h: scan.o
11y.tab.h: parse.c scan.c scan.o
12test_parser.o: test_parser.c ast.c y.tab.h flex.h
13
14clean:
15	rm -f $(objects) parse.c scan.c test_parser flex.h
16
17
18