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)\contrib\src\ogl
21 DOCDIR = $(WXDIR)\contrib\docs\latex\ogl
23 GRAPHICSLIB = $(WXDIR)\lib\ogl.lib
24 INC = /I$(WXDIR)\include /I$(WXDIR)\contrib\include
26 # Normally set OPTIONS =
27 # to disable PROLOGIO-dependent code
30 OBJECTS = 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
37 nmake -f makefile.dos $(WXLIB) FINAL=$(FINAL)
40 $(GRAPHICSLIB): $(OBJECTS)
50 # NOTE: This causes a floating point stack error when optimized,
53 basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
55 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
58 basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
60 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
63 canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
65 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
68 ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
70 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
73 lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
75 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
78 misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
80 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
83 divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
85 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
88 constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
90 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
93 composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
95 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
98 drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
100 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
103 bitmap.obj: bitmap.$(SRCSUFF) basic.h misc.h canvas.h bitmap.h
105 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
108 mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
110 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
115 hlp: $(DOCDIR)/ogl.hlp
116 hlp32: $(DOCDIR)/hlp32/ogl.hlp
117 rtf: $(DOCDIR)/ogl.rtf
119 $(DOCDIR)/ogl.hlp: $(DOCDIR)/ogl.rtf $(DOCDIR)/ogl.hpj
125 $(DOCDIR)/hlp32/ogl.hlp: $(DOCDIR)/hlp32/ogl.rtf $(DOCDIR)/hlp32/ogl.hpj
128 start /w hcw /c /e ogl.hpj
131 $(DOCDIR)/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
133 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -winhelp
136 $(DOCDIR)/hlp32/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
138 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/hlp32/ogl.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini
143 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf
158 nmake -f makefile.dos clean