#YACC=bison --yacc -d -v YACC=yacc -d #LEX=flex -I LEX=lex #CC=cc CC=gcc sp2c: main.c dstruct.c lex.yy.c y.tab.c $(CC) y.tab.c lex.yy.c dstruct.c main.c -o sp2c $(LDFLAGS) lex.yy.c: lexer.l $(LEX) lexer.l y.tab.c: parser.y $(YACC) parser.y clean: -rm -f *.o *~ core lex.yy.c y.tab.c y.tab.h y.output yytemp sp2c test.c test # test test: test.pl sp2c ./sp2c test.pl test.c $(CC) test.c -o test