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
28 EXPAT_DIR=$(THISDIR)\expat
29 E1=$(EXPAT_DIR)\xmlparse
30 E2=$(EXPAT_DIR)\xmltok
32 EXPAT_INCS=-I$(THISDIR)\expat\xmlparse -I$(THISDIR)\expat\xmltok
33 EXPAT_OBJS=$(D)\xmlparse.obj $(D)\xmlrole.obj $(D)\xmltok.obj
35 # Set this to where your libxml directory is
36 EXTRAFLAGS=$(EXPAT_INCS)
38 # Unfortunately we need this _before_ we include makelib.vc
46 LIBTARGET=$(WXDIR)\lib\wxxrc$(LIBEXT).lib
49 OBJECTS=$(EXPAT_OBJS) \
50 $(D)\xml.obj xmlres.obj \
51 $(D)\xmlrsall.obj $(D)\xh_bttn.obj $(D)\xh_chckb.obj $(D)\xh_chckl.obj \
52 $(D)\xh_choic.obj $(D)\xh_combo.obj $(D)\xh_dlg.obj \
53 $(D)\xh_frame.obj $(D)\xh_gauge.obj $(D)\xh_html.obj $(D)\xh_menu.obj \
54 $(D)\xh_notbk.obj $(D)\xh_panel.obj $(D)\xh_radbt.obj \
55 $(D)\xh_radbx.obj $(D)\xh_sizer.obj $(D)\xh_slidr.obj $(D)\xh_spin.obj \
56 $(D)\xh_stbmp.obj $(D)\xh_sttxt.obj \
57 $(D)\xh_text.obj $(D)\xh_listb.obj $(D)\xh_toolb.obj \
58 $(D)\xh_bmpbt.obj $(D)\xh_cald.obj $(D)\xh_listc.obj $(D)\xh_scrol.obj \
59 $(D)\xh_stbox.obj $(D)\xh_tree.obj $(D)\xh_stlin.obj $(D)\xh_bmp.obj \
60 $(D)\xh_unkwn.obj $(D)\xh_gdctl.obj $(D)\xh_scwin.obj \
61 $(D)\xh_split.obj $(D)\xh_wizrd.obj
63 !include $(WXDIR)\src\makelib.vc
67 $(CPPFLAGS) /c /Fo$@ /Tc $<
71 $(CPPFLAGS) /c /Fo$@ /Tc $<
76 DOCSOURCES=$(LOCALDOCDIR)\xml.tex \
77 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
78 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
79 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
81 html: $(DOCDIR)\html\xml\xml.htm
82 htmlhelp: $(DOCDIR)\htmlhelp\xml.chm
83 htb: $(DOCDIR)\htb\xml.htb
84 hlp: $(DOCDIR)\winhelp\xml.hlp
85 pdfrtf: $(DOCDIR)\pdf\xml.rtf
86 ps: $(DOCDIR)\ps\xml.ps
89 touch $(LOCALDOCDIR)\xml.tex
92 $(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj
96 move xml.hlp $(DOCDIR)\winhelp\xml.hlp
97 move xml.cnt $(DOCDIR)\winhelp\xml.cnt
100 $(LOCALDOCDIR)\xml.rtf: $(DOCSOURCES)
102 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(LOCALDOCDIR)\xml.rtf -twice -winhelp
105 $(DOCDIR)\pdf\xml.rtf: $(DOCSOURCES)
107 -copy *.bmp $(DOCDIR)\pdf
108 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\pdf\xml.rtf -twice -rtf
111 $(DOCDIR)\html\xml\xml.htm: $(DOCSOURCES)
113 -mkdir $(DOCDIR)\html\xml
114 copy *.gif $(DOCDIR)\html\xml
115 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\html\xml\xml.htm -twice -html
116 -$(RM) $(DOCDIR)\html\xml\*.con
118 -$(RM) $(DOCDIR)\html\xml\*.ref
121 $(DOCDIR)\htmlhelp\xml.chm: $(DOCDIR)\html\xml\xml.htm $(DOCDIR)\html\xml\xml.hhp
122 cd $(DOCDIR)\html\xml
124 move xml.chm $(DOCDIR)\htmlhelp\xml.chm
127 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
128 # files, renamed to htb.
129 # This can then be used with e.g. helpview.
130 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
131 $(DOCDIR)\htb\xml.htb: $(DOCDIR)\html\xml\xml.htm
132 cd $(DOCDIR)\html\xml
133 -$(RM) xml.zip xml.htb
134 zip xml.zip *.htm *.gif *.hhp *.hhc *.hhk
136 move xml.zip $(DOCDIR)\htb\xml.htb
139 $(LOCALDOCDIR)\xml.dvi: $(DOCSOURCES)
149 $(WXDIR)\docs\ps\xml.ps: $(LOCALDOCDIR)\xml.dvi
151 -dvips32 -o xml.ps xml
152 move xml.ps $(WXDIR)\docs\ps\xml.ps