# Definitionen
# ------------
CC    = cc -g
LEX   = lex
IFLAG = -I # Interaktiver Lexer
YACC  = yacc -d
MV    = mv -v
RM    = rm -v


# Regeln
# ------

# Konfigurationsdateien-Interpreter
cfgdatei: cfgdatei.y cfgdatei.l
	${LEX} ${IFLAG} -l cfgdatei.l
	${YACC} -l cfgdatei.y
	${MV} lex.yy.c cfgdat_l.c
	${MV} y.tab.c cfgdat_y.c
	${MV} y.tab.h cfgdat_y.h

cfgdateitest: cfgdateitest.c cfgdatei
#	${CC} -o cfgdateitest cfgdateitest.c cfgdatei.c
	${CC} -o cfgdateitest cfgdateitest.c cfgdat_y.c cfgdat_l.c

clean:
	${RM} *.o
