# In case we need to get more information out of flex
#FLEXDEBUG = -d
-OBJECTS = compile.o listaction.o \
+OBJECTS = compile.o \
lex.swf4.o lex.swf5.o swf5compiler.tab.o swf4compiler.tab.o \
assembler.o libming.o actioncompiler.o
GENERATED = lex.swf4.c lex.swf5.c swf5compiler.tab.c swf4compiler.tab.c
-all: $(OBJECTS) test main
+all: $(OBJECTS)
+generated: $(GENERATED)
# === GENERATED FILES ===
swf5compiler.tab.c: swf5compiler.y
bison -p swf5 swf5compiler.y
-swf5compiler.tab.h: swf5compiler.y
+swf5compiler.tab.h: swf5compiler.y
bison --defines $(BISONDEBUG) -p swf5 swf5compiler.y
swf4compiler.tab.c: swf4compiler.y
distclean: clean
rm -f $(GENERATED) swf*compiler.tab.* lex*.c
+.PHONY: clean,distclean,all,generated