limpei e melhorei o makefile.
[CppToLua.git] / makefile
blob9c909ac1de974601cdef5061d81f48c57f707a00
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:
20 rm -f *~ y.tab.? lex.yy.c