X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fexample%2FMakefile;h=1955ab8b8e57db7ae0f7fecc843a01e4fc2e4451;hp=a8c85eb60ee8994d669b2dc6172e4c0fa2be89c3;hb=b0a6c2bc243ef9186ca87db478f502df073c4ba3;hpb=50f0c053c8be3ac812a8aab1143187a28f324209 diff --git a/lib/example/Makefile b/lib/example/Makefile index a8c85eb..1955ab8 100644 --- a/lib/example/Makefile +++ b/lib/example/Makefile @@ -1,8 +1,8 @@ # Makefile -RFXSWF = ../rfxswf.o -LDLIBS = -ljpeg -lm -lz -CFLAGS = -funsigned-char +RFXSWF = ../librfxswf.a +LDLIBS = -L/usr/X11R6/lib -ljpeg -lm -lz -lX11 -lfreetype -lt1 +#CFLAGS = -funsigned-char CC = gcc CXX = g++ DBFLAGS = -g2 @@ -11,30 +11,23 @@ DBFLAGS = -g2 $(CC) -c $(CFLAGS) $(DBFLAGS) -o $@ $< %.o: %.cc $(CXX) -c $(CFLAGS) $(DBFLAGS) -o $@ $< +%.swf: % + ./$< -all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape avi2swf +all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape edittext protect -movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape - ./jpegtest - ./box - ./glyphshape - ./shape1 - ./transtest - ./zlibtest - ./sprites - ./buttontest - ./text - ./makefonts - -avi2swf.o: avi2swf.cc - $(CXX) -o avi2swf.o -c avi2swf.cc `avifile-config --cflags` - -avi2swf: $(RFXSWF) avi2swf.o - $(CXX) -o avi2swf avi2swf.o $(RFXSWF) $(LDLIBS) `avifile-config --libs` +movies: sound.swf jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf sprites.swf buttontest.swf dumpfont.swf text.swf glyphshape.swf edittext.swf + +sound: $(RFXSWF) sound.o + $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) box: $(RFXSWF) box.o $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) +protect: $(RFXSWF) protect.o + $(CC) -o protect protect.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) + +buttontest: $(RFXSWF) buttontest.o buttontest: $(RFXSWF) buttontest.o $(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) @@ -59,19 +52,18 @@ transtest: $(RFXSWF) transtest.o 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) -makefonts: $(RFXSWF) makefonts.o ../../pdf2swf/swfoutput.o - $(CXX) -o makefonts makefonts.o ../../pdf2swf/swfoutput.o \ - ../../pdf2swf/spline.o ../rfxswf.o ../log.o -lt1 $(LDLIBS) \ - ../../pdf2swf/xpdf/libpdf.a $(DBFLAGS) - clean: 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 - + sprites.o glyphshape.o edittext.o \ + buttontest.o dumpfont.o text.o \ + jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf \ + sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \ + transtest.swf +.SUFFIXES: