Create Makefile

This commit is contained in:
Chen, Chien-ting 2018-05-21 00:13:18 +08:00 committed by GitHub
parent 932770c480
commit 2637899ed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
Makefile Normal file
View file

@ -0,0 +1,11 @@
CC=gcc
OUTPUT=interp
all: y.tab.c lex.yy.c
$(CC) -o $(OUTPUT) y.tab.c lex.yy.c
y.tab.c: interp.y
bison -vdty interp.y
lex.yy.c: interp.l
flex interp.l