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 # Set this to where your libxml is
23 EXTRAFLAGS=-Id:\libxml\libxml2-2.1.1
25 # Unfortunately we need this _before_ we include makelib.vc
33 LIBTARGET=$(WXDIR)\lib\wxxml$(LIBEXT).lib
36 OBJECTS=$(D)\xml.obj $(D)\xmlbin.obj $(D)\xmlbinz.obj $(D)\xmlpars.obj $(D)\xmlres.obj $(D)\xmlrsall.obj \
37 $(D)\xh_bttn.obj $(D)\xh_chckb.obj $(D)\xh_chckl.obj $(D)\xh_choic.obj $(D)\xh_combo.obj $(D)\xh_dlg.obj \
38 $(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 \
39 $(D)\xh_radbx.obj $(D)\xh_sizer.obj $(D)\xh_slidr.obj $(D)\xh_spin.obj $(D)\xh_stbmp.obj $(D)\xh_sttxt.obj \
40 $(D)\xh_text.obj $(D)\xh_listb.obj $(D)\xh_toolb.obj \
41 $(D)\xh_bmpbt.obj $(D)\xh_cald.obj $(D)\xh_listc.obj $(D)\xh_scrol.obj \
42 $(D)\xh_stbox.obj $(D)\xh_tree.obj $(D)\xh_stlin.obj $(D)\xh_bmp.obj \
45 !include $(WXDIR)\src\makelib.vc
47 DOCSOURCES=$(LOCALDOCDIR)\xml.tex \
48 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
49 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
50 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
52 html: $(DOCDIR)\html\xml\xml.htm
53 htmlhelp: $(DOCDIR)\htmlhelp\xml.chm
54 htb: $(DOCDIR)\htb\xml.htb
55 hlp: $(DOCDIR)\winhelp\xml.hlp
56 pdfrtf: $(DOCDIR)\pdf\xml.rtf
57 ps: $(DOCDIR)\ps\xml.ps
60 touch $(LOCALDOCDIR)\xml.tex
63 $(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj
67 move xml.hlp $(DOCDIR)\winhelp\xml.hlp
68 move xml.cnt $(DOCDIR)\winhelp\xml.cnt
71 $(LOCALDOCDIR)\xml.rtf: $(DOCSOURCES)
73 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(LOCALDOCDIR)\xml.rtf -twice -winhelp
76 $(DOCDIR)\pdf\xml.rtf: $(DOCSOURCES)
78 -copy *.bmp $(DOCDIR)\pdf
79 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\pdf\xml.rtf -twice -rtf
82 $(DOCDIR)\html\xml\xml.htm: $(DOCSOURCES)
84 -mkdir $(DOCDIR)\html\xml
85 copy *.gif $(DOCDIR)\html\xml
86 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\html\xml\xml.htm -twice -html
87 -erase $(DOCDIR)\html\xml\*.con
89 -erase $(DOCDIR)\html\xml\*.ref
92 $(DOCDIR)\htmlhelp\xml.chm: $(DOCDIR)\html\xml\xml.htm $(DOCDIR)\html\xml\xml.hhp
95 move xml.chm $(DOCDIR)\htmlhelp\xml.chm
98 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
99 # files, renamed to htb.
100 # This can then be used with e.g. helpview.
101 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
102 $(DOCDIR)\htb\xml.htb: $(DOCDIR)\html\xml\xml.htm
103 cd $(DOCDIR)\html\xml
104 -erase xml.zip xml.htb
105 zip xml.zip *.htm *.gif *.hhp *.hhc *.hhk
107 move xml.zip $(DOCDIR)\htb\xml.htb
110 $(LOCALDOCDIR)\xml.dvi: $(DOCSOURCES)
120 $(WXDIR)\docs\ps\xml.ps: $(LOCALDOCDIR)\xml.dvi
122 -dvips32 -o xml.ps xml
123 move xml.ps $(WXDIR)\docs\ps\xml.ps