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\xrc
17 wxXMLINC = $(WXDIR)\contrib\include\wx\xml
18 THISDIR = $(WXDIR)\contrib\src\xrc
19 DOCDIR=$(WXDIR)\contrib\docs
20 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\xml
24 EXPAT_DIR=$(THISDIR)\expat
25 E1=$(EXPAT_DIR)\xmlparse
26 E2=$(EXPAT_DIR)\xmltok
28 EXPAT_INCS=-I$(THISDIR)\expat\xmlparse -I$(THISDIR)\expat\xmltok
29 EXPAT_OBJS=$(D)\xmlparse.obj $(D)\xmlrole.obj $(D)\xmltok.obj
31 # Set this to where your libxml directory is
32 EXTRAFLAGS=$(EXPAT_INCS)
34 # Unfortunately we need this _before_ we include makelib.vc
42 LIBTARGET=$(WXDIR)\lib\wxxrc$(LIBEXT).lib
45 OBJECTS=$(EXPAT_OBJS) \
46 $(D)\xml.obj $(D)\xmlbin.obj $(D)\xmlbinz.obj $(D)\xmlres.obj \
47 $(D)\xmlrsall.obj $(D)\xh_bttn.obj $(D)\xh_chckb.obj $(D)\xh_chckl.obj \
48 $(D)\xh_choic.obj $(D)\xh_combo.obj $(D)\xh_dlg.obj \
49 $(D)\xh_frame.obj $(D)\xh_gauge.obj $(D)\xh_html.obj $(D)\xh_menu.obj \
50 $(D)\xh_notbk.obj $(D)\xh_panel.obj $(D)\xh_radbt.obj \
51 $(D)\xh_radbx.obj $(D)\xh_sizer.obj $(D)\xh_slidr.obj $(D)\xh_spin.obj \
52 $(D)\xh_stbmp.obj $(D)\xh_sttxt.obj \
53 $(D)\xh_text.obj $(D)\xh_listb.obj $(D)\xh_toolb.obj \
54 $(D)\xh_bmpbt.obj $(D)\xh_cald.obj $(D)\xh_listc.obj $(D)\xh_scrol.obj \
55 $(D)\xh_stbox.obj $(D)\xh_tree.obj $(D)\xh_stlin.obj $(D)\xh_bmp.obj \
56 $(D)\xh_unkwn.obj $(D)\xmlwrite.obj $(D)\xmlexpat.obj
58 !include $(WXDIR)\src\makelib.vc
62 $(CPPFLAGS) /c /Fo$@ /Tc $<
66 $(CPPFLAGS) /c /Fo$@ /Tc $<
71 DOCSOURCES=$(LOCALDOCDIR)\xml.tex \
72 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
73 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
74 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
76 html: $(DOCDIR)\html\xml\xml.htm
77 htmlhelp: $(DOCDIR)\htmlhelp\xml.chm
78 htb: $(DOCDIR)\htb\xml.htb
79 hlp: $(DOCDIR)\winhelp\xml.hlp
80 pdfrtf: $(DOCDIR)\pdf\xml.rtf
81 ps: $(DOCDIR)\ps\xml.ps
84 touch $(LOCALDOCDIR)\xml.tex
87 $(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj
91 move xml.hlp $(DOCDIR)\winhelp\xml.hlp
92 move xml.cnt $(DOCDIR)\winhelp\xml.cnt
95 $(LOCALDOCDIR)\xml.rtf: $(DOCSOURCES)
97 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(LOCALDOCDIR)\xml.rtf -twice -winhelp
100 $(DOCDIR)\pdf\xml.rtf: $(DOCSOURCES)
102 -copy *.bmp $(DOCDIR)\pdf
103 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\pdf\xml.rtf -twice -rtf
106 $(DOCDIR)\html\xml\xml.htm: $(DOCSOURCES)
108 -mkdir $(DOCDIR)\html\xml
109 copy *.gif $(DOCDIR)\html\xml
110 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\html\xml\xml.htm -twice -html
111 -erase $(DOCDIR)\html\xml\*.con
113 -erase $(DOCDIR)\html\xml\*.ref
116 $(DOCDIR)\htmlhelp\xml.chm: $(DOCDIR)\html\xml\xml.htm $(DOCDIR)\html\xml\xml.hhp
117 cd $(DOCDIR)\html\xml
119 move xml.chm $(DOCDIR)\htmlhelp\xml.chm
122 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
123 # files, renamed to htb.
124 # This can then be used with e.g. helpview.
125 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
126 $(DOCDIR)\htb\xml.htb: $(DOCDIR)\html\xml\xml.htm
127 cd $(DOCDIR)\html\xml
128 -erase xml.zip xml.htb
129 zip xml.zip *.htm *.gif *.hhp *.hhc *.hhk
131 move xml.zip $(DOCDIR)\htb\xml.htb
134 $(LOCALDOCDIR)\xml.dvi: $(DOCSOURCES)
144 $(WXDIR)\docs\ps\xml.ps: $(LOCALDOCDIR)\xml.dvi
146 -dvips32 -o xml.ps xml
147 move xml.ps $(WXDIR)\docs\ps\xml.ps