]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/xml/makefile.vc
reverted the hack for accepting broken HHC files (new wxHF_xxxx flags provide same...
[wxWidgets.git] / contrib / src / xml / makefile.vc
CommitLineData
df801fc6
JS
1
2# File: makefile.vc
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds wxXML classes library (MS VC++).
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info
13
14# Set WXDIR for your system
15WXDIR = $(WXWIN)
16wxXMLDIR = $(WXDIR)\contrib\src\xml
17wxXMLINC = $(WXDIR)\contrib\include\wx\xml
18THISDIR = $(WXDIR)\contrib\src\xml
19DOCDIR=$(WXDIR)\contrib\docs
20LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\xml
21
9fd258db
GT
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
27wxLIBXMLDIR=
28
29!if "$(wxLIBXMLDIR)" == ""
30!message
31!message SETUP REQUIRED
32!message
33!message You must set the wxLIBXMLDIR variable in makefile.vc before compiling
34!message
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
38!message
39!error
40!endif
41
42# Set this to where your libxml directory is
43EXTRAFLAGS=$(wxLIBXMLDIR)
df801fc6
JS
44
45# Unfortunately we need this _before_ we include makelib.vc
46!if "$(FINAL)" == "1"
47D=Release
48!else
49D=Debug
50LIBEXT=d
51!endif
52
53LIBTARGET=$(WXDIR)\lib\wxxml$(LIBEXT).lib
54EXTRATARGETS=$(D)
55
56OBJECTS=$(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 \
2e4c3bf8 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 \
df801fc6 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 \
b008b592
VS
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 \
28c0bed3
VS
62 $(D)\xh_stbox.obj $(D)\xh_tree.obj $(D)\xh_stlin.obj $(D)\xh_bmp.obj \
63 $(D)\xh_unkwn.obj
df801fc6
JS
64
65!include $(WXDIR)\src\makelib.vc
66
67DOCSOURCES=$(LOCALDOCDIR)\xml.tex \
68 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
69 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
70 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
71
72html: $(DOCDIR)\html\xml\xml.htm
73htmlhelp: $(DOCDIR)\htmlhelp\xml.chm
74htb: $(DOCDIR)\htb\xml.htb
75hlp: $(DOCDIR)\winhelp\xml.hlp
76pdfrtf: $(DOCDIR)\pdf\xml.rtf
77ps: $(DOCDIR)\ps\xml.ps
78
79touchmanual:
80 touch $(LOCALDOCDIR)\xml.tex
81
82
83$(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj
84 cd $(LOCALDOCDIR)
85 -erase xml.ph
86 hc xml
87 move xml.hlp $(DOCDIR)\winhelp\xml.hlp
88 move xml.cnt $(DOCDIR)\winhelp\xml.cnt
89 cd $(THISDIR)
90
91$(LOCALDOCDIR)\xml.rtf: $(DOCSOURCES)
92 cd $(LOCALDOCDIR)
93 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(LOCALDOCDIR)\xml.rtf -twice -winhelp
94 cd $(THISDIR)
95
96$(DOCDIR)\pdf\xml.rtf: $(DOCSOURCES)
97 cd $(LOCALDOCDIR)
98 -copy *.bmp $(DOCDIR)\pdf
99 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\pdf\xml.rtf -twice -rtf
100 cd $(THISDIR)
101
102$(DOCDIR)\html\xml\xml.htm: $(DOCSOURCES)
103 cd $(LOCALDOCDIR)
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
108 -erase *.con
109 -erase $(DOCDIR)\html\xml\*.ref
110 cd $(THISDIR)
111
112$(DOCDIR)\htmlhelp\xml.chm: $(DOCDIR)\html\xml\xml.htm $(DOCDIR)\html\xml\xml.hhp
113 cd $(DOCDIR)\html\xml
114 -hhc xml.hhp
115 move xml.chm $(DOCDIR)\htmlhelp\xml.chm
116 cd $(THISDIR)
117
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
f1d93f0b
JS
124 -erase xml.zip xml.htb
125 zip xml.zip *.htm *.gif *.hhp *.hhc *.hhk
df801fc6
JS
126 -mkdir $(DOCDIR)\htb
127 move xml.zip $(DOCDIR)\htb\xml.htb
128 cd $(THISDIR)
129
130$(LOCALDOCDIR)\xml.dvi: $(DOCSOURCES)
131 cd $(LOCALDOCDIR)
132 -latex xml
133 -latex xml
134 -makeindx xml
135 -bibtex xml
136 -latex xml
137 -latex xml
138 cd $(THISDIR)
139
140$(WXDIR)\docs\ps\xml.ps: $(LOCALDOCDIR)\xml.dvi
141 cd $(LOCALDOCDIR)
142 -dvips32 -o xml.ps xml
143 move xml.ps $(WXDIR)\docs\ps\xml.ps
144 cd $(THISDIR)
145