* added sound example
[swftools.git] / lib / example / Makefile
1 # Makefile
2
3 RFXSWF  = ../librfxswf.a
4 LDLIBS  = -L/usr/X11R6/lib -ljpeg -lm -lz -lX11
5 #CFLAGS = -funsigned-char
6 CC      = gcc
7 CXX     = g++
8 DBFLAGS = -g2
9
10 %.o: %.c
11                 $(CC) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
12 %.o: %.cc
13                 $(CXX) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
14
15 all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape avi2swf
16
17 movies: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape
18                 ./sound
19                 ./jpegtest
20                 ./box
21                 ./glyphshape
22                 ./shape1
23                 ./transtest
24                 ./zlibtest
25                 ./sprites
26                 ./buttontest
27                 ./text
28                 ./makefonts
29
30 avi2swf.o: avi2swf.cc
31                 $(CXX) -O2 -fomit-frame-pointer -o avi2swf.o -c avi2swf.cc `avifile-config --cflags`
32
33 avi2swf: $(RFXSWF) avi2swf.o
34                 $(CXX) -O2 -fomit-frame-pointer -o avi2swf avi2swf.o  $(RFXSWF) $(LDLIBS) `avifile-config --libs`
35
36 sound: $(RFXSWF) sound.o
37                 $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
38
39 box: $(RFXSWF) box.o
40                 $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
41
42 buttontest: $(RFXSWF) buttontest.o
43                 $(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
44
45 dumpfont: $(RFXSWF) dumpfont.o
46                 $(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
47
48 glyphshape: $(RFXSWF) glyphshape.o
49                 $(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
50
51 jpegtest: $(RFXSWF) jpegtest.o
52                 $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
53
54 shape1: $(RFXSWF) shape1.o
55                 $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
56
57 sprites: $(RFXSWF) sprites.o
58                 $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
59
60 transtest: $(RFXSWF) transtest.o
61                 $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
62
63 text: $(RFXSWF) text.o
64                 $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
65
66 zlibtest: $(RFXSWF) zlibtest.o
67                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
68
69 makefonts: $(RFXSWF) makefonts.o ../../pdf2swf/swfoutput.o
70                 $(CXX) -o makefonts makefonts.o ../../pdf2swf/swfoutput.o \
71                 ../../pdf2swf/spline.o ../librfxswf.a -lt1 $(LDLIBS) \
72                 ../../pdf2swf/xpdf/libpdf.a $(DBFLAGS)
73
74 clean:
75                 rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \
76                 sprites.o glyphshape.o \
77                 buttontest.o dumpfont.o text.o makefonts.o\
78                 jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf \
79                 sprites.swf buttontest.swf text.swf glyphshape.swf
80
81