6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile: Builds object graphics library (DOS).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
17 !include $(WXDIR)\src\makemsc.env
19 OGLDIR = $(WXDIR)\utils\ogl
20 THISDIR = $(OGLDIR)\src
21 DOCDIR = $(OGLDIR)\docs
22 WXLIB = $(WXDIR)\lib\wx.lib
23 LIBS=$(WXLIB) libw llibcew commdlg shell ctl3dv2
25 GRAPHICSLIB = $(WXDIR)\lib\ogl.lib
26 INC = /I$(WXDIR)\include
28 # Normally set OPTIONS =
29 # to disable PROLOGIO-dependent code
32 OBJECTS = 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
39 nmake -f makefile.dos $(WXLIB) FINAL=$(FINAL)
42 $(GRAPHICSLIB): $(OBJECTS)
52 # NOTE: This causes a floating point stack error when optimized,
55 basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
57 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
60 basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
62 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
65 canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
67 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
70 ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
72 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
75 lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
77 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
80 misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
82 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
85 divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
87 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
90 constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
92 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
95 composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
97 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
100 drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
102 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
105 bitmap.obj: bitmap.$(SRCSUFF) basic.h misc.h canvas.h bitmap.h
107 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
110 mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
112 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
117 hlp: $(DOCDIR)/ogl.hlp
118 hlp32: $(DOCDIR)/hlp32/ogl.hlp
119 rtf: $(DOCDIR)/ogl.rtf
121 $(DOCDIR)/ogl.hlp: $(DOCDIR)/ogl.rtf $(DOCDIR)/ogl.hpj
127 $(DOCDIR)/hlp32/ogl.hlp: $(DOCDIR)/hlp32/ogl.rtf $(DOCDIR)/hlp32/ogl.hpj
130 start /w hcw /c /e ogl.hpj
133 $(DOCDIR)/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
135 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -winhelp
138 $(DOCDIR)/hlp32/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
140 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/hlp32/ogl.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini
145 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf
160 nmake -f makefile.dos clean