add HAVE_SYS_BSDTYPES_H
[swftools.git] / lib / example / Makefile
1 # Makefile
2
3 RFXSWF  = ../librfxswf.a
4 LDLIBS  = -L/usr/X11R6/lib -ljpeg -lm -lz -lX11
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: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text makefonts glyphshape
16
17 movies: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape
18                 ./sound
19                 ./jpegtest
20                 ./box
21                 ./glyphshape
22                 ./shape1
23                 ./transtest
24                 ./zlibtest
25                 ./sprites
26                 ./buttontest
27                 ./text
28                 ./makefonts
29
30 sound: $(RFXSWF) sound.o
31                 $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
32
33 box: $(RFXSWF) box.o
34                 $(CC) -o box box.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
35
36 buttontest: $(RFXSWF) buttontest.o
37                 $(CC) -o buttontest buttontest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
38
39 dumpfont: $(RFXSWF) dumpfont.o
40                 $(CC) -o dumpfont dumpfont.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
41
42 glyphshape: $(RFXSWF) glyphshape.o
43                 $(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
44
45 jpegtest: $(RFXSWF) jpegtest.o
46                 $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
47
48 shape1: $(RFXSWF) shape1.o
49                 $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
50
51 sprites: $(RFXSWF) sprites.o
52                 $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
53
54 transtest: $(RFXSWF) transtest.o
55                 $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
56
57 text: $(RFXSWF) text.o
58                 $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
59
60 zlibtest: $(RFXSWF) zlibtest.o
61                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
62
63 makefonts: $(RFXSWF) makefonts.o ../../pdf2swf/swfoutput.o
64                 $(CXX) -o makefonts makefonts.o ../../pdf2swf/swfoutput.o \
65                 ../../pdf2swf/spline.o ../librfxswf.a -lt1 $(LDLIBS) \
66                 ../../pdf2swf/xpdf/libpdf.a $(DBFLAGS)
67
68 clean:
69                 rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \
70                 sprites.o glyphshape.o \
71                 buttontest.o dumpfont.o text.o makefonts.o\
72                 jpegtest.swf box.swf shape1.swf trastest.swf zlibtest.swf \
73                 sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \
74                 transtest.swf
75
76