]>
Commit | Line | Data |
---|---|---|
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 | |
15 | WXDIR = $(WXWIN) | |
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 | |
21 | ||
22 | NOPCH=1 | |
23 | ||
24 | EXPAT_DIR=$(THISDIR)\expat | |
25 | E1=$(EXPAT_DIR)\xmlparse | |
26 | E2=$(EXPAT_DIR)\xmltok | |
27 | ||
28 | EXPAT_INCS=-I$(THISDIR)\expat\xmlparse -I$(THISDIR)\expat\xmltok | |
29 | EXPAT_OBJS=$(D)\xmlparse.obj $(D)\xmlrole.obj $(D)\xmltok.obj | |
30 | ||
31 | # Set this to where your libxml directory is | |
32 | EXTRAFLAGS=$(EXPAT_INCS) | |
33 | ||
34 | # Unfortunately we need this _before_ we include makelib.vc | |
35 | !if "$(FINAL)" == "1" | |
36 | D=Release | |
37 | !else | |
38 | D=Debug | |
39 | LIBEXT=d | |
40 | !endif | |
41 | ||
42 | LIBTARGET=$(WXDIR)\lib\wxxrc$(LIBEXT).lib | |
43 | EXTRATARGETS=$(D) | |
44 | ||
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 | |
57 | ||
58 | !include $(WXDIR)\src\makelib.vc | |
59 | ||
60 | {$(E1)}.c{$(D)}.obj: | |
61 | $(cc) @<< | |
62 | $(CPPFLAGS) /c /Fo$@ /Tc $< | |
63 | << | |
64 | {$(E2)}.c{$(D)}.obj: | |
65 | $(cc) @<< | |
66 | $(CPPFLAGS) /c /Fo$@ /Tc $< | |
67 | << | |
68 | ||
69 | ||
70 | ||
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 | |
75 | ||
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 | |
82 | ||
83 | touchmanual: | |
84 | touch $(LOCALDOCDIR)\xml.tex | |
85 | ||
86 | ||
87 | $(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj | |
88 | cd $(LOCALDOCDIR) | |
89 | -erase xml.ph | |
90 | hc xml | |
91 | move xml.hlp $(DOCDIR)\winhelp\xml.hlp | |
92 | move xml.cnt $(DOCDIR)\winhelp\xml.cnt | |
93 | cd $(THISDIR) | |
94 | ||
95 | $(LOCALDOCDIR)\xml.rtf: $(DOCSOURCES) | |
96 | cd $(LOCALDOCDIR) | |
97 | -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(LOCALDOCDIR)\xml.rtf -twice -winhelp | |
98 | cd $(THISDIR) | |
99 | ||
100 | $(DOCDIR)\pdf\xml.rtf: $(DOCSOURCES) | |
101 | cd $(LOCALDOCDIR) | |
102 | -copy *.bmp $(DOCDIR)\pdf | |
103 | -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\pdf\xml.rtf -twice -rtf | |
104 | cd $(THISDIR) | |
105 | ||
106 | $(DOCDIR)\html\xml\xml.htm: $(DOCSOURCES) | |
107 | cd $(LOCALDOCDIR) | |
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 | |
112 | -erase *.con | |
113 | -erase $(DOCDIR)\html\xml\*.ref | |
114 | cd $(THISDIR) | |
115 | ||
116 | $(DOCDIR)\htmlhelp\xml.chm: $(DOCDIR)\html\xml\xml.htm $(DOCDIR)\html\xml\xml.hhp | |
117 | cd $(DOCDIR)\html\xml | |
118 | -hhc xml.hhp | |
119 | move xml.chm $(DOCDIR)\htmlhelp\xml.chm | |
120 | cd $(THISDIR) | |
121 | ||
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 | |
130 | -mkdir $(DOCDIR)\htb | |
131 | move xml.zip $(DOCDIR)\htb\xml.htb | |
132 | cd $(THISDIR) | |
133 | ||
134 | $(LOCALDOCDIR)\xml.dvi: $(DOCSOURCES) | |
135 | cd $(LOCALDOCDIR) | |
136 | -latex xml | |
137 | -latex xml | |
138 | -makeindx xml | |
139 | -bibtex xml | |
140 | -latex xml | |
141 | -latex xml | |
142 | cd $(THISDIR) | |
143 | ||
144 | $(WXDIR)\docs\ps\xml.ps: $(LOCALDOCDIR)\xml.dvi | |
145 | cd $(LOCALDOCDIR) | |
146 | -dvips32 -o xml.ps xml | |
147 | move xml.ps $(WXDIR)\docs\ps\xml.ps | |
148 | cd $(THISDIR) | |
149 |