6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds wxXML 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 wxXMLDIR = $(WXDIR)\contrib\src\xml
17 wxXMLINC = $(WXDIR)\contrib\include\wx\xml
18 THISDIR = $(WXDIR)\contrib\src\xml
19 DOCDIR=$(WXDIR)\contrib\docs
20 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\xml
22 # Do not specify the 'libxml' directory on
23 # this -I line, as the #includes use
24 # <libxml/xxxx.h>. If your libxml is installed
25 # in "d:\libxml\libxml2-2.1.1\libxml" you would use:
26 # wxLIBXMLDIR=-Id:\libxml\libxml2-2.1.1
29 !if "$(wxLIBXMLDIR)" == ""
31 !message SETUP REQUIRED
33 !message You must set the wxLIBXMLDIR variable in makefile.vc before compiling
35 !message If you do not have the libxml library, you will need to obtain & install
36 !message it before compiling the wxXML code. You can obtain libxml from:
37 !message http://www.xmlsoft.org
42 # Set this to where your libxml directory is
43 EXTRAFLAGS=$(wxLIBXMLDIR)
45 # Unfortunately we need this _before_ we include makelib.vc
53 LIBTARGET=$(WXDIR)\lib\wxxml$(LIBEXT).lib
56 OBJECTS=$(D)\xml.obj $(D)\xmlbin.obj $(D)\xmlbinz.obj $(D)\xmlpars.obj $(D)\xmlres.obj $(D)\xmlrsall.obj \
57 $(D)\xh_bttn.obj $(D)\xh_chckb.obj $(D)\xh_chckl.obj $(D)\xh_choic.obj $(D)\xh_combo.obj $(D)\xh_dlg.obj \
58 $(D)\xh_frame.obj $(D)\xh_gauge.obj $(D)\xh_html.obj $(D)\xh_menu.obj $(D)\xh_notbk.obj $(D)\xh_panel.obj $(D)\xh_radbt.obj \
59 $(D)\xh_radbx.obj $(D)\xh_sizer.obj $(D)\xh_slidr.obj $(D)\xh_spin.obj $(D)\xh_stbmp.obj $(D)\xh_sttxt.obj \
60 $(D)\xh_text.obj $(D)\xh_listb.obj $(D)\xh_toolb.obj \
61 $(D)\xh_bmpbt.obj $(D)\xh_cald.obj $(D)\xh_listc.obj $(D)\xh_scrol.obj \
62 $(D)\xh_stbox.obj $(D)\xh_tree.obj $(D)\xh_stlin.obj $(D)\xh_bmp.obj \
65 !include $(WXDIR)\src\makelib.vc
67 DOCSOURCES=$(LOCALDOCDIR)\xml.tex \
68 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
69 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
70 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
72 html: $(DOCDIR)\html\xml\xml.htm
73 htmlhelp: $(DOCDIR)\htmlhelp\xml.chm
74 htb: $(DOCDIR)\htb\xml.htb
75 hlp: $(DOCDIR)\winhelp\xml.hlp
76 pdfrtf: $(DOCDIR)\pdf\xml.rtf
77 ps: $(DOCDIR)\ps\xml.ps
80 touch $(LOCALDOCDIR)\xml.tex
83 $(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj
87 move xml.hlp $(DOCDIR)\winhelp\xml.hlp
88 move xml.cnt $(DOCDIR)\winhelp\xml.cnt
91 $(LOCALDOCDIR)\xml.rtf: $(DOCSOURCES)
93 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(LOCALDOCDIR)\xml.rtf -twice -winhelp
96 $(DOCDIR)\pdf\xml.rtf: $(DOCSOURCES)
98 -copy *.bmp $(DOCDIR)\pdf
99 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\pdf\xml.rtf -twice -rtf
102 $(DOCDIR)\html\xml\xml.htm: $(DOCSOURCES)
104 -mkdir $(DOCDIR)\html\xml
105 copy *.gif $(DOCDIR)\html\xml
106 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\html\xml\xml.htm -twice -html
107 -erase $(DOCDIR)\html\xml\*.con
109 -erase $(DOCDIR)\html\xml\*.ref
112 $(DOCDIR)\htmlhelp\xml.chm: $(DOCDIR)\html\xml\xml.htm $(DOCDIR)\html\xml\xml.hhp
113 cd $(DOCDIR)\html\xml
115 move xml.chm $(DOCDIR)\htmlhelp\xml.chm
118 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
119 # files, renamed to htb.
120 # This can then be used with e.g. helpview.
121 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
122 $(DOCDIR)\htb\xml.htb: $(DOCDIR)\html\xml\xml.htm
123 cd $(DOCDIR)\html\xml
124 -erase xml.zip xml.htb
125 zip xml.zip *.htm *.gif *.hhp *.hhc *.hhk
127 move xml.zip $(DOCDIR)\htb\xml.htb
130 $(LOCALDOCDIR)\xml.dvi: $(DOCSOURCES)
140 $(WXDIR)\docs\ps\xml.ps: $(LOCALDOCDIR)\xml.dvi
142 -dvips32 -o xml.ps xml
143 move xml.ps $(WXDIR)\docs\ps\xml.ps