5 # Copyright: (c) 2000, Julian Smart
9 # Makefile : Builds Mmedia classes library (MS VC++).
10 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
16 OGLDIR = $(WXDIR)\contrib\src\mmedia
17 OGLINC = $(WXDIR)\contrib\include\wx\mmedia
18 THISDIR = $(WXDIR)\contrib\src\mmedia
19 DOCDIR=$(WXDIR)\contrib\docs
20 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\mmedia
22 !include $(WXDIR)\src\makevc.env
24 OBJECTS = $(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
29 LIBTARGET=$(WXDIR)\contrib\lib\mmedia$(LIBEXT).lib
31 all: $(D) $(LIBTARGET)
38 nmake -f makefile.vc FINAL=$(FINAL)
43 nmake -f makefile.vc clean
46 $(LIBTARGET): $(OBJECTS)
54 $(D)\cdbase.obj: cdbase.$(SRCSUFF)
56 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
59 $(D)\cdwin.obj: cdwin.$(SRCSUFF)
61 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
64 $(D)\g711.obj: g711.$(SRCSUFF)
66 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
69 $(D)\g721.obj: g721.$(SRCSUFF)
71 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
74 $(D)\g723_24.obj: g723_24.$(SRCSUFF)
76 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
79 $(D)\g723_40.obj: g723_40.$(SRCSUFF)
81 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
84 $(D)\g72x.obj: g72x.$(SRCSUFF)
86 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
89 $(D)\sndaiff.obj: sndaiff.$(SRCSUFF)
91 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
94 $(D)\sndbase.obj: sndbase.$(SRCSUFF)
96 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
99 $(D)\sndcodec.obj: sndcodec.$(SRCSUFF)
101 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
104 $(D)\sndcpcm.obj: sndcpcm.$(SRCSUFF)
106 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
109 $(D)\sndfile.obj: sndfile.$(SRCSUFF)
111 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
114 $(D)\sndg72x.obj: sndg72x.$(SRCSUFF)
116 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
119 $(D)\sndpcm.obj: sndpcm.$(SRCSUFF)
121 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
124 $(D)\sndulaw.obj: sndulaw.$(SRCSUFF)
126 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
129 $(D)\sndwav.obj: sndwav.$(SRCSUFF)
131 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
134 $(D)\sndwin.obj: sndwin.$(SRCSUFF)
136 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
139 $(D)\vidbase.obj: vidbase.$(SRCSUFF)
141 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
144 $(D)\vidwin.obj: vidwin.$(SRCSUFF)
146 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
158 DOCSOURCES=$(LOCALDOCDIR)\mmedia.tex \
159 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
160 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
161 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
163 html: $(DOCDIR)\html\mmedia\mmedia.htm
164 htmlhelp: $(DOCDIR)\html\mmedia\mmedia.chm
165 htb: $(DOCDIR)\htb\mmedia.htb
166 hlp: $(DOCDIR)\winhelp\mmedia.hlp
167 pdfrtf: $(DOCDIR)\pdf\mmedia.rtf
168 ps: $(DOCDIR)\ps\mmedia.ps
171 touch $(LOCALDOCDIR)\mmedia.tex
174 $(DOCDIR)\winhelp\mmedia.hlp: $(LOCALDOCDIR)\mmedia.rtf $(LOCALDOCDIR)\mmedia.hpj
178 move mmedia.hlp $(DOCDIR)\winhelp\mmedia.hlp
179 move mmedia.cnt $(DOCDIR)\winhelp\mmedia.cnt
182 $(LOCALDOCDIR)\mmedia.rtf: $(DOCSOURCES)
184 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(LOCALDOCDIR)\mmedia.rtf -twice -winhelp
187 $(DOCDIR)\pdf\mmedia.rtf: $(DOCSOURCES)
189 -copy *.bmp $(DOCDIR)\pdf
190 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(DOCDIR)\pdf\mmedia.rtf -twice -rtf
193 $(DOCDIR)\html\mmedia\mmedia.htm: $(DOCSOURCES)
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
200 -erase $(DOCDIR)\html\mmedia\*.ref
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
212 -erase $(DOCDIR)\htb\mmedia.htb
213 move mmedia.zip $(DOCDIR)\htb\mmedia.htb
216 $(DOCDIR)\html\mmedia\mmedia.chm: $(DOCDIR)\html\mmedia\mmedia.htm $(DOCDIR)\html\mmedia\mmedia.hhp
217 cd $(DOCDIR)\html\mmedia
219 -erase $(DOCDIR)\htmlhelp\mmedia.chm
220 move mmedia.chm $(DOCDIR)\htmlhelp\mmedia.chm
223 $(LOCALDOCDIR)\mmedia.dvi: $(DOCSOURCES)
233 $(WXDIR)\docs\ps\mmedia.ps: $(LOCALDOCDIR)\mmedia.dvi
235 -dvips32 -o mmedia.ps mmedia
236 move mmedia.ps $(WXDIR)\docs\ps\mmedia.ps