]> git.saurik.com Git - wxWidgets.git/blame - src/xrc/makefile.vc
Various changes to make pop up menus work
[wxWidgets.git] / src / xrc / makefile.vc
CommitLineData
78d14f80
VS
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\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) \
4d876ee3 50 $(D)\xml.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 \
4d876ee3 60 $(D)\xh_unkwn.obj
78d14f80
VS
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
75DOCSOURCES=$(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
80html: $(DOCDIR)\html\xml\xml.htm
81htmlhelp: $(DOCDIR)\htmlhelp\xml.chm
82htb: $(DOCDIR)\htb\xml.htb
83hlp: $(DOCDIR)\winhelp\xml.hlp
84pdfrtf: $(DOCDIR)\pdf\xml.rtf
85ps: $(DOCDIR)\ps\xml.ps
86
87touchmanual:
88 touch $(LOCALDOCDIR)\xml.tex
89
90
91$(DOCDIR)\winhelp\xml.hlp: $(LOCALDOCDIR)\xml.rtf $(LOCALDOCDIR)\xml.hpj
92 cd $(LOCALDOCDIR)
8c71c62c 93 -$(RM) xml.ph
78d14f80
VS
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
8c71c62c
GT
115 -$(RM) $(DOCDIR)\html\xml\*.con
116 -$(RM) *.con
117 -$(RM) $(DOCDIR)\html\xml\*.ref
78d14f80
VS
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
8c71c62c 132 -$(RM) xml.zip xml.htb
78d14f80
VS
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