added swf_SetVideoStreamMover() and functions from ../src/swfbbox.c
[swftools.git] / lib / example / Makefile
1 # Makefile
2
3 RFXSWF  = ../librfxswf.a
4 LDLIBS  = -L/usr/X11R6/lib -ljpeg -lm -lz -lX11 -lfreetype -lt1
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 %.swf: %
15                 ./$<
16
17 all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape edittext protect
18
19 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
20         
21 sound: $(RFXSWF) sound.o
22                 $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
23
24 box: $(RFXSWF) box.o
25                 $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
26
27 protect: $(RFXSWF) protect.o
28                 $(CC) -o protect protect.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
29
30 buttontest: $(RFXSWF) buttontest.o
31 buttontest: $(RFXSWF) buttontest.o
32                 $(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
33
34 dumpfont: $(RFXSWF) dumpfont.o
35                 $(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
36
37 glyphshape: $(RFXSWF) glyphshape.o
38                 $(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
39
40 jpegtest: $(RFXSWF) jpegtest.o
41                 $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
42
43 shape1: $(RFXSWF) shape1.o
44                 $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
45
46 sprites: $(RFXSWF) sprites.o
47                 $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
48
49 transtest: $(RFXSWF) transtest.o
50                 $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
51
52 text: $(RFXSWF) text.o
53                 $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
54
55 edittext: $(RFXSWF) edittext.o
56                 $(CC) -o edittext edittext.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
57
58 zlibtest: $(RFXSWF) zlibtest.o
59                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
60
61 clean:
62                 rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \
63                 sprites.o glyphshape.o edittext.o \
64                 buttontest.o dumpfont.o text.o \
65                 jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf \
66                 sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \
67                 transtest.swf
68
69 .SUFFIXES: