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