6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds GLCanvas class library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
16 GLDIR = $(WXDIR)\utils\glcanvas
17 THISDIR = $(GLDIR)\win
18 EXTRALIBS=$(WXDIR)\lib\glcanvas$(LIBEXT).lib
20 LOCALDOCDIR=$(WXDIR)\utils\glcanvas\docs
23 !include $(WXDIR)\src\makevc.env
25 LIBTARGET=$(WXDIR)\lib\glcanvas$(LIBEXT).lib
26 OBJECTS = $(D)\glcanvas.obj
28 all: $(D) $(LIBTARGET)
33 $(LIBTARGET): $(OBJECTS)
41 $(D)\glcanvas.obj: glcanvas.h glcanvas.$(SRCSUFF) $(DUMMYOBJ)
43 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
60 DOCSOURCES=$(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\classes.tex
62 html: $(DOCDIR)\html\glcanvas\glcanvas.htm
63 hlp: $(DOCDIR)\winhelp\glcanvas.hlp
64 ps: $(WXDIR)\docs\ps\glcanvas.ps
66 $(DOCDIR)\winhelp\glcanvas.hlp: $(LOCALDOCDIR)\glcanvas.rtf $(LOCALDOCDIR)\glcanvas.hpj
70 move glcanvas.hlp $(DOCDIR)\winhelp\glcanvas.hlp
71 move glcanvas.cnt $(DOCDIR)\winhelp\glcanvas.cnt
74 $(LOCALDOCDIR)\glcanvas.rtf: $(DOCSOURCES)
76 -start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\glcanvas.rtf -twice -winhelp
79 $(DOCDIR)\html\glcanvas\glcanvas.htm: $(DOCSOURCES)
81 -mkdir $(DOCDIR)\html\glcanvas
82 -start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(DOCDIR)\html\glcanvas\glcanvas.htm -twice -html
83 -erase $(DOCDIR)\html\glcanvas\*.con
84 -erase $(DOCDIR)\html\glcanvas\*.ref
87 $(LOCALDOCDIR)\manual.dvi: $(DOCSOURCES)
97 $(WXDIR)\docs\ps\glcanvas.ps: $(LOCALDOCDIR)\manual.dvi
99 -dvips32 -o glcanvas.ps manual
100 move glcanvas.ps $(WXDIR)\docs\ps\glcanvas.ps