]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/ogl/makefile.vc
nicer version compilation fix for wxUSE_WCHAR_T=0 (why should we duplicate definition...
[wxWidgets.git] / contrib / src / ogl / makefile.vc
1
2 # File: makefile.vc
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds OGL classes library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
12 # info
13
14
15 # Set WXDIR for your system
16 WXDIR = $(WXWIN)
17 OGLDIR = $(WXDIR)\contrib\src\ogl
18 OGLINC = $(WXDIR)\contrib\include\wx\ogl
19 THISDIR = $(WXDIR)\contrib\src\ogl
20 EXTRAFLAGS=/DPROLOGIO=1
21 DOCDIR=$(WXDIR)\contrib\docs
22 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\ogl
23
24 !include $(WXDIR)\src\makevc.env
25
26 PROGRAM=test
27
28 OBJECTS = $(D)\basic.obj $(D)\basic2.obj $(D)\canvas.obj $(D)\ogldiag.obj $(D)\lines.obj $(D)\misc.obj $(D)\divided.obj $(D)\constrnt.obj\
29 $(D)\composit.obj $(D)\drawn.obj $(D)\bmpshape.obj $(D)\mfutils.obj
30
31 LIBTARGET=$(WXDIR)\lib\ogl$(LIBEXT).lib
32
33 all: $(D) $(LIBTARGET)
34
35 $(PROGRAM): $(PROGRAM).exe
36
37 $(D) :
38 mkdir $(D)
39
40 wx:
41 cd $(WXDIR)\src\msw
42 nmake -f makefile.vc FINAL=$(FINAL)
43 cd $(THISDIR)
44
45 wxclean:
46 cd $(WXDIR)\src\msw
47 nmake -f makefile.vc clean
48 cd $(THISDIR)
49
50 $(LIBTARGET): $(OBJECTS)
51 -erase $(LIBTARGET)
52 $(implib) @<<
53 -out:$(LIBTARGET)
54 -machine:$(CPU)
55 $(OBJECTS)
56 <<
57
58 # NOTE: This causes a floating point stack error when optimized,
59 # so DON'T optimize!
60 $(D)\basic.obj: basic.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/lines.h $(OGLINC)/misc.h $(OGLINC)/canvas.h
61 cl @<<
62 $(CPPFLAGS) /Od /c /Fo$@ /Tp $(*B).$(SRCSUFF)
63 <<
64
65 $(D)\basic2.obj: basic2.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/lines.h $(OGLINC)/misc.h $(OGLINC)/canvas.h
66 cl @<<
67 $(CPPFLAGS) /Od /c /Fo$@ /Tp $(*B).$(SRCSUFF)
68 <<
69
70 $(D)\canvas.obj: canvas.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLINC)/canvas.h
71 cl @<<
72 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
73 <<
74
75 $(D)\ogldiag.obj: ogldiag.$(SRCSUFF) $(OGLINC)/ogldiag.h $(OGLINC)/canvas.h $(OGLINC)/basic.h
76 cl @<<
77 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
78 <<
79
80 $(D)\lines.obj: lines.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLINC)/canvas.h $(OGLINC)/lines.h $(OGLINC)/basicp.h $(OGLINC)/linesp.h
81 cl @<<
82 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
83 <<
84
85 $(D)\misc.obj: misc.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLINC)/constrnt.h $(OGLINC)/basicp.h
86 cl @<<
87 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
88 <<
89
90 $(D)\divided.obj: divided.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLINC)/canvas.h $(OGLINC)/divided.h $(OGLINC)/basicp.h
91 cl @<<
92 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
93 <<
94
95 $(D)\constrnt.obj: constrnt.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/constrnt.h
96 cl @<<
97 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
98 <<
99
100 $(D)\composit.obj: composit.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLINC)/canvas.h $(OGLINC)/constrnt.h $(OGLINC)/composit.h $(OGLINC)/basicp.h
101 cl @<<
102 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
103 <<
104
105 $(D)\drawn.obj: drawn.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLINC)/canvas.h $(OGLINC)/drawn.h $(OGLINC)/drawnp.h $(OGLINC)/basicp.h
106 cl @<<
107 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
108 <<
109
110 $(D)\bmpshape.obj: bmpshape.$(SRCSUFF) $(OGLINC)/basic.h $(OGLINC)/misc.h $(OGLINC)/canvas.h $(OGLINC)/bmpshape.h
111 cl @<<
112 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
113 <<
114
115 $(D)\mfutils.obj: mfutils.$(SRCSUFF) $(OGLINC)/mfutils.h
116 cl @<<
117 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
118 <<
119
120 clean:
121 -erase $(D)\*.obj
122 -erase *.sbr
123 -erase *.exe
124 -erase *.res
125 -erase *.map
126 -erase *.pdb
127 -erase $(LIBTARGET)
128
129 DOCSOURCES=$(LOCALDOCDIR)\ogl.tex \
130 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
131 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
132 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
133
134 html: $(DOCDIR)\html\ogl\ogl.htm
135 htmlhelp: $(DOCDIR)\htmlhelp\ogl.chm
136 htb: $(DOCDIR)\htb\ogl.htb
137 hlp: $(DOCDIR)\winhelp\ogl.hlp
138 pdfrtf: $(DOCDIR)\pdf\ogl.rtf
139 ps: $(DOCDIR)\ps\ogl.ps
140
141 touchmanual:
142 touch $(LOCALDOCDIR)\ogl.tex
143
144
145 $(DOCDIR)\winhelp\ogl.hlp: $(LOCALDOCDIR)\ogl.rtf $(LOCALDOCDIR)\ogl.hpj
146 cd $(LOCALDOCDIR)
147 -erase ogl.ph
148 hc ogl
149 move ogl.hlp $(DOCDIR)\winhelp\ogl.hlp
150 move ogl.cnt $(DOCDIR)\winhelp\ogl.cnt
151 cd $(THISDIR)
152
153 $(LOCALDOCDIR)\ogl.rtf: $(DOCSOURCES)
154 cd $(LOCALDOCDIR)
155 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\ogl.tex $(LOCALDOCDIR)\ogl.rtf -twice -winhelp
156 cd $(THISDIR)
157
158 $(DOCDIR)\pdf\ogl.rtf: $(DOCSOURCES)
159 cd $(LOCALDOCDIR)
160 -copy *.bmp $(DOCDIR)\pdf
161 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\pdf\ogl.rtf -twice -rtf
162 cd $(THISDIR)
163
164 $(DOCDIR)\html\ogl\ogl.htm: $(DOCSOURCES)
165 cd $(LOCALDOCDIR)
166 -mkdir $(DOCDIR)\html\ogl
167 copy *.gif $(DOCDIR)\html\ogl
168 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\html\ogl\ogl.htm -twice -html
169 -erase $(DOCDIR)\html\ogl\*.con
170 -erase *.con
171 -erase $(DOCDIR)\html\ogl\*.ref
172 cd $(THISDIR)
173
174 $(DOCDIR)\htmlhelp\ogl.chm: $(DOCDIR)\html\ogl\ogl.htm $(DOCDIR)\html\ogl\ogl.hhp
175 cd $(DOCDIR)\html\ogl
176 -hhc ogl.hhp
177 -erase $(DOCDIR)\htmlhelp\ogl.chm
178 move ogl.chm $(DOCDIR)\htmlhelp\ogl.chm
179 cd $(THISDIR)
180
181 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
182 # files, renamed to htb.
183 # This can then be used with e.g. helpview.
184 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
185 $(DOCDIR)\htb\ogl.htb: $(DOCDIR)\html\ogl\ogl.htm
186 cd $(DOCDIR)\html\ogl
187 -erase ogl.zip ogl.htb
188 zip ogl.zip *.htm *.gif *.hhp *.hhc *.hhk
189 -mkdir $(DOCDIR)\htb
190 -erase $(DOCDIR)\htb\ogl.htb
191 -erase $(DOCDIR)\htb\ogl.htb
192 move ogl.zip $(DOCDIR)\htb\ogl.htb
193 cd $(THISDIR)
194
195 $(LOCALDOCDIR)\ogl.dvi: $(DOCSOURCES)
196 cd $(LOCALDOCDIR)
197 -latex ogl
198 -latex ogl
199 -makeindx ogl
200 -bibtex ogl
201 -latex ogl
202 -latex ogl
203 cd $(THISDIR)
204
205 $(WXDIR)\docs\ps\ogl.ps: $(LOCALDOCDIR)\ogl.dvi
206 cd $(LOCALDOCDIR)
207 -dvips32 -o ogl.ps ogl
208 move ogl.ps $(WXDIR)\docs\ps\ogl.ps
209 cd $(THISDIR)
210