summaryrefslogtreecommitdiffstats
path: root/grammar/makefile.stand-alone
blob: b998a39d1ec464e7bbd10cec755e4ea2ad539e39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
rscript: lex.yy.c utils.o rscript.tab.h utils.h
	gcc -DSTAND_ALONE -g -o rscript lex.yy.c rscript.tab.c utils.o -lestr

lex.yy.c: rscript.l rscript.tab.h
	flex rscript.l

rscript.tab.h: rscript.y
	bison -d rscript.y

utils.o: utils.c utils.h
	gcc -g -DSTAND_ALONE -Wall -c utils.c

clean:
	rm *.o