fix edittext
[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 %.swf: %
15                 ./$<
16
17 all: sound jpegtest box shape1 transtest zlibtest sprites buttontest dumpfont text glyphshape edittext
18
19 movies: sound.swf jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf sprites.swf buttontest.swf dumpfont.swf text.swf glyphshape.swf edittext.swf
20         
21 sound: $(RFXSWF) sound.o
22                 $(CC) -o sound sound.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
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 glyphshape: $(RFXSWF) glyphshape.o
34                 $(CC) -o glyphshape glyphshape.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
35
36 jpegtest: $(RFXSWF) jpegtest.o
37                 $(CC) -o jpegtest jpegtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
38
39 shape1: $(RFXSWF) shape1.o
40                 $(CC) -o shape1 shape1.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
41
42 sprites: $(RFXSWF) sprites.o
43                 $(CC) -o sprites sprites.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
44
45 transtest: $(RFXSWF) transtest.o
46                 $(CC) -o transtest transtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
47
48 text: $(RFXSWF) text.o
49                 $(CC) -o text text.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
50
51 edittext: $(RFXSWF) edittext.o
52                 $(CC) -o edittext edittext.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
53
54 zlibtest: $(RFXSWF) zlibtest.o
55                 $(CC) -o zlibtest zlibtest.o $(RFXSWF) $(LDLIBS) $(DBFLAGS)
56
57 clean:
58                 rm -f jpegtest.o box.o shape1.o transtest.o zlibtest.o \
59                 sprites.o glyphshape.o edittext.o \
60                 buttontest.o dumpfont.o text.o \
61                 jpegtest.swf box.swf shape1.swf transtest.swf zlibtest.swf \
62                 sprites.swf buttontest.swf text.swf glyphshape.swf sound.swf \
63                 transtest.swf
64
65 .SUFFIXES: