X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2FMakefile;h=ba464ad06306ce04daf1d6d8319d9f9c93d1f616;hb=6feed80959ad2c11f0427bf0e5a30aab8abd7083;hp=e12c49bc756a53377349042c2f0aac6befcea2aa;hpb=d3c1c8d663e46c5cffed480115902d82e5cf5645;p=swftools.git diff --git a/lib/example/Makefile b/lib/example/Makefile index e12c49b..ba464ad 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 @@ -11,20 +11,15 @@ DBFLAGS = -g2 $(CC) -c $(CFLAGS) $(DBFLAGS) -o $@ $< %.o: %.cc $(CXX) -c $(CFLAGS) $(DBFLAGS) -o $@ $< +%.swf: % + ./$< -all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape +all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape edittext -movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape - ./jpegtest - ./box - ./glyphshape - ./shape1 - ./transtest - ./zlibtest - ./sprites - ./buttontest - ./text - ./makefonts +movies: sound.swf jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf sprites.swf buttontest.swf dumpfont.swf text.swf glyphshape.swf edittext.swf + +sound: $(RFXSWF) sound.o + $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) box: $(RFXSWF) box.o $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) @@ -53,19 +48,18 @@ transtest: $(RFXSWF) transtest.o text: $(RFXSWF) text.o $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS) +edittext: $(RFXSWF) edittext.o + $(CC) -o edittext edittext.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 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 glyphshape.swf - + sprites.o glyphshape.o edittext.o \ + buttontest.o dumpfont.o text.o \ + jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf \ + sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \ + transtest.swf +.SUFFIXES: