first commit - working example - needs pointer type recognition (actualy more than...
[CppToLua.git] / makefile
blob1d358355b3d952ccd4d48eb34f2bdc270e9052d2
1 # program name
2 PROG = cpptolua
4 # compiler
5 CC = g++
7 all: $(PROG)
8 ./$(PROG) < in.cpp
10 $(PROG): y.tab.c lex.yy.c
11 $(CC) $^ -o $@
13 y.tab.c: $(PROG).y
14 yacc -d $<
16 lex.yy.c: $(PROG).l
17 lex $<
19 clean: y.tab.c lex.yy.c y.tab.h
20 rm $^
21 rm *~