added target: movie (type 'make movies' to build all example swfs)
[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 DBFLAGS = -g2
8
9 .c.o:
10                 $(CC) -c $(CFLAGS) $(DBFLAGS) -o $@ $<
11
12 all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text
13
14 movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text
15                 ./jpegtest
16                 ./box
17                 ./shape1
18                 ./transtest
19                 ./zlibtest
20                 ./sprites
21                 ./buttontest
22                 ./text
23
24 box: $(RFXSWF) box.o
25                 $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
26
27 buttontest: $(RFXSWF) buttontest.o
28                 $(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
29
30 dumpfont: $(RFXSWF) dumpfont.o
31                 $(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
32
33 jpegtest: $(RFXSWF) jpegtest.o
34                 $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
35
36 shape1: $(RFXSWF) shape1.o
37                 $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
38
39 sprites: $(RFXSWF) sprites.o
40                 $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
41
42 transtest: $(RFXSWF) transtest.o
43                 $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
44
45 text: $(RFXSWF) text.o
46                 $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
47
48 zlibtest: $(RFXSWF) zlibtest.o
49                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
50
51 clean:
52                 rm -f jpegtest.o box.o shape1.o trastest.o zlibtest.o sprites.o\
53                 buttontest.o dumpfont.o text.o\
54                 jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf \
55                 sprites.swf buttontest.swf text.swf
56
57