X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2FMakefile;h=e12c49bc756a53377349042c2f0aac6befcea2aa;hb=d3c1c8d663e46c5cffed480115902d82e5cf5645;hp=b2e95258f5660e9b4fe291251f1d5dad4f6be8a9;hpb=e1a61c82d0d1c2303041370fc1d8f4c66b22d586;p=swftools.git diff --git a/lib/example/Makefile b/lib/example/Makefile index b2e9525..e12c49b 100644 --- a/lib/example/Makefile +++ b/lib/example/Makefile @@ -1,15 +1,30 @@ # Makefile RFXSWF = ../rfxswf.o -LDLIBS = -ljpeg -lm -lz +LDLIBS = -ljpeg -lm -lz 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 sprites buttontest +all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape + +movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape + ./jpegtest + ./box + ./glyphshape + ./shape1 + ./transtest + ./zlibtest + ./sprites + ./buttontest + ./text + ./makefonts box: $(RFXSWF) box.o $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) @@ -17,6 +32,12 @@ box: $(RFXSWF) box.o 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) @@ -29,13 +50,22 @@ sprites: $(RFXSWF) sprites.o transtest: $(RFXSWF) transtest.o $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) +text: $(RFXSWF) text.o + $(CC) -o text text.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 trastest.o zlibtest.o sprites.o\ - buttontest.o \ + 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 + sprites.swf buttontest.swf text.swf glyphshape.swf