-OBJECTS = compile.o \
- lex.swf4.o lex.swf5.o swf5compiler.tab.o swf4compiler.tab.o \
- assembler.o libming.o actioncompiler.o
+OBJECTS = compile.$(O) \
+ lex.swf4.$(O) lex.swf5.$(O) swf5compiler.tab.$(O) swf4compiler.tab.$(O) \
+ assembler.$(O) libming.$(O) actioncompiler.$(O)
COMPILER_FILES = action.h assembler.c assembler.h compile.c compile.h \
listaction.c swf4compiler.flex swf4compiler.y swf5compiler.flex swf5compiler.y
GENERATED = lex.swf4.c lex.swf5.c swf5compiler.tab.c swf4compiler.tab.c
COMPILER_FILES = action.h assembler.c assembler.h compile.c compile.h \
listaction.c swf4compiler.flex swf4compiler.y swf5compiler.flex swf5compiler.y
GENERATED = lex.swf4.c lex.swf5.c swf5compiler.tab.c swf4compiler.tab.c
-actioncompiler.o: actioncompiler.c compile.h action.h libming.h
- $(C) actioncompiler.c -o actioncompiler.o
+actioncompiler.$(O): actioncompiler.c compile.h action.h libming.h
+ $(C) actioncompiler.c -o actioncompiler.$(O)
-swf4compiler.tab.o: swf4compiler.tab.c compile.h action.h assembler.h
- $(C) swf4compiler.tab.c -o swf4compiler.tab.o
+swf4compiler.tab.$(O): swf4compiler.tab.c compile.h action.h assembler.h
+ $(C) swf4compiler.tab.c -o swf4compiler.tab.$(O)
-swf5compiler.tab.o: swf5compiler.tab.c compile.h action.h assembler.h
- $(C) swf5compiler.tab.c -o swf5compiler.tab.o
+swf5compiler.tab.$(O): swf5compiler.tab.c compile.h action.h assembler.h
+ $(C) swf5compiler.tab.c -o swf5compiler.tab.$(O)
-O = compile.o listaction.o lex.swf4.o lex.swf5.o swf5compiler.tab.o swf4compiler.tab.o assembler.o actioncompiler.o
-main: main.o $(O)
- $(L) -o main main.o $(O) $(LIBS)
+OBJS = compile.$(O) listaction.$(O) lex.swf4.$(O) lex.swf5.$(O) swf5compiler.tab.$(O) swf4compiler.tab.$(O) assembler.$(O) actioncompiler.$(O)
+main: main.$(O) $(OBJS)
+ $(L) -o main main.$(O) $(OBJS) $(LIBS)