]> git.saurik.com Git - wxWidgets.git/blob - src/xrc/makefile.vc
compilation warnings fixed
[wxWidgets.git] / src / xrc / makefile.vc
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 !if "$(RM)" == ""
23 RM= erase
24 !endif
25
26 NOPCH=1
27
28 EXPAT_DIR=$(THISDIR)\expat
29 E1=$(EXPAT_DIR)\xmlparse
30 E2=$(EXPAT_DIR)\xmltok
31
32 EXPAT_INCS=-I$(THISDIR)\expat\xmlparse -I$(THISDIR)\expat\xmltok
33 EXPAT_OBJS=$(D)\xmlparse.obj $(D)\xmlrole.obj $(D)\xmltok.obj
34
35 # Set this to where your libxml directory is
36 EXTRAFLAGS=$(EXPAT_INCS)
37
38 # Unfortunately we need this _before_ we include makelib.vc
39 !if "$(FINAL)" == "1"
40 D=Release
41 !else
42 D=Debug
43 LIBEXT=d
44 !endif
45
46 LIBTARGET=$(WXDIR)\lib\wxxrc$(LIBEXT).lib
47 EXTRATARGETS=$(D)
48
49 OBJECTS=$(EXPAT_OBJS) \
50 $(D)\xml.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
61
62 !include $(WXDIR)\src\makelib.vc
63
64 {$(E1)}.c{$(D)}.obj:
65 $(cc) @<<
66 $(CPPFLAGS) /c /Fo$@ /Tc $<
67 <<
68 {$(E2)}.c{$(D)}.obj:
69 $(cc) @<<
70 $(CPPFLAGS) /c /Fo$@ /Tc $<
71 <<
72
73
74
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
79
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
86
87 touchmanual:
88 touch $(LOCALDOCDIR)\xml.tex
89
90
91 $(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj
92 cd $(LOCALDOCDIR)
93 -$(RM) xml.ph
94 hc xml
95 move xml.hlp $(DOCDIR)\winhelp\xml.hlp
96 move xml.cnt $(DOCDIR)\winhelp\xml.cnt
97 cd $(THISDIR)
98
99 $(LOCALDOCDIR)\xml.rtf: $(DOCSOURCES)
100 cd $(LOCALDOCDIR)
101 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(LOCALDOCDIR)\xml.rtf -twice -winhelp
102 cd $(THISDIR)
103
104 $(DOCDIR)\pdf\xml.rtf: $(DOCSOURCES)
105 cd $(LOCALDOCDIR)
106 -copy *.bmp $(DOCDIR)\pdf
107 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\pdf\xml.rtf -twice -rtf
108 cd $(THISDIR)
109
110 $(DOCDIR)\html\xml\xml.htm: $(DOCSOURCES)
111 cd $(LOCALDOCDIR)
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
116 -$(RM) *.con
117 -$(RM) $(DOCDIR)\html\xml\*.ref
118 cd $(THISDIR)
119
120 $(DOCDIR)\htmlhelp\xml.chm: $(DOCDIR)\html\xml\xml.htm $(DOCDIR)\html\xml\xml.hhp
121 cd $(DOCDIR)\html\xml
122 -hhc xml.hhp
123 move xml.chm $(DOCDIR)\htmlhelp\xml.chm
124 cd $(THISDIR)
125
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
134 -mkdir $(DOCDIR)\htb
135 move xml.zip $(DOCDIR)\htb\xml.htb
136 cd $(THISDIR)
137
138 $(LOCALDOCDIR)\xml.dvi: $(DOCSOURCES)
139 cd $(LOCALDOCDIR)
140 -latex xml
141 -latex xml
142 -makeindx xml
143 -bibtex xml
144 -latex xml
145 -latex xml
146 cd $(THISDIR)
147
148 $(WXDIR)\docs\ps\xml.ps: $(LOCALDOCDIR)\xml.dvi
149 cd $(LOCALDOCDIR)
150 -dvips32 -o xml.ps xml
151 move xml.ps $(WXDIR)\docs\ps\xml.ps
152 cd $(THISDIR)
153