X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2FMakefile;h=5bf18f0725a4ef35df18c315eea024d83fe6fca6;hb=d4af216aee2d07affc044ef8a9f7fb4c408c44cd;hp=a8c85eb60ee8994d669b2dc6172e4c0fa2be89c3;hpb=50f0c053c8be3ac812a8aab1143187a28f324209;p=swftools.git diff --git a/lib/example/Makefile b/lib/example/Makefile index a8c85eb..5bf18f0 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,9 +12,10 @@ DBFLAGS = -g2 %.o: %.cc $(CXX) -c $(CFLAGS) $(DBFLAGS) -o $@ $< -all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape avi2swf +all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape -movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape +movies: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape + ./sound ./jpegtest ./box ./glyphshape @@ -26,11 +27,8 @@ movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text ./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` +sound: $(RFXSWF) sound.o + $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) box: $(RFXSWF) box.o $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) @@ -64,7 +62,7 @@ zlibtest: $(RFXSWF) zlibtest.o 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/spline.o ../../pdf2swf/encodings.o ../librfxswf.a -lt1 $(LDLIBS) \ ../../pdf2swf/xpdf/libpdf.a $(DBFLAGS) clean: @@ -72,6 +70,7 @@ clean: 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.swf buttontest.swf text.swf glyphshape.swf sound.swf \ + transtest.swf