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