X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fexample%2FMakefile;h=b369c3964d0ac9488c6f75ca54d383ffc4189d67;hp=e79ad35bf942787e22b961b094a0998e9c4d8ef1;hb=71a7c4579c42ecf077bccc078175650e4d9c7423;hpb=dcd54b8f52f1003b9723ea1aaeb6b1226e04e675 diff --git a/lib/example/Makefile b/lib/example/Makefile index e79ad35..b369c39 100644 --- a/lib/example/Makefile +++ b/lib/example/Makefile @@ -1,33 +1,75 @@ # Makefile -RFXSWF = ../rfxswf.o -LDLIBS = -ljpeg -lm -lz -CFLAGS = -funsigned-char +RFXSWF = ../librfxswf.a +LDLIBS = -L/usr/X11R6/lib -ljpeg -lm -lz -lX11 +#CFLAGS = -funsigned-char CC = gcc +CXX = g++ DBFLAGS = -g2 -.c.o: +%.o: %.c $(CC) -c $(CFLAGS) $(DBFLAGS) -o $@ $< +%.o: %.cc + $(CXX) -c $(CFLAGS) $(DBFLAGS) -o $@ $< -all: jpegtest box shape1 transtest zlibtest +all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape edittext + +movies: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape edittext + ./sound + ./jpegtest + ./box + ./glyphshape + ./shape1 + ./transtest + ./zlibtest + ./sprites + ./buttontest + ./text + ./makefonts + ./edittext + +sound: $(RFXSWF) sound.o + $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) box: $(RFXSWF) box.o $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) +buttontest: $(RFXSWF) buttontest.o + $(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) + +dumpfont: $(RFXSWF) dumpfont.o + $(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) + +glyphshape: $(RFXSWF) glyphshape.o + $(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) + jpegtest: $(RFXSWF) jpegtest.o $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) shape1: $(RFXSWF) shape1.o $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) +sprites: $(RFXSWF) sprites.o + $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) + transtest: $(RFXSWF) transtest.o $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) +text: $(RFXSWF) text.o + $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) + +edittext: $(RFXSWF) edittext.o + $(CC) -o edittext edittext.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) + zlibtest: $(RFXSWF) zlibtest.o $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) clean: - rm -f jpegtest.o box.o shape1.o trastest.o zlibtest.o \ - jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf + rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \ + sprites.o glyphshape.o \ + buttontest.o dumpfont.o text.o makefonts.o\ + jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf \ + sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \ + transtest.swf