aelparse : aelflex.o aelbison.o
	gcc -g -o aelparse aelflex.o aelbison.o

aelflex.o : ael_lex.c ael_structs.h ael.tab.h
	gcc -c -g -o aelflex.o ael_lex.c

aelbison.o : ael.tab.c ael.tab.h ael_structs.h
	gcc -c -g -o aelbison.o ael.tab.c ## -DYYDEBUG

ael_lex.c : ael.flex
	flex ael.flex

ael.tab.c ael.tab.h : ael.y
	bison -v -d ael.y

test : aelparse
	./aelparse

clean:
	rm aelparse aelflex.o aelbison.o

realclean:
	rm aelparse aelflex.o aelbison.o ael.tab.c ael.tab.h ael.output ael_lex.c
