]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/mmedia/makefile.vc
some more (apparently harmless) changes from Klass Holwerda
[wxWidgets.git] / contrib / src / mmedia / makefile.vc
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
15 WXDIR = $(WXWIN)
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
21
22 !include $(WXDIR)\src\makevc.env
23
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
28
29 LIBTARGET=$(WXDIR)\contrib\lib\mmedia$(LIBEXT).lib
30
31 all: $(D) $(LIBTARGET)
32
33 $(D) :
34 mkdir $(D)
35
36 wx:
37 cd $(WXDIR)\src\msw
38 nmake -f makefile.vc FINAL=$(FINAL)
39 cd $(THISDIR)
40
41 wxclean:
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
149 clean:
150 -erase $(D)\*.obj
151 -erase *.sbr
152 -erase *.exe
153 -erase *.res
154 -erase *.map
155 -erase *.pdb
156 -erase $(LIBTARGET)
157
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
162
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
168
169 touchmanual:
170 touch $(LOCALDOCDIR)\mmedia.tex
171
172
173 $(DOCDIR)\winhelp\mmedia.hlp: $(LOCALDOCDIR)\mmedia.rtf $(LOCALDOCDIR)\mmedia.hpj
174 cd $(LOCALDOCDIR)
175 -erase mmedia.ph
176 hc mmedia
177 move mmedia.hlp $(DOCDIR)\winhelp\mmedia.hlp
178 move mmedia.cnt $(DOCDIR)\winhelp\mmedia.cnt
179 cd $(THISDIR)
180
181 $(LOCALDOCDIR)\mmedia.rtf: $(DOCSOURCES)
182 cd $(LOCALDOCDIR)
183 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(LOCALDOCDIR)\mmedia.rtf -twice -winhelp
184 cd $(THISDIR)
185
186 $(DOCDIR)\pdf\mmedia.rtf: $(DOCSOURCES)
187 cd $(LOCALDOCDIR)
188 -copy *.bmp $(DOCDIR)\pdf
189 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\mmedia.tex $(DOCDIR)\pdf\mmedia.rtf -twice -rtf
190 cd $(THISDIR)
191
192 $(DOCDIR)\html\mmedia\mmedia.htm: $(DOCSOURCES)
193 cd $(LOCALDOCDIR)
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
198 -erase *.con
199 -erase $(DOCDIR)\html\mmedia\*.ref
200 cd $(THISDIR)
201
202
203 $(DOCDIR)\html\mmedia\mmedia.chm: $(DOCDIR)\html\mmedia\mmedia.htm $(DOCDIR)\html\mmedia\mmedia.hhp
204 cd $(DOCDIR)\html\mmedia
205 -hhc mmedia.hhp
206 cd $(THISDIR)
207
208
209 $(LOCALDOCDIR)\mmedia.dvi: $(DOCSOURCES)
210 cd $(LOCALDOCDIR)
211 -latex mmedia
212 -latex mmedia
213 -makeindx mmedia
214 -bibtex mmedia
215 -latex mmedia
216 -latex mmedia
217 cd $(THISDIR)
218
219 $(WXDIR)\docs\ps\mmedia.ps: $(LOCALDOCDIR)\mmedia.dvi
220 cd $(LOCALDOCDIR)
221 -dvips32 -o mmedia.ps mmedia
222 move mmedia.ps $(WXDIR)\docs\ps\mmedia.ps
223 cd $(THISDIR)
224
225