]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/ogl/makefile.vc
Clearly mark wxGLCanvas as not working under wxX11.
[wxWidgets.git] / contrib / src / ogl / makefile.vc
CommitLineData
1fc25a89
JS
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
16WXDIR = $(WXWIN)
07fce3c2 17OGLDIR = $(WXDIR)\contrib\src\ogl
1fc25a89 18OGLINC = $(WXDIR)\contrib\include\wx\ogl
07fce3c2 19THISDIR = $(WXDIR)\contrib\src\ogl
1fc25a89 20EXTRAFLAGS=/DPROLOGIO=1
e492150d 21DOCDIR=$(WXDIR)\docs
6e8515a3 22DOCSOURCEDIR=$(WXDIR)\contrib\docs\latex\ogl
1fc25a89
JS
23
24!include $(WXDIR)\src\makevc.env
25
26PROGRAM=test
27
28OBJECTS = $(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
779cedff 31LIBTARGET=$(WXDIR)\lib\ogl$(LIBEXT).lib
1fc25a89
JS
32
33all: $(D) $(LIBTARGET)
34
35$(PROGRAM): $(PROGRAM).exe
36
37$(D) :
38 mkdir $(D)
39
40wx:
41 cd $(WXDIR)\src\msw
42 nmake -f makefile.vc FINAL=$(FINAL)
43 cd $(THISDIR)
44
45wxclean:
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
120clean:
121 -erase $(D)\*.obj
122 -erase *.sbr
123 -erase *.exe
124 -erase *.res
125 -erase *.map
126 -erase *.pdb
127 -erase $(LIBTARGET)
128
6e8515a3
JS
129DOCSOURCES=$(DOCSOURCEDIR)\ogl.tex \
130 $(DOCSOURCEDIR)\bugs.tex $(DOCSOURCEDIR)\changes.tex\
131 $(DOCSOURCEDIR)\classes.tex $(DOCSOURCEDIR)\intro.tex\
132 $(DOCSOURCEDIR)\topics.tex $(DOCSOURCEDIR)\sample.tex
1fc25a89 133
e492150d
JS
134alldocs: mkdirs html htmlhelp htb hlp pdfrtf
135
1fc25a89 136html: $(DOCDIR)\html\ogl\ogl.htm
f6bcfd97
BP
137htmlhelp: $(DOCDIR)\htmlhelp\ogl.chm
138htb: $(DOCDIR)\htb\ogl.htb
1fc25a89
JS
139hlp: $(DOCDIR)\winhelp\ogl.hlp
140pdfrtf: $(DOCDIR)\pdf\ogl.rtf
141ps: $(DOCDIR)\ps\ogl.ps
142
e492150d
JS
143mkdirs:
144 -mkdir $(DOCDIR)\html $(DOCDIR)\html\ogl $(DOCDIR)\htb $(DOCDIR)\htmlhelp $(DOCDIR)\winhelp $(DOCDIR)\pdf
145
1fc25a89 146touchmanual:
6e8515a3 147 touch $(DOCSOURCEDIR)\ogl.tex
1fc25a89 148
6e8515a3
JS
149$(DOCDIR)\winhelp\ogl.hlp: $(DOCSOURCEDIR)\ogl.rtf $(DOCSOURCEDIR)\ogl.hpj
150 cd $(DOCSOURCEDIR)
1fc25a89
JS
151 -erase ogl.ph
152 hc ogl
e492150d 153 move ogl.hlp ogl.cnt $(DOCDIR)\winhelp
1fc25a89
JS
154 cd $(THISDIR)
155
6e8515a3
JS
156$(DOCSOURCEDIR)\ogl.rtf: $(DOCSOURCES)
157 cd $(DOCSOURCEDIR)
158 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\ogl.tex $(DOCSOURCEDIR)\ogl.rtf -twice -winhelp
1fc25a89
JS
159 cd $(THISDIR)
160
161$(DOCDIR)\pdf\ogl.rtf: $(DOCSOURCES)
6e8515a3 162 cd $(DOCSOURCEDIR)
1fc25a89 163 -copy *.bmp $(DOCDIR)\pdf
6e8515a3 164 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\ogl.tex $(DOCDIR)\pdf\ogl.rtf -twice -rtf
1fc25a89
JS
165 cd $(THISDIR)
166
167$(DOCDIR)\html\ogl\ogl.htm: $(DOCSOURCES)
6e8515a3 168 cd $(DOCSOURCEDIR)
1fc25a89
JS
169 -mkdir $(DOCDIR)\html\ogl
170 copy *.gif $(DOCDIR)\html\ogl
6e8515a3 171 -start $(WAITFLAG) tex2rtf $(DOCSOURCEDIR)\ogl.tex $(DOCDIR)\html\ogl\ogl.htm -twice -html
1fc25a89 172 -erase $(DOCDIR)\html\ogl\*.con
f6bcfd97 173 -erase *.con
1fc25a89
JS
174 -erase $(DOCDIR)\html\ogl\*.ref
175 cd $(THISDIR)
176
f6bcfd97 177$(DOCDIR)\htmlhelp\ogl.chm: $(DOCDIR)\html\ogl\ogl.htm $(DOCDIR)\html\ogl\ogl.hhp
1fc25a89
JS
178 cd $(DOCDIR)\html\ogl
179 -hhc ogl.hhp
f1d93f0b 180 -erase $(DOCDIR)\htmlhelp\ogl.chm
f6bcfd97 181 move ogl.chm $(DOCDIR)\htmlhelp\ogl.chm
1fc25a89
JS
182 cd $(THISDIR)
183
f6bcfd97
BP
184# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
185# files, renamed to htb.
186# This can then be used with e.g. helpview.
187# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
188$(DOCDIR)\htb\ogl.htb: $(DOCDIR)\html\ogl\ogl.htm
189 cd $(DOCDIR)\html\ogl
f1d93f0b
JS
190 -erase ogl.zip ogl.htb
191 zip ogl.zip *.htm *.gif *.hhp *.hhc *.hhk
f6bcfd97 192 -mkdir $(DOCDIR)\htb
f1d93f0b
JS
193 -erase $(DOCDIR)\htb\ogl.htb
194 -erase $(DOCDIR)\htb\ogl.htb
f6bcfd97
BP
195 move ogl.zip $(DOCDIR)\htb\ogl.htb
196 cd $(THISDIR)
1fc25a89 197
6e8515a3
JS
198$(DOCSOURCEDIR)\ogl.dvi: $(DOCSOURCES)
199 cd $(DOCSOURCEDIR)
1fc25a89
JS
200 -latex ogl
201 -latex ogl
202 -makeindx ogl
203 -bibtex ogl
204 -latex ogl
205 -latex ogl
206 cd $(THISDIR)
207
6e8515a3
JS
208$(WXDIR)\docs\ps\ogl.ps: $(DOCSOURCEDIR)\ogl.dvi
209 cd $(DOCSOURCEDIR)
1fc25a89
JS
210 -dvips32 -o ogl.ps ogl
211 move ogl.ps $(WXDIR)\docs\ps\ogl.ps
212 cd $(THISDIR)
213