]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/mmedia/makefile.vc
The last commit was too hasty.
[wxWidgets.git] / contrib / src / mmedia / makefile.vc
CommitLineData
07fce3c2
JS
1# File: makefile.vc
2# Author: Julian Smart
3# Created: 2000
4# Updated:
5# Copyright: (c) 2000, Julian Smart
6#
7# "%W% %G%"
8#
9# Makefile : Builds Mmedia classes library (MS VC++).
10# Use FINAL=1 argument to nmake to build final version with no debugging
11# info
12
13
14# Set WXDIR for your system
15WXDIR = $(WXWIN)
16OGLDIR = $(WXDIR)\contrib\src\mmedia
17OGLINC = $(WXDIR)\contrib\include\wx\mmedia
18THISDIR = $(WXDIR)\contrib\src\mmedia
19DOCDIR=$(WXDIR)\contrib\docs
20LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\mmedia
21
22!include $(WXDIR)\src\makevc.env
23
24OBJECTS = $(D)\cdbase.obj $(D)\cdwin.obj $(D)\g711.obj $(D)\g721.obj $(D)\g723_24.obj \
25 $(D)\g723_40.obj $(D)\g72x.obj $(D)\sndaiff.obj $(D)\sndbase.obj $(D)\sndcodec.obj \
26 $(D)\sndcpcm.obj $(D)\sndfile.obj $(D)\sndg72x.obj $(D)\sndpcm.obj $(D)\sndulaw.obj \
27 $(D)\sndwav.obj $(D)\sndwin.obj $(D)\vidbase.obj $(D)\vidwin.obj
28
29LIBTARGET=$(WXDIR)\contrib\lib\mmedia$(LIBEXT).lib
30
31all: $(D) $(LIBTARGET)
32
33$(D) :
34 mkdir $(D)
35
36wx:
37 cd $(WXDIR)\src\msw
38 nmake -f makefile.vc FINAL=$(FINAL)
39 cd $(THISDIR)
40
41wxclean:
42 cd $(WXDIR)\src\msw
43 nmake -f makefile.vc clean
44 cd $(THISDIR)
45
46$(LIBTARGET): $(OBJECTS)
47 -erase $(LIBTARGET)
48 $(implib) @<<
49-out:$(LIBTARGET)
50-machine:$(CPU)
51$(OBJECTS)
52<<
53
54$(D)\cdbase.obj: cdbase.$(SRCSUFF)
55 cl @<<
56$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
57<<
58
59$(D)\cdwin.obj: cdwin.$(SRCSUFF)
60 cl @<<
61$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
62<<
63
64$(D)\g711.obj: g711.$(SRCSUFF)
65 cl @<<
66$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
67<<
68
69$(D)\g721.obj: g721.$(SRCSUFF)
70 cl @<<
71$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
72<<
73
74$(D)\g723_24.obj: g723_24.$(SRCSUFF)
75 cl @<<
76$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
77<<
78
79$(D)\g723_40.obj: g723_40.$(SRCSUFF)
80 cl @<<
81$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
82<<
83
84$(D)\g72x.obj: g72x.$(SRCSUFF)
85 cl @<<
86$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
87<<
88
89$(D)\sndaiff.obj: sndaiff.$(SRCSUFF)
90 cl @<<
91$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
92<<
93
94$(D)\sndbase.obj: sndbase.$(SRCSUFF)
95 cl @<<
96$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
97<<
98
99$(D)\sndcodec.obj: sndcodec.$(SRCSUFF)
100 cl @<<
101$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
102<<
103
104$(D)\sndcpcm.obj: sndcpcm.$(SRCSUFF)
105 cl @<<
106$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
107<<
108
109$(D)\sndfile.obj: sndfile.$(SRCSUFF)
110 cl @<<
111$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
112<<
113
114$(D)\sndg72x.obj: sndg72x.$(SRCSUFF)
115 cl @<<
116$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
117<<
118
119$(D)\sndpcm.obj: sndpcm.$(SRCSUFF)
120 cl @<<
121$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
122<<
123
124$(D)\sndulaw.obj: sndulaw.$(SRCSUFF)
125 cl @<<
126$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
127<<
128
129$(D)\sndwav.obj: sndwav.$(SRCSUFF)
130 cl @<<
131$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
132<<
133
134$(D)\sndwin.obj: sndwin.$(SRCSUFF)
135 cl @<<
136$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
137<<
138
139$(D)\vidbase.obj: vidbase.$(SRCSUFF)
140 cl @<<
141$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
142<<
143
144$(D)\vidwin.obj: vidwin.$(SRCSUFF)
145 cl @<<
146$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
147<<
148
149clean:
150 -erase $(D)\*.obj
151 -erase *.sbr
152 -erase *.exe
153 -erase *.res
154 -erase *.map
155 -erase *.pdb
156 -erase $(LIBTARGET)
157
158DOCSOURCES=$(LOCALDOCDIR)\mmedia.tex \
159 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
160 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
161 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
162
163html: $(DOCDIR)\html\mmedia\mmedia.htm
164htmlhelp: $(DOCDIR)\html\mmedia\mmedia.chm
f1d93f0b 165htb: $(DOCDIR)\htb\mmedia.htb
07fce3c2
JS
166hlp: $(DOCDIR)\winhelp\mmedia.hlp
167pdfrtf: $(DOCDIR)\pdf\mmedia.rtf
168ps: $(DOCDIR)\ps\mmedia.ps
169
170touchmanual:
171 touch $(LOCALDOCDIR)\mmedia.tex
172
173
174$(DOCDIR)\winhelp\mmedia.hlp: $(LOCALDOCDIR)\mmedia.rtf $(LOCALDOCDIR)\mmedia.hpj
175 cd $(LOCALDOCDIR)
176 -erase mmedia.ph
177 hc mmedia
178 move mmedia.hlp $(DOCDIR)\winhelp\mmedia.hlp
179 move mmedia.cnt $(DOCDIR)\winhelp\mmedia.cnt
180 cd $(THISDIR)
181
182$(LOCALDOCDIR)\mmedia.rtf: $(DOCSOURCES)
183 cd $(LOCALDOCDIR)
184 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(LOCALDOCDIR)\mmedia.rtf -twice -winhelp
185 cd $(THISDIR)
186
187$(DOCDIR)\pdf\mmedia.rtf: $(DOCSOURCES)
188 cd $(LOCALDOCDIR)
189 -copy *.bmp $(DOCDIR)\pdf
190 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(DOCDIR)\pdf\mmedia.rtf -twice -rtf
191 cd $(THISDIR)
192
193$(DOCDIR)\html\mmedia\mmedia.htm: $(DOCSOURCES)
194 cd $(LOCALDOCDIR)
195 -mkdir $(DOCDIR)\html\mmedia
196 copy *.gif $(DOCDIR)\html\mmedia
197 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(DOCDIR)\html\mmedia\mmedia.htm -twice -html
198 -erase $(DOCDIR)\html\mmedia\*.con
199 -erase *.con
200 -erase $(DOCDIR)\html\mmedia\*.ref
201 cd $(THISDIR)
202
f1d93f0b
JS
203# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
204# files, renamed to htb.
205# This can then be used with e.g. helpview.
206# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
207$(DOCDIR)\htb\mmedia.htb: $(DOCDIR)\html\mmedia\mmedia.htm
208 cd $(DOCDIR)\html\mmedia
209 -erase mmedia.zip mmedia.htb
210 zip mmedia.zip *.htm *.gif *.hhp *.hhc *.hhk
211 -mkdir $(DOCDIR)\htb
212 -erase $(DOCDIR)\htb\mmedia.htb
213 move mmedia.zip $(DOCDIR)\htb\mmedia.htb
214 cd $(THISDIR)
07fce3c2
JS
215
216$(DOCDIR)\html\mmedia\mmedia.chm: $(DOCDIR)\html\mmedia\mmedia.htm $(DOCDIR)\html\mmedia\mmedia.hhp
217 cd $(DOCDIR)\html\mmedia
218 -hhc mmedia.hhp
f1d93f0b
JS
219 -erase $(DOCDIR)\htmlhelp\mmedia.chm
220 move mmedia.chm $(DOCDIR)\htmlhelp\mmedia.chm
07fce3c2
JS
221 cd $(THISDIR)
222
07fce3c2
JS
223$(LOCALDOCDIR)\mmedia.dvi: $(DOCSOURCES)
224 cd $(LOCALDOCDIR)
225 -latex mmedia
226 -latex mmedia
227 -makeindx mmedia
228 -bibtex mmedia
229 -latex mmedia
230 -latex mmedia
231 cd $(THISDIR)
232
233$(WXDIR)\docs\ps\mmedia.ps: $(LOCALDOCDIR)\mmedia.dvi
234 cd $(LOCALDOCDIR)
235 -dvips32 -o mmedia.ps mmedia
236 move mmedia.ps $(WXDIR)\docs\ps\mmedia.ps
237 cd $(THISDIR)
238