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