several more bugfixes.
[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 hexfont
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 text.o: demofont.c
55 text: $(RFXSWF) text.o $(RFXSWF)
56                 $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
57
58 edittext: $(RFXSWF) edittext.o $(RFXSWF)
59                 $(CC) -o edittext edittext.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
60
61 zlibtest: $(RFXSWF) zlibtest.o $(RFXSWF)
62                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
63
64 clean:
65                 rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \
66                 sprites.o glyphshape.o edittext.o \
67                 buttontest.o dumpfont.o text.o edittext.swf \
68                 jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf \
69                 sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \
70                 transtest.swf
71
72 .SUFFIXES: