--- a +++ b/Makefile @@ -0,0 +1,20 @@ +all: c99 + +c99: lex.yy.c y.tab.c + gcc -o $@ $^ + +lex.yy.c: c99.l + flex $^ + +y.tab.c: c99.y + yacc -d $^ + +test: c99 + ./c99 < test.c + +test2: c99 + ./c99 < test2.c + +test3: c99 + ./c99 < test3.c +