X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Faction%2FMakefile.in;h=9ff5c9b613645d58ddc9fb154cab87a440299e96;hb=bf04757cd94e94c1f67fa3d2a4e3e59fa5bce0c0;hp=4bda1ee1426b51cfe1d743234e5421a13b0aaf0d;hpb=66fc84f17f5bbc247c4deab81df53003d3f5f77b;p=swftools.git diff --git a/lib/action/Makefile.in b/lib/action/Makefile.in index 4bda1ee..9ff5c9b 100755 --- a/lib/action/Makefile.in +++ b/lib/action/Makefile.in @@ -8,23 +8,24 @@ include ../../Makefile.common # In case we need to get more information out of flex #FLEXDEBUG = -d -OBJECTS = compile.o listaction.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 -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 @@ -41,53 +42,54 @@ lex.swf5.c: swf5compiler.flex swf5compiler.tab.h # === OBJECTS === -lex.swf4.o: lex.swf4.c - $(C) lex.swf4.c -o lex.swf4.o +lex.swf4.$(O): lex.swf4.c + $(C) lex.swf4.c -o lex.swf4.$(O) -lex.swf5.o: lex.swf5.c - $(C) lex.swf5.c -o lex.swf5.o +lex.swf5.$(O): lex.swf5.c + $(C) lex.swf5.c -o lex.swf5.$(O) -compile.o: compile.c compile.h libming.h action.h blocks/error.h - $(C) compile.c -o compile.o +compile.$(O): compile.c compile.h libming.h action.h blocks/error.h + $(C) compile.c -o compile.$(O) -listaction.o: listaction.c action.h compile.h - $(C) listaction.c -o listaction.o +listaction.$(O): listaction.c action.h compile.h + $(C) listaction.c -o listaction.$(O) -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) -assembler.o: assembler.c compile.h action.h assembler.h - $(C) assembler.c -o assembler.o +assembler.$(O): assembler.c compile.h action.h assembler.h + $(C) assembler.c -o assembler.$(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) -libming.o: libming.c libming.h - $(C) libming.c -o libming.o +libming.$(O): libming.c libming.h + $(C) libming.c -o libming.$(O) # === TESTING === -test.o: test.c actioncompiler.h - $(C) test.c -o test.o +test.$(O): test.c actioncompiler.h + $(C) test.c -o test.$(O) -main.o: main.c - $(C) main.c -o main.o +main.$(O): main.c + $(C) main.c -o main.$(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) -test: test.o $(OBJECTS) - $(L) -o test $(OBJECTS) test.o ../librfxswf.a -lm -ljpeg -lz -lt1 -lfreetype +test: test.$(O) $(OBJECTS) + $(L) -o test $(OBJECTS) test.$(O) ../librfxswf$(A) -lm -ljpeg -lz -lt1 -lfreetype # === CLEANING === clean: - rm -f $(OBJECTS) compiler compiler.exe core test main main.o *~ gmon.out + rm -f $(OBJECTS) compiler compiler.exe core test main main.$(O) *~ gmon.out distclean: clean rm -f $(GENERATED) swf*compiler.tab.* lex*.c +.PHONY: clean,distclean,all,generated