6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds OGL classes library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
15 # Set WXDIR for your system
17 OGLDIR = $(WXDIR)\src\ogl
18 THISDIR = $(WXDIR)\src\ogl
19 EXTRAFLAGS=/DPROLOGIO=1
21 LOCALDOCDIR=$(WXDIR)\docs\latex\ogl
23 !include $(WXDIR)\src\makevc.env
27 OBJECTS = $(D)\basic.obj $(D)\basic2.obj $(D)\canvas.obj $(D)\ogldiag.obj $(D)\lines.obj $(D)\misc.obj $(D)\divided.obj $(D)\constrnt.obj\
28 $(D)\composit.obj $(D)\drawn.obj $(D)\bmpshape.obj $(D)\mfutils.obj
30 LIBTARGET=$(WXDIR)\lib\ogl$(LIBEXT).lib
32 all: $(D) $(LIBTARGET)
34 $(PROGRAM): $(PROGRAM).exe
41 nmake -f makefile.vc FINAL=$(FINAL)
46 nmake -f makefile.vc clean
49 $(LIBTARGET): $(OBJECTS)
57 # NOTE: This causes a floating point stack error when optimized,
59 $(D)\basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
61 $(CPPFLAGS) /Od /c /Fo$@ /Tp $(*B).$(SRCSUFF)
64 $(D)\basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
66 $(CPPFLAGS) /Od /c /Fo$@ /Tp $(*B).$(SRCSUFF)
69 $(D)\canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
71 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
74 $(D)\ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
76 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
79 $(D)\lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
81 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
84 $(D)\misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
86 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
89 $(D)\divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
91 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
94 $(D)\constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
96 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
99 $(D)\composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
101 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
104 $(D)\drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
106 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
109 $(D)\bmpshape.obj: bmpshape.$(SRCSUFF) basic.h misc.h canvas.h bmpshape.h
111 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
114 $(D)\mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
116 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
128 DOCSOURCES=$(LOCALDOCDIR)\ogl.tex \
129 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
130 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
131 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
133 html: $(DOCDIR)\html\ogl\ogl.htm
134 htmlhelp: $(DOCDIR)\html\ogl\ogl.chm
135 hlp: $(DOCDIR)\winhelp\ogl.hlp
136 pdfrtf: $(DOCDIR)\pdf\ogl.rtf
137 ps: $(DOCDIR)\ps\ogl.ps
140 touch $(LOCALDOCDIR)\ogl.tex
143 $(DOCDIR)\winhelp\ogl.hlp: $(LOCALDOCDIR)\ogl.rtf $(LOCALDOCDIR)\ogl.hpj
147 move ogl.hlp $(DOCDIR)\winhelp\ogl.hlp
148 move ogl.cnt $(DOCDIR)\winhelp\ogl.cnt
151 $(LOCALDOCDIR)\ogl.rtf: $(DOCSOURCES)
153 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\ogl.tex $(LOCALDOCDIR)\ogl.rtf -twice -winhelp
156 $(DOCDIR)\pdf\ogl.rtf: $(DOCSOURCES)
158 -copy *.bmp $(DOCDIR)\pdf
159 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\pdf\ogl.rtf -twice -rtf
162 $(DOCDIR)\html\ogl\ogl.htm: $(DOCSOURCES)
164 -mkdir $(DOCDIR)\html\ogl
165 copy *.gif $(DOCDIR)\html\ogl
166 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\html\ogl\ogl.htm -twice -html
167 -erase $(DOCDIR)\html\ogl\*.con
169 -erase $(DOCDIR)\html\ogl\*.ref
173 $(DOCDIR)\html\ogl\ogl.chm: $(DOCDIR)\html\ogl\ogl.htm $(DOCDIR)\html\ogl\ogl.hhp
174 cd $(DOCDIR)\html\ogl
179 $(LOCALDOCDIR)\ogl.dvi: $(DOCSOURCES)
189 $(WXDIR)\docs\ps\ogl.ps: $(LOCALDOCDIR)\ogl.dvi
191 -dvips32 -o ogl.ps ogl
192 move ogl.ps $(WXDIR)\docs\ps\ogl.ps