fixed some targets
[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 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
15 all: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts
16
17 movies: jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text
18                 ./jpegtest
19                 ./box
20                 ./shape1
21                 ./transtest
22                 ./zlibtest
23                 ./sprites
24                 ./buttontest
25                 ./text
26                 ./makefonts
27
28 box: $(RFXSWF) box.o
29                 $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
30
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 jpegtest: $(RFXSWF) jpegtest.o
38                 $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
39
40 shape1: $(RFXSWF) shape1.o
41                 $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
42
43 sprites: $(RFXSWF) sprites.o
44                 $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
45
46 transtest: $(RFXSWF) transtest.o
47                 $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
48
49 text: $(RFXSWF) text.o
50                 $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
51
52 zlibtest: $(RFXSWF) zlibtest.o
53                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
54
55 makefonts: $(RFXSWF) makefonts.o ../../pdf2swf/swfoutput.o
56                 $(CXX) -o makefonts makefonts.o ../../pdf2swf/swfoutput.o \
57                 ../../pdf2swf/spline.o ../rfxswf.o ../log.o -lt1 $(LDLIBS) \
58                 ../../pdf2swf/xpdf/libpdf.a $(DBFLAGS)
59
60 clean:
61                 rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o sprites.o\
62                 buttontest.o dumpfont.o text.o makefonts.o\
63                 jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf \
64                 sprites.swf buttontest.swf text.swf
65
66