Makefile.am
655 Bytes
tepal_source = tepal.c tepal_pars.c tepal_scan.c \
evalExpr.c evalCond.c expValue.c \
variable.c assign.c cast.c \
ident.c identList.c bbtree.c \
statement.c stmtQueue.c block.c
nobase_include_HEADERS = tepal_pars.y tepal_scan.l
BUILT_SOURCES = tepal_pars.c tepal_scan.c
CLEANFILES = tepal_pars.c tepal_scan.c ../include/tepal_pars.h
bin_PROGRAMS = tepal
tepal_SOURCES = $(tepal_source)
AM_CFLAGS = -I../include
tepal_pars.c: Makefile tepal_pars.y
$(YACC) -d tepal_pars.y
mv y.tab.c tepal_pars.c
mv y.tab.h ../include/tepal_pars.h
tepal_scan.c: Makefile tepal_scan.l
$(LEX) tepal_scan.l
mv lex.yy.c tepal_scan.c