]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/src/makefile.vc
Some OGl updates:
[wxWidgets.git] / utils / ogl / src / 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 OBJECTSDIR = $(WXDIR)\utils\ogl
18 THISDIR = $(WXDIR)\utils\ogl\src
19 #EXTRALIBS=$(WXDIR)\lib\ogl.lib $(WXDIR)\lib\mfutils.lib
20 #EXTRAINC=/I$(WXDIR)\utils\mfutils\src /I$(WXDIR)\utils\prologio\src
21 EXTRAFLAGS=/DPROLOGIO=1
22 DOCDIR=$(WXDIR)\docs
23 LOCALDOCDIR=$(WXDIR)\utils\ogl\docs
24
25 !include $(WXDIR)\src\makevc.env
26
27 PROGRAM=test
28
29 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\
30 $(D)\composit.obj $(D)\drawn.obj $(D)\bmpshape.obj $(D)\mfutils.obj
31
32 LIBTARGET=$(WXDIR)\lib\ogl$(LIBEXT).lib
33
34 all: $(D) $(LIBTARGET)
35
36 $(PROGRAM): $(PROGRAM).exe
37
38 $(D) :
39 mkdir $(D)
40
41 wx:
42 cd $(WXDIR)\src\msw
43 nmake -f makefile.vc FINAL=$(FINAL)
44 cd $(THISDIR)
45
46 wxclean:
47 cd $(WXDIR)\src\msw
48 nmake -f makefile.vc clean
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!
61 $(D)\basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
62 cl @<<
63 $(CPPFLAGS) /Od /c /Fo$@ /Tp $(*B).$(SRCSUFF)
64 <<
65
66 $(D)\basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
67 cl @<<
68 $(CPPFLAGS) /Od /c /Fo$@ /Tp $(*B).$(SRCSUFF)
69 <<
70
71 $(D)\canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
72 cl @<<
73 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
74 <<
75
76 $(D)\ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
77 cl @<<
78 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
79 <<
80
81 $(D)\lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
82 cl @<<
83 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
84 <<
85
86 $(D)\misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
87 cl @<<
88 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
89 <<
90
91 $(D)\divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
92 cl @<<
93 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
94 <<
95
96 $(D)\constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
97 cl @<<
98 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
99 <<
100
101 $(D)\composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
102 cl @<<
103 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
104 <<
105
106 $(D)\drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
107 cl @<<
108 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
109 <<
110
111 $(D)\bmpshape.obj: bmpshape.$(SRCSUFF) basic.h misc.h canvas.h bmpshape.h
112 cl @<<
113 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
114 <<
115
116 $(D)\mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
117 cl @<<
118 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
119 <<
120
121 clean:
122 -erase $(D)\*.obj
123 -erase *.sbr
124 -erase *.exe
125 -erase *.res
126 -erase *.map
127 -erase *.pdb
128 -erase $(LIBTARGET)
129
130 DOCSOURCES=$(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
135 html: $(DOCDIR)\html\ogl\ogl.htm
136 htmlhelp: $(DOCDIR)\html\ogl\ogl.chm
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
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
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