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
14 # Set WXDIR for your system
16 OBJECTSDIR = $(WXDIR)\utils\ogl
17 THISDIR = $(WXDIR)\utils\ogl\src
18 EXTRALIBS=$(WXDIR)\lib\ogl.lib $(WXDIR)\lib\mfutils.lib
19 EXTRAINC=/I$(WXDIR)\utils\mfutils\src /I$(WXDIR)\utils\prologio\src
20 EXTRAFLAGS=/DPROLOGIO=1
22 LOCALDOCDIR=$(WXDIR)\utils\ogl\docs
24 !include $(WXDIR)\src\ntwxwin.mak
28 OBJECTS = $(THISDIR)\basic.obj $(THISDIR)\basic2.obj $(THISDIR)\canvas.obj $(THISDIR)\ogldiag.obj $(THISDIR)\lines.obj $(THISDIR)\misc.obj $(THISDIR)\divided.obj $(THISDIR)\constrnt.obj\
29 $(THISDIR)\composit.obj $(THISDIR)\drawn.obj $(THISDIR)\bmpshape.obj $(THISDIR)\mfutils.obj
31 LIBTARGET=$(WXDIR)\lib\ogl.lib
35 $(PROGRAM): $(PROGRAM).exe
39 nmake -f makefile.nt FINAL=$(FINAL)
44 nmake -f makefile.nt clean
47 $(LIBTARGET): $(OBJECTS)
55 # NOTE: This causes a floating point stack error when optimized,
57 basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
59 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
62 $(THISDIR)\basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
64 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
67 $(THISDIR)\canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
69 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
72 $(THISDIR)\ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
74 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
77 $(THISDIR)\lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
79 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
82 $(THISDIR)\misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
84 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
87 $(THISDIR)\divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
89 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
92 $(THISDIR)\constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
94 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
97 $(THISDIR)\composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
99 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
102 $(THISDIR)\drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
104 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
107 $(THISDIR)\bmpshape.obj: bmpshape.$(SRCSUFF) basic.h misc.h canvas.h bmpshape.h
109 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
112 $(THISDIR)\mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
114 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
126 DOCSOURCES=$(LOCALDOCDIR)\ogl.tex \
127 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
128 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
129 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
131 html: $(DOCDIR)\html\ogl\ogl.htm
132 hlp: $(DOCDIR)\winhelp\ogl.hlp
133 pdfrtf: $(DOCDIR)\pdf\ogl.rtf
134 ps: $(DOCDIR)\ps\ogl.ps
136 $(DOCDIR)\winhelp\ogl.hlp: $(LOCALDOCDIR)\ogl.rtf $(LOCALDOCDIR)\ogl.hpj
140 move ogl.hlp $(DOCDIR)\winhelp\ogl.hlp
141 move ogl.cnt $(DOCDIR)\winhelp\ogl.cnt
144 $(LOCALDOCDIR)\ogl.rtf: $(DOCSOURCES)
146 -start /w tex2rtf $(LOCALDOCDIR)\ogl.tex $(LOCALDOCDIR)\ogl.rtf -twice -winhelp
149 $(DOCDIR)\pdf\ogl.rtf: $(DOCSOURCES)
151 -copy *.bmp $(DOCDIR)\pdf
152 -start /w tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\pdf\ogl.rtf -twice -rtf
155 $(DOCDIR)\html\ogl\ogl.htm: $(DOCSOURCES)
157 -mkdir $(DOCDIR)\html\ogl
158 copy *.gif $(DOCDIR)\html\ogl
159 -start /w tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\html\ogl\ogl.htm -twice -html
160 -erase $(DOCDIR)\html\ogl\*.con
161 -erase $(DOCDIR)\html\ogl\*.ref
164 $(LOCALDOCDIR)\ogl.dvi: $(DOCSOURCES)
174 $(WXDIR)\docs\ps\ogl.ps: $(LOCALDOCDIR)\ogl.dvi
176 -dvips32 -o ogl.ps ogl
177 move ogl.ps $(WXDIR)\docs\ps\ogl.ps