fixed segfault
[swftools.git] / lib / example / Makefile
1 # Makefile
2
3 RFXSWF  = ../librfxswf.a ../libbase.a 
4 LDLIBS  = -L/opt/local/lib/ -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: alignzones.swf
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 $(RFXSWF)
22                 $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
23
24 box: $(RFXSWF) box.o $(RFXSWF)
25                 $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
26
27 protect: $(RFXSWF) protect.o $(RFXSWF)
28                 $(CC) -o protect protect.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
29
30 buttontest: $(RFXSWF) buttontest.o $(RFXSWF)
31                 $(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
32
33 dumpfont: $(RFXSWF) dumpfont.o $(RFXSWF)
34                 $(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
35
36 glyphshape: $(RFXSWF) glyphshape.o $(RFXSWF)
37                 $(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
38
39 jpegtest: $(RFXSWF) jpegtest.o $(RFXSWF)
40                 $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
41
42 shape1: $(RFXSWF) shape1.o $(RFXSWF)
43                 $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
44
45 sprites: $(RFXSWF) sprites.o $(RFXSWF)
46                 $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
47
48 transtest: $(RFXSWF) transtest.o $(RFXSWF)
49                 $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
50
51 hexfont: $(RFXSWF) hexfont.o $(RFXSWF)
52                 $(CC) -o hexfont hexfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
53
54 alignzones: $(RFXSWF) alignzones.o $(RFXSWF)
55                 $(CC) -o alignzones alignzones.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
56
57 text.o: demofont.c
58 text: $(RFXSWF) text.o $(RFXSWF)
59                 $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
60
61 edittext: $(RFXSWF) edittext.o $(RFXSWF)
62                 $(CC) -o edittext edittext.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
63
64 zlibtest: $(RFXSWF) zlibtest.o $(RFXSWF)
65                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
66
67 clean:
68                 rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \
69                 sprites.o glyphshape.o edittext.o \
70                 buttontest.o dumpfont.o text.o edittext.swf \
71                 jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf \
72                 sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \
73                 transtest.swf
74
75 .SUFFIXES: