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 = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
29 composit.obj drawn.obj bitmap.obj 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 basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
64 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
67 canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
69 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
72 ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
74 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
77 lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
79 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
82 misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
84 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
87 divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
89 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
92 constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
94 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
97 composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
99 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
102 drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
104 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
107 bitmap.obj: bitmap.$(SRCSUFF) basic.h misc.h canvas.h bitmap.h
109 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
112 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 cp *.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