]> git.saurik.com Git - wxWidgets.git/blame - utils/ogl/src/makefile.vc
some fixes and code regeneration
[wxWidgets.git] / utils / ogl / src / makefile.vc
CommitLineData
a097c93d 1
48d1144b 2# File: makefile.vc
0fc1a713
JS
3# Author: Julian Smart
4# Created: 1993
a097c93d 5# Updated:
0fc1a713
JS
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
a097c93d 14
0fc1a713
JS
15# Set WXDIR for your system
16WXDIR = $(WXWIN)
17OBJECTSDIR = $(WXDIR)\utils\ogl
18THISDIR = $(WXDIR)\utils\ogl\src
a097c93d
RD
19#EXTRALIBS=$(WXDIR)\lib\ogl.lib $(WXDIR)\lib\mfutils.lib
20#EXTRAINC=/I$(WXDIR)\utils\mfutils\src /I$(WXDIR)\utils\prologio\src
0fc1a713
JS
21EXTRAFLAGS=/DPROLOGIO=1
22DOCDIR=$(WXDIR)\docs
23LOCALDOCDIR=$(WXDIR)\utils\ogl\docs
24
48d1144b 25!include $(WXDIR)\src\makevc.env
0fc1a713
JS
26
27PROGRAM=test
0fc1a713 28
a097c93d
RD
29OBJECTS = $(D)\basic.obj $(D)\basic2.obj $(D)\canvas.obj $(D)\ogldiag.obj $(D)\lines.obj $(D)\misc.obj $(D)\divided.obj $(D)\constrnt.obj\
30 $(D)\composit.obj $(D)\drawn.obj $(D)\bmpshape.obj $(D)\mfutils.obj
0fc1a713 31
a097c93d
RD
32LIBTARGET=$(WXDIR)\lib\ogl$(LIBEXT).lib
33
34all: $(D) $(LIBTARGET)
0fc1a713
JS
35
36$(PROGRAM): $(PROGRAM).exe
37
a097c93d
RD
38$(D) :
39 mkdir $(D)
40
0fc1a713
JS
41wx:
42 cd $(WXDIR)\src\msw
48d1144b 43 nmake -f makefile.vc FINAL=$(FINAL)
0fc1a713
JS
44 cd $(THISDIR)
45
46wxclean:
47 cd $(WXDIR)\src\msw
48d1144b 48 nmake -f makefile.vc clean
0fc1a713
JS
49 cd $(THISDIR)
50
51$(LIBTARGET): $(OBJECTS)
52 -erase $(LIBTARGET)
53 $(implib) @<<
54-out:$(LIBTARGET)
55-machine:$(CPU)
56$(OBJECTS)
57<<
58
59# NOTE: This causes a floating point stack error when optimized,
60# so DON'T optimize!
a097c93d 61$(D)\basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
0fc1a713 62 cl @<<
a097c93d 63$(CPPFLAGS) /Od /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
64<<
65
a097c93d 66$(D)\basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
0fc1a713 67 cl @<<
a097c93d 68$(CPPFLAGS) /Od /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
69<<
70
a097c93d 71$(D)\canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
0fc1a713 72 cl @<<
a097c93d 73$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
74<<
75
a097c93d 76$(D)\ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
0fc1a713 77 cl @<<
a097c93d 78$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
79<<
80
a097c93d 81$(D)\lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
0fc1a713 82 cl @<<
a097c93d 83$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
84<<
85
a097c93d 86$(D)\misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
0fc1a713 87 cl @<<
a097c93d 88$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
89<<
90
a097c93d 91$(D)\divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
0fc1a713 92 cl @<<
a097c93d 93$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
94<<
95
a097c93d 96$(D)\constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
0fc1a713 97 cl @<<
a097c93d 98$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
99<<
100
a097c93d 101$(D)\composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
0fc1a713 102 cl @<<
a097c93d 103$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
104<<
105
a097c93d 106$(D)\drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
0fc1a713 107 cl @<<
a097c93d 108$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
109<<
110
a097c93d 111$(D)\bmpshape.obj: bmpshape.$(SRCSUFF) basic.h misc.h canvas.h bmpshape.h
0fc1a713 112 cl @<<
a097c93d 113$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
114<<
115
a097c93d 116$(D)\mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
0fc1a713 117 cl @<<
a097c93d 118$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
0fc1a713
JS
119<<
120
121clean:
a097c93d 122 -erase $(D)\*.obj
0fc1a713
JS
123 -erase *.sbr
124 -erase *.exe
125 -erase *.res
126 -erase *.map
127 -erase *.pdb
128 -erase $(LIBTARGET)
129
130DOCSOURCES=$(LOCALDOCDIR)\ogl.tex \
131 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
132 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
133 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
134
135html: $(DOCDIR)\html\ogl\ogl.htm
a097c93d 136htmlhelp: $(DOCDIR)\html\ogl\ogl.chm
0fc1a713
JS
137hlp: $(DOCDIR)\winhelp\ogl.hlp
138pdfrtf: $(DOCDIR)\pdf\ogl.rtf
139ps: $(DOCDIR)\ps\ogl.ps
140
a097c93d
RD
141touchmanual:
142 touch $(LOCALDOCDIR)\ogl.tex
143
144
0fc1a713
JS
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)
a097c93d 155 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\ogl.tex $(LOCALDOCDIR)\ogl.rtf -twice -winhelp
0fc1a713
JS
156 cd $(THISDIR)
157
158$(DOCDIR)\pdf\ogl.rtf: $(DOCSOURCES)
159 cd $(LOCALDOCDIR)
160 -copy *.bmp $(DOCDIR)\pdf
a097c93d 161 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\pdf\ogl.rtf -twice -rtf
0fc1a713
JS
162 cd $(THISDIR)
163
164$(DOCDIR)\html\ogl\ogl.htm: $(DOCSOURCES)
165 cd $(LOCALDOCDIR)
166 -mkdir $(DOCDIR)\html\ogl
6f5f3ca0 167 copy *.gif $(DOCDIR)\html\ogl
a097c93d 168 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\html\ogl\ogl.htm -twice -html
0fc1a713 169 -erase $(DOCDIR)\html\ogl\*.con
a097c93d 170 -erase *.con
0fc1a713
JS
171 -erase $(DOCDIR)\html\ogl\*.ref
172 cd $(THISDIR)
173
a097c93d
RD
174
175$(DOCDIR)\html\ogl\ogl.chm: $(DOCDIR)\html\ogl\ogl.htm $(DOCDIR)\html\ogl\ogl.hhp
176 cd $(DOCDIR)\html\ogl
177 -hhc ogl.hhp
178 cd $(THISDIR)
179
180
0fc1a713
JS
181$(LOCALDOCDIR)\ogl.dvi: $(DOCSOURCES)
182 cd $(LOCALDOCDIR)
183 -latex ogl
184 -latex ogl
185 -makeindx ogl
186 -bibtex ogl
187 -latex ogl
188 -latex ogl
189 cd $(THISDIR)
190
191$(WXDIR)\docs\ps\ogl.ps: $(LOCALDOCDIR)\ogl.dvi
192 cd $(LOCALDOCDIR)
193 -dvips32 -o ogl.ps ogl
194 move ogl.ps $(WXDIR)\docs\ps\ogl.ps
195 cd $(THISDIR)
196
197