first commit - working example - needs pointer type recognition (actualy more than...
[CppToLua.git] / makefile~
blobf7adc8b4b75d775de51a3178459df1876b810e5a
1 # program name
2 PROG = cpptolua
4 # compiler
5 CC = g++
7 all: $(PROG)
8         mv $(PROG) ../bin/
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 *~