blob: 1b95e6b5afc065279ae177b3bf80f2e6a67b9e43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
top_builddir = ..
srcdir = @srcdir@
top_srcdir = @top_srcdir@
include ../Makefile.common
programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ swfbbox$(E) font2swf$(E)
all: $(programs)
wav2swf.$(O): wav2swf.c wav.h
$(C) wav2swf.c -o $@
wav.$(O): wav.c wav.h
$(C) wav.c -o $@
png2swf.$(O): png2swf.c
$(C) png2swf.c -o $@
swfcombine.$(O): swfcombine.c
$(C) swfcombine.c -o $@
swfdump.$(O): swfdump.c
$(C) swfdump.c -o $@
swfextract.$(O): swfextract.c
$(C) swfextract.c -o $@
swfstrings.$(O): swfstrings.c
$(C) swfstrings.c -o $@
swfbbox.$(O): swfbbox.c
$(C) swfbbox.c -o $@
jpeg2swf.$(O): jpeg2swf.c
$(C) jpeg2swf.c -o $@
font2swf.$(O): font2swf.c
$(C) font2swf.c -o $@
swfc.$(O): swfc.c parser.h ../lib/q.h
$(C) swfc.c -o $@
parser.$(O): parser.yy.c parser.h ../lib/q.h
$(C) parser.yy.c -o $@
# TODO: include the following rule only if lex is available
parser.yy.c: parser.lex
flex -Bs -oparser.yy.c parser.lex
wav2swf$(E): wav2swf.$(O) wav.$(O) ../lib/librfxswf$(A)
$(L) wav2swf.$(O) wav.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
png2swf$(E): png2swf.$(O) ../lib/librfxswf$(A)
$(L) png2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
swfcombine$(E): swfcombine.$(O) ../lib/librfxswf$(A)
$(L) swfcombine.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
swfdump$(E): swfdump.$(O) ../lib/librfxswf$(A)
$(L) swfdump.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
swfextract$(E): swfextract.$(O) ../lib/librfxswf$(A)
$(L) swfextract.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
swfstrings$(E): swfstrings.$(O) ../lib/librfxswf$(A)
$(L) swfstrings.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
swfbbox$(E): swfbbox.$(O) ../lib/librfxswf$(A)
$(L) swfbbox.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
font2swf$(E): font2swf.$(O) ../lib/librfxswf$(A)
$(L) font2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
jpeg2swf$(E): jpeg2swf.$(O) ../lib/librfxswf$(A)
$(L) jpeg2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
swfc$(E): parser.$(O) swfc.$(O) ../lib/q.$(O) wav.$(O) ../lib/librfxswf$(A)
$(L) parser.$(O) swfc.$(O) ../lib/q.$(O) wav.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
$(STRIP) $@
install:
$(mkinstalldirs) $(bindir)
$(mkinstalldirs) $(man1dir)
@for file in $(programs); do $(INSTALL_BIN);$(INSTALL_MAN1);done
uninstall:
@for file in $(programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
clean:
rm -f *.o *.obj *.lo *.la *~ gmon.out
rm -f swfbbox swfdump wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf swfc font2swf
@rm -f swfbbox.exe swfdump.exe wav2swf.exe png2swf.exe swfcombine.exe swfextract.exe swfstrings.exe png2swf.exe jpeg2swf.exe swfc.exe font2swf.exe
@rm -f swfbbox$(E) swfdump$(E) wav2swf$(E) png2swf$(E) swfcombine$(E) swfextract$(E) swfstrings$(E) png2swf$(E) jpeg2swf$(E) swfc$(E) font2swf$(E)
doc:
perl ../parsedoc.pl wav2swf.doc
perl ../parsedoc.pl png2swf.doc
perl ../parsedoc.pl swfbbox.doc
perl ../parsedoc.pl font2swf.doc
perl ../parsedoc.pl jpeg2swf.doc
perl ../parsedoc.pl swfcombine.doc
perl ../parsedoc.pl swfdump.doc
perl ../parsedoc.pl swfc.doc
.PHONY: clean doc
|