]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/xrc/makefile.vc
fixed typo
[wxWidgets.git] / contrib / src / xrc / makefile.vc
CommitLineData
78d14f80
VS
1
2# File: makefile.vc
3# Author: Julian Smart
4# Created: 1993
5# Updated:
f0f7bd8a 6# Copyright:
78d14f80
VS
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\xrc
17wxXMLINC = $(WXDIR)\contrib\include\wx\xml
18THISDIR = $(WXDIR)\contrib\src\xrc
19DOCDIR=$(WXDIR)\contrib\docs
20LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\xml
21
8c71c62c
GT
22!if "$(RM)" == ""
23RM= erase
24!endif
25
78d14f80
VS
26NOPCH=1
27
28EXPAT_DIR=$(THISDIR)\expat
29E1=$(EXPAT_DIR)\xmlparse
30E2=$(EXPAT_DIR)\xmltok
31
32EXPAT_INCS=-I$(THISDIR)\expat\xmlparse -I$(THISDIR)\expat\xmltok
33EXPAT_OBJS=$(D)\xmlparse.obj $(D)\xmlrole.obj $(D)\xmltok.obj
34
35# Set this to where your libxml directory is
36EXTRAFLAGS=$(EXPAT_INCS)
37
38# Unfortunately we need this _before_ we include makelib.vc
39!if "$(FINAL)" == "1"
40D=Release
41!else
42D=Debug
43LIBEXT=d
44!endif
45
46LIBTARGET=$(WXDIR)\lib\wxxrc$(LIBEXT).lib
47EXTRATARGETS=$(D)
48
49OBJECTS=$(EXPAT_OBJS) \
66134749 50 $(D)\xml.obj $(D)\xmlres.obj \
78d14f80
VS
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 \
2f5b93fb 60 $(D)\xh_unkwn.obj $(D)\xh_gdctl.obj $(D)\xh_scwin.obj \
4f1f3401 61 $(D)\xh_split.obj $(D)\xh_wizrd.obj
78d14f80
VS
62
63!include $(WXDIR)\src\makelib.vc
64
65{$(E1)}.c{$(D)}.obj:
66 $(cc) @<<
67$(CPPFLAGS) /c /Fo$@ /Tc $<
68<<
69{$(E2)}.c{$(D)}.obj:
70 $(cc) @<<
71$(CPPFLAGS) /c /Fo$@ /Tc $<
72<<
73
74
75
76DOCSOURCES=$(LOCALDOCDIR)\xml.tex \
77 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
78 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
79 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
80
81html: $(DOCDIR)\html\xml\xml.htm
82htmlhelp: $(DOCDIR)\htmlhelp\xml.chm
83htb: $(DOCDIR)\htb\xml.htb
84hlp: $(DOCDIR)\winhelp\xml.hlp
85pdfrtf: $(DOCDIR)\pdf\xml.rtf
86ps: $(DOCDIR)\ps\xml.ps
87
88touchmanual:
89 touch $(LOCALDOCDIR)\xml.tex
90
91
92$(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj
93 cd $(LOCALDOCDIR)
8c71c62c 94 -$(RM) xml.ph
78d14f80
VS
95 hc xml
96 move xml.hlp $(DOCDIR)\winhelp\xml.hlp
97 move xml.cnt $(DOCDIR)\winhelp\xml.cnt
98 cd $(THISDIR)
99
100$(LOCALDOCDIR)\xml.rtf: $(DOCSOURCES)
101 cd $(LOCALDOCDIR)
102 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(LOCALDOCDIR)\xml.rtf -twice -winhelp
103 cd $(THISDIR)
104
105$(DOCDIR)\pdf\xml.rtf: $(DOCSOURCES)
106 cd $(LOCALDOCDIR)
107 -copy *.bmp $(DOCDIR)\pdf
108 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\xml.tex $(DOCDIR)\pdf\xml.rtf -twice -rtf
109 cd $(THISDIR)
110
111$(DOCDIR)\html\xml\xml.htm: $(DOCSOURCES)
112 cd $(LOCALDOCDIR)
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
8c71c62c
GT
116 -$(RM) $(DOCDIR)\html\xml\*.con
117 -$(RM) *.con
118 -$(RM) $(DOCDIR)\html\xml\*.ref
78d14f80
VS
119 cd $(THISDIR)
120
121$(DOCDIR)\htmlhelp\xml.chm: $(DOCDIR)\html\xml\xml.htm $(DOCDIR)\html\xml\xml.hhp
122 cd $(DOCDIR)\html\xml
123 -hhc xml.hhp
124 move xml.chm $(DOCDIR)\htmlhelp\xml.chm
125 cd $(THISDIR)
126
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
8c71c62c 133 -$(RM) xml.zip xml.htb
78d14f80
VS
134 zip xml.zip *.htm *.gif *.hhp *.hhc *.hhk
135 -mkdir $(DOCDIR)\htb
136 move xml.zip $(DOCDIR)\htb\xml.htb
137 cd $(THISDIR)
138
139$(LOCALDOCDIR)\xml.dvi: $(DOCSOURCES)
140 cd $(LOCALDOCDIR)
141 -latex xml
142 -latex xml
143 -makeindx xml
144 -bibtex xml
145 -latex xml
146 -latex xml
147 cd $(THISDIR)
148
149$(WXDIR)\docs\ps\xml.ps: $(LOCALDOCDIR)\xml.dvi
150 cd $(LOCALDOCDIR)
151 -dvips32 -o xml.ps xml
152 move xml.ps $(WXDIR)\docs\ps\xml.ps
153 cd $(THISDIR)
154