164e5e6d41d91f6f50c9bd06d17833b0b26f37d9
[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
13
14 box: $(RFXSWF) box.o
15                 $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
16
17 jpegtest: $(RFXSWF) jpegtest.o
18                 $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
19
20 shape1: $(RFXSWF) shape1.o
21                 $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
22
23 sprites: $(RFXSWF) sprites.o
24                 $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
25
26 transtest: $(RFXSWF) transtest.o
27                 $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
28
29 zlibtest: $(RFXSWF) zlibtest.o
30                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
31
32 clean:
33                 rm -f jpegtest.o box.o shape1.o trastest.o zlibtest.o sprites.o\
34                 jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf \
35                 sprites.swf
36
37