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
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
62 !include $(WXDIR)\src\makelib.vc
66 $(CPPFLAGS) /c /Fo$@ /Tc $<
70 $(CPPFLAGS) /c /Fo$@ /Tc $<
75 DOCSOURCES=$(LOCALDOCDIR)\xml.tex \
76 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
77 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
78 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
80 html: $(DOCDIR)\html\xml\xml.htm
81 htmlhelp: $(DOCDIR)\htmlhelp\xml.chm
82 htb: $(DOCDIR)\htb\xml.htb
83 hlp: $(DOCDIR)\winhelp\xml.hlp
84 pdfrtf: $(DOCDIR)\pdf\xml.rtf
85 ps: $(DOCDIR)\ps\xml.ps
88 touch $(LOCALDOCDIR)\xml.tex
91 $(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj
95 move xml.hlp $(DOCDIR)\winhelp\xml.hlp
96 move xml.cnt $(DOCDIR)\winhelp\xml.cnt
99 $(LOCALDOCDIR)\xml.rtf: $(DOCSOURCES)
101 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(LOCALDOCDIR)\xml.rtf -twice -winhelp
104 $(DOCDIR)\pdf\xml.rtf: $(DOCSOURCES)
106 -copy *.bmp $(DOCDIR)\pdf
107 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\pdf\xml.rtf -twice -rtf
110 $(DOCDIR)\html\xml\xml.htm: $(DOCSOURCES)
112 -mkdir $(DOCDIR)\html\xml
113 copy *.gif $(DOCDIR)\html\xml
114 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\html\xml\xml.htm -twice -html
115 -$(RM) $(DOCDIR)\html\xml\*.con
117 -$(RM) $(DOCDIR)\html\xml\*.ref
120 $(DOCDIR)\htmlhelp\xml.chm: $(DOCDIR)\html\xml\xml.htm $(DOCDIR)\html\xml\xml.hhp
121 cd $(DOCDIR)\html\xml
123 move xml.chm $(DOCDIR)\htmlhelp\xml.chm
126 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
127 # files, renamed to htb.
128 # This can then be used with e.g. helpview.
129 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
130 $(DOCDIR)\htb\xml.htb: $(DOCDIR)\html\xml\xml.htm
131 cd $(DOCDIR)\html\xml
132 -$(RM) xml.zip xml.htb
133 zip xml.zip *.htm *.gif *.hhp *.hhc *.hhk
135 move xml.zip $(DOCDIR)\htb\xml.htb
138 $(LOCALDOCDIR)\xml.dvi: $(DOCSOURCES)
148 $(WXDIR)\docs\ps\xml.ps: $(LOCALDOCDIR)\xml.dvi
150 -dvips32 -o xml.ps xml
151 move xml.ps $(WXDIR)\docs\ps\xml.ps