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 hlp: $(DOCDIR)\winhelp\mmedia.hlp
166 pdfrtf: $(DOCDIR)\pdf\mmedia.rtf
167 ps: $(DOCDIR)\ps\mmedia.ps
170 touch $(LOCALDOCDIR)\mmedia.tex
173 $(DOCDIR)\winhelp\mmedia.hlp: $(LOCALDOCDIR)\mmedia.rtf $(LOCALDOCDIR)\mmedia.hpj
177 move mmedia.hlp $(DOCDIR)\winhelp\mmedia.hlp
178 move mmedia.cnt $(DOCDIR)\winhelp\mmedia.cnt
181 $(LOCALDOCDIR)\mmedia.rtf: $(DOCSOURCES)
183 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(LOCALDOCDIR)\mmedia.rtf -twice -winhelp
186 $(DOCDIR)\pdf\mmedia.rtf: $(DOCSOURCES)
188 -copy *.bmp $(DOCDIR)\pdf
189 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(DOCDIR)\pdf\mmedia.rtf -twice -rtf
192 $(DOCDIR)\html\mmedia\mmedia.htm: $(DOCSOURCES)
194 -mkdir $(DOCDIR)\html\mmedia
195 copy *.gif $(DOCDIR)\html\mmedia
196 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(DOCDIR)\html\mmedia\mmedia.htm -twice -html
197 -erase $(DOCDIR)\html\mmedia\*.con
199 -erase $(DOCDIR)\html\mmedia\*.ref
203 $(DOCDIR)\html\mmedia\mmedia.chm: $(DOCDIR)\html\mmedia\mmedia.htm $(DOCDIR)\html\mmedia\mmedia.hhp
204 cd $(DOCDIR)\html\mmedia
209 $(LOCALDOCDIR)\mmedia.dvi: $(DOCSOURCES)
219 $(WXDIR)\docs\ps\mmedia.ps: $(LOCALDOCDIR)\mmedia.dvi
221 -dvips32 -o mmedia.ps mmedia
222 move mmedia.ps $(WXDIR)\docs\ps\mmedia.ps