X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2FMakefile;h=6b474a6413bf0a7877560afa7a6dcbf6520e84bc;hb=27506c2e369f261e3b75b99fa23acfa87c539e68;hp=fedcc25989e6715d56e07f5f02e29f245b0dd579;hpb=01a84eea5b0ebf844d4d660958f4c9a2721e3f5a;p=swftools.git diff --git a/lib/example/Makefile b/lib/example/Makefile index fedcc25..6b474a6 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 +#CFLAGS = -funsigned-char CC = gcc CXX = g++ DBFLAGS = -g2 @@ -12,11 +12,13 @@ DBFLAGS = -g2 %.o: %.cc $(CXX) -c $(CFLAGS) $(DBFLAGS) -o $@ $< -all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts +all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape avi2swf -movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text +movies: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape + ./sound ./jpegtest ./box + ./glyphshape ./shape1 ./transtest ./zlibtest @@ -25,6 +27,15 @@ movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text ./text ./makefonts +avi2swf.o: avi2swf.cc + $(CXX) -O2 -fomit-frame-pointer -o avi2swf.o -c avi2swf.cc `avifile-config --cflags` + +avi2swf: $(RFXSWF) avi2swf.o + $(CXX) -O2 -fomit-frame-pointer -o avi2swf avi2swf.o $(RFXSWF) $(LDLIBS) `avifile-config --libs` + +sound: $(RFXSWF) sound.o + $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) + box: $(RFXSWF) box.o $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) @@ -34,6 +45,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) @@ -53,12 +67,15 @@ 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 -ljpeg -lz ../../pdf2swf/xpdf/libpdf.a + $(CXX) -o makefonts makefonts.o ../../pdf2swf/swfoutput.o \ + ../../pdf2swf/spline.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