added avi2swf.
[swftools.git] / lib / example / Makefile
1 # Makefile
2
3 RFXSWF  = ../rfxswf.o
4 LDLIBS  = -ljpeg -lm -lz 
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: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape avi2swf
16
17 movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape
18                 ./jpegtest
19                 ./box
20                 ./glyphshape
21                 ./shape1
22                 ./transtest
23                 ./zlibtest
24                 ./sprites
25                 ./buttontest
26                 ./text
27                 ./makefonts
28
29 avi2swf.o: avi2swf.cc
30                 $(CXX) -o avi2swf.o -c avi2swf.cc `avifile-config --cflags`
31
32 avi2swf: $(RFXSWF) avi2swf.o
33                 $(CXX) -o avi2swf avi2swf.o  $(RFXSWF) $(LDLIBS) `avifile-config --libs`
34
35 box: $(RFXSWF) box.o
36                 $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
37
38 buttontest: $(RFXSWF) buttontest.o
39                 $(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
40
41 dumpfont: $(RFXSWF) dumpfont.o
42                 $(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
43
44 glyphshape: $(RFXSWF) glyphshape.o
45                 $(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
46
47 jpegtest: $(RFXSWF) jpegtest.o
48                 $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
49
50 shape1: $(RFXSWF) shape1.o
51                 $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
52
53 sprites: $(RFXSWF) sprites.o
54                 $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
55
56 transtest: $(RFXSWF) transtest.o
57                 $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
58
59 text: $(RFXSWF) text.o
60                 $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
61
62 zlibtest: $(RFXSWF) zlibtest.o
63                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
64
65 makefonts: $(RFXSWF) makefonts.o ../../pdf2swf/swfoutput.o
66                 $(CXX) -o makefonts makefonts.o ../../pdf2swf/swfoutput.o \
67                 ../../pdf2swf/spline.o ../rfxswf.o ../log.o -lt1 $(LDLIBS) \
68                 ../../pdf2swf/xpdf/libpdf.a $(DBFLAGS)
69
70 clean:
71                 rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \
72                 sprites.o glyphshape.o \
73                 buttontest.o dumpfont.o text.o makefonts.o\
74                 jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf \
75                 sprites.swf buttontest.swf text.swf glyphshape.swf
76
77