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.lib
20 LOCALDOCDIR=$(WXDIR)\utils\glcanvas\docs
22 !include $(WXDIR)\src\ntwxwin.mak
26 OBJECTS = glcanvas.obj
27 LIBTARGET=$(WXDIR)\lib\glcanvas.lib
33 nmake -f makefile.nt FINAL=$(FINAL)
38 nmake -f makefile.nt clean
41 $(LIBTARGET): $(OBJECTS)
49 glcanvas.obj: glcanvas.h glcanvas.$(SRCSUFF) $(DUMMYOBJ)
51 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
63 DOCSOURCES=$(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\classes.tex
65 html: $(DOCDIR)\html\glcanvas\glcanvas.htm
66 hlp: $(DOCDIR)\winhelp\glcanvas.hlp
67 ps: $(WXDIR)\docs\ps\glcanvas.ps
69 $(DOCDIR)\winhelp\glcanvas.hlp: $(LOCALDOCDIR)\glcanvas.rtf $(LOCALDOCDIR)\glcanvas.hpj
73 move glcanvas.hlp $(DOCDIR)\winhelp\glcanvas.hlp
74 move glcanvas.cnt $(DOCDIR)\winhelp\glcanvas.cnt
77 $(LOCALDOCDIR)\glcanvas.rtf: $(DOCSOURCES)
79 -start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(LOCALDOCDIR)\glcanvas.rtf -twice -winhelp
82 $(DOCDIR)\html\glcanvas\glcanvas.htm: $(DOCSOURCES)
84 -mkdir $(DOCDIR)\html\glcanvas
85 -start /w tex2rtf $(LOCALDOCDIR)\manual.tex $(DOCDIR)\html\glcanvas\glcanvas.htm -twice -html
86 -erase $(DOCDIR)\html\glcanvas\*.con
87 -erase $(DOCDIR)\html\glcanvas\*.ref
90 $(LOCALDOCDIR)\manual.dvi: $(DOCSOURCES)
100 $(WXDIR)\docs\ps\glcanvas.ps: $(LOCALDOCDIR)\manual.dvi
102 -dvips32 -o glcanvas.ps manual
103 move glcanvas.ps $(WXDIR)\docs\ps\glcanvas.ps