This commit is contained in:
2024-12-11 15:28:32 -05:00
parent 6b81c1678a
commit 7678673748
16 changed files with 3501 additions and 0 deletions

20
c2/makefile Normal file
View File

@@ -0,0 +1,20 @@
lextest: driver.o lex.yy.o errormsg.o util.o
cc -g -o lextest driver.o lex.yy.o errormsg.o util.o
driver.o: driver.c tokens.h errormsg.h util.h
cc -g -c driver.c
errormsg.o: errormsg.c errormsg.h util.h
cc -g -c errormsg.c
lex.yy.o: lex.yy.c tokens.h errormsg.h util.h
cc -g -c lex.yy.c
lex.yy.c: tiger.lex
lex tiger.lex
util.o: util.c util.h
cc -g -c util.c
clean:
rm -f a.out util.o driver.o lex.yy.o lex.yy.c errormsg.o