6 # Copyright: (c) 2001, Julian Smart
10 # Makefile : Builds Plot class library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
15 # Set WXDIR for your system
17 GIZMOSDIR = $(WXDIR)\contrib\src\canvas
18 GIZMOSINC = $(WXDIR)\contrib\include\wx\canvas
19 THISDIR = $(WXDIR)\contrib\src\canvas
20 DOCDIR=$(WXDIR)\contrib\docs
21 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\canvas
23 !include $(WXDIR)\src\makevc.env
25 OBJECTS = $(D)\bbox.obj $(D)\canvas.obj $(D)\liner.obj $(D)\polygon.obj
27 LIBTARGET=$(WXDIR)\lib\canvas$(LIBEXT).lib
29 all: $(D) $(LIBTARGET)
36 nmake -f makefile.vc FINAL=$(FINAL)
41 nmake -f makefile.vc clean
44 $(LIBTARGET): $(OBJECTS)
52 $(D)\bbox.obj: bbox.$(SRCSUFF)
54 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
57 $(D)\canvas.obj: canvas.$(SRCSUFF)
59 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
62 $(D)\liner.obj: liner.$(SRCSUFF)
64 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
67 $(D)\polygon.obj: polygon.$(SRCSUFF)
69 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
81 DOCSOURCES=$(LOCALDOCDIR)\canvas.tex \
82 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
83 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
84 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
86 html: $(DOCDIR)\html\canvas\canvas.htm
87 htmlhelp: $(DOCDIR)\htmlhelp\canvas.chm
88 htb: $(DOCDIR)\htb\canvas.htb
89 hlp: $(DOCDIR)\winhelp\canvas.hlp
90 pdfrtf: $(DOCDIR)\pdf\canvas.rtf
91 ps: $(DOCDIR)\ps\canvas.ps
94 touch $(LOCALDOCDIR)\canvas.tex
97 $(DOCDIR)\winhelp\canvas.hlp: $(LOCALDOCDIR)\canvas.rtf $(LOCALDOCDIR)\canvas.hpj
101 move canvas.hlp $(DOCDIR)\winhelp\canvas.hlp
102 move canvas.cnt $(DOCDIR)\winhelp\canvas.cnt
105 $(LOCALDOCDIR)\canvas.rtf: $(DOCSOURCES)
107 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\canvas.tex $(LOCALDOCDIR)\canvas.rtf -twice -winhelp
110 $(DOCDIR)\pdf\canvas.rtf: $(DOCSOURCES)
112 -copy *.bmp $(DOCDIR)\pdf
113 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\canvas.tex $(DOCDIR)\pdf\canvas.rtf -twice -rtf
116 $(DOCDIR)\html\canvas\canvas.htm: $(DOCSOURCES)
118 -mkdir $(DOCDIR)\html\canvas
119 copy *.gif $(DOCDIR)\html\canvas
120 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\canvas.tex $(DOCDIR)\html\canvas\canvas.htm -twice -html
121 -erase $(DOCDIR)\html\canvas\*.con
123 -erase $(DOCDIR)\html\canvas\*.ref
126 $(DOCDIR)\htmlhelp\canvas.chm: $(DOCDIR)\html\canvas\canvas.htm $(DOCDIR)\html\canvas\canvas.hhp
127 cd $(DOCDIR)\html\canvas
129 move canvas.chm $(DOCDIR)\htmlhelp\canvas.chm
132 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
133 # files, renamed to htb.
134 # This can then be used with e.g. helpview.
135 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
136 $(DOCDIR)\htb\canvas.htb: $(DOCDIR)\html\canvas\canvas.htm
137 cd $(DOCDIR)\html\canvas
138 -erase canvas.zip canvas.htb
139 zip canvas.zip *.htm *.gif *.hhp *.hhc *.hhk
141 move canvas.zip $(DOCDIR)\htb\canvas.htb
144 $(LOCALDOCDIR)\canvas.dvi: $(DOCSOURCES)
154 $(WXDIR)\docs\ps\canvas.ps: $(LOCALDOCDIR)\canvas.dvi
156 -dvips32 -o canvas.ps canvas
157 move canvas.ps $(WXDIR)\docs\ps\canvas.ps