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