X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2FMakefile;h=5bf18f0725a4ef35df18c315eea024d83fe6fca6;hb=d4af216aee2d07affc044ef8a9f7fb4c408c44cd;hp=6b1787c39adfa84cc0424f8b7a4d71b323834499;hpb=de57609a2ec9f1fbf3400d4a34eca77a9cb42a19;p=swftools.git diff --git a/lib/example/Makefile b/lib/example/Makefile index 6b1787c..5bf18f0 100644 --- a/lib/example/Makefile +++ b/lib/example/Makefile @@ -1,15 +1,34 @@ # 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 sprites buttontest dumpfont text +all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape + +movies: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape + ./sound + ./jpegtest + ./box + ./glyphshape + ./shape1 + ./transtest + ./zlibtest + ./sprites + ./buttontest + ./text + ./makefonts + +sound: $(RFXSWF) sound.o + $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) box: $(RFXSWF) box.o $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) @@ -20,6 +39,9 @@ buttontest: $(RFXSWF) buttontest.o 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) @@ -38,10 +60,17 @@ 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 ../../pdf2swf/encodings.o ../librfxswf.a -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 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 + sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \ + transtest.swf