]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/ogl/src/makefile.dos
fixed somebody's poorly done StreamSize-->GetSize transition
[wxWidgets.git] / utils / ogl / src / makefile.dos
... / ...
CommitLineData
1#
2# File: makefile.dos
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 object graphics library (DOS).
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)
16
17!include $(WXDIR)\src\makemsc.env
18
19OGLDIR = $(WXDIR)\utils\ogl
20THISDIR = $(OGLDIR)\src
21DOCDIR = $(OGLDIR)\docs
22WXLIB = $(WXDIR)\lib\wx.lib
23LIBS=$(WXLIB) libw llibcew commdlg shell ctl3dv2
24
25GRAPHICSLIB = $(WXDIR)\lib\ogl.lib
26INC = /I$(WXDIR)\include
27
28# Normally set OPTIONS =
29# to disable PROLOGIO-dependent code
30OPTIONS = -DPROLOGIO
31
32OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
33 composit.obj drawn.obj bitmap.obj mfutils.obj
34
35all: $(GRAPHICSLIB)
36
37wx:
38 cd $(WXDIR)\src\msw
39 nmake -f makefile.dos $(WXLIB) FINAL=$(FINAL)
40 cd $(THISDIR)
41
42$(GRAPHICSLIB): $(OBJECTS)
43 erase $(GRAPHICSLIB)
44 lib /PAGESIZE:128 @<<
45$(GRAPHICSLIB)
46y
47$(OBJECTS)
48nul
49;
50<<
51
52# NOTE: This causes a floating point stack error when optimized,
53# so DON'T optimize!
54
55basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
56 cl @<<
57$(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
58<<
59
60basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
61 cl @<<
62$(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
63<<
64
65canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
66 cl @<<
67$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
68<<
69
70ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
71 cl @<<
72$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
73<<
74
75lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
76 cl @<<
77$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
78<<
79
80misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
81 cl @<<
82$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
83<<
84
85divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
86 cl @<<
87$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
88<<
89
90constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
91 cl @<<
92$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
93<<
94
95composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
96 cl @<<
97$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
98<<
99
100drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
101 cl @<<
102$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
103<<
104
105bitmap.obj: bitmap.$(SRCSUFF) basic.h misc.h canvas.h bitmap.h
106 cl @<<
107$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
108<<
109
110mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
111 cl @<<
112$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
113<<
114
115# Making documents
116docs: hlp
117hlp: $(DOCDIR)/ogl.hlp
118hlp32: $(DOCDIR)/hlp32/ogl.hlp
119rtf: $(DOCDIR)/ogl.rtf
120
121$(DOCDIR)/ogl.hlp: $(DOCDIR)/ogl.rtf $(DOCDIR)/ogl.hpj
122 cd $(DOCDIR)
123 -erase ogl.ph
124 hc ogl
125 cd $(THISDIR)
126
127$(DOCDIR)/hlp32/ogl.hlp: $(DOCDIR)/hlp32/ogl.rtf $(DOCDIR)/hlp32/ogl.hpj
128 cd $(DOCDIR)/hlp32
129 -erase ogl.ph
130 start /w hcw /c /e ogl.hpj
131 cd $(THISDIR)
132
133$(DOCDIR)/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
134 cd $(DOCDIR)
135 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -winhelp
136 cd $(THISDIR)
137
138$(DOCDIR)/hlp32/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
139 cd $(DOCDIR)
140 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/hlp32/ogl.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini
141 cd $(THISDIR)
142
143wordrtf:
144 cd $(DOCDIR)
145 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf
146 cd $(THISDIR)
147
148clean:
149 -erase *.obj
150 -erase *.sbr
151 -erase *.exe
152 -erase *.res
153 -erase *.map
154 -erase *.pdb
155 -erase *.lib
156 -erase ..\lib\*.lib
157
158wxclean:
159 cd $(WXDIR)\src\msw
160 nmake -f makefile.dos clean
161 cd $(THISDIR)