c2
This commit is contained in:
20
c2/makefile
Normal file
20
c2/makefile
Normal 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
|
||||
Reference in New Issue
Block a user