X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2FMakefile;h=896d783539f1576bad9ef672fd003be2e11c444d;hb=f02681d9b6f222ad16e3b97096c82b40e9813a7d;hp=085b3528f7af4b53af75c9fec5bbde695ef90f44;hpb=ca2f577da831ae2f2ffd8c2610e0080ccad259d8;p=swftools.git diff --git a/lib/example/Makefile b/lib/example/Makefile index 085b352..896d783 100644 --- a/lib/example/Makefile +++ b/lib/example/Makefile @@ -1,15 +1,18 @@ # 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 dumpfont text +all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text ./jpegtest @@ -20,6 +23,7 @@ movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text ./sprites ./buttontest ./text + ./makefonts box: $(RFXSWF) box.o $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) @@ -48,9 +52,14 @@ text: $(RFXSWF) text.o 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 dumpfont.o text.o\ + rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o sprites.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