6 # Copyright: (c) 1993-1999 Julian Smart
10 # Makefile : Builds Dialog Editor (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
15 # N.B. This makefiles uses CPPFLAGS2 to disable precompiled headers so we
16 # can override optimization, which is necessary for correct behaviour under
17 # VC++ 5 (otherwise deleting an object causes a crash).
19 # Set WXDIR for your system
21 THISDIR = $(WXDIR)\utils\dialoged\src
23 LOCALDOCDIR=$(WXDIR)\utils\dialoged\docs
27 EXTRALIBS=$(WXDIR)\lib\wxdeprecatedd.lib
29 EXTRALIBS=$(WXDIR)\lib\wxdeprecated.lib
36 OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\
37 winprop.obj edtree.obj edlist.obj symbtabl.obj winstyle.obj
39 !include $(WXDIR)\src\makeprog.vc
44 dialoged.obj: winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
46 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
49 winprop.obj: winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ)
51 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
54 reswrite.obj: winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
56 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
59 reseditr.obj: winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
61 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
64 edtree.obj: winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ)
66 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
69 edlist.obj: winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ)
71 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
74 dlghndlr.obj: winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
76 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
79 symbtabl.obj: symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ)
81 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
84 winstyle.obj: winstyle.h winstyle.$(SRCSUFF) $(DUMMYOBJ)
86 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
89 DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\
90 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
91 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\tech.tex
93 html: $(DOCDIR)\html\dialoged\dlged.htm
94 htmlhelp: $(DOCDIR)\htmlhelp\dialoged.chm
95 htb: $(DOCDIR)\htb\dialoged.htb
96 hlp: $(DOCDIR)\winhelp\dialoged.hlp
97 pdfrtf: $(DOCDIR)\pdf\dialoged.rtf
98 ps: $(DOCDIR)\ps\dialoged.ps
100 $(DOCDIR)\winhelp\dialoged.hlp: $(LOCALDOCDIR)\dialoged.rtf $(LOCALDOCDIR)\dialoged.hpj
104 move dialoged.hlp $(DOCDIR)\winhelp\dialoged.hlp
105 move dialoged.cnt $(DOCDIR)\winhelp\dialoged.cnt
108 $(LOCALDOCDIR)\dialoged.rtf: $(DOCSOURCES)
110 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\dialoged.rtf -twice -winhelp
113 $(DOCDIR)\pdf\dialoged.rtf: $(DOCSOURCES)
115 -copy *.bmp *.wmf $(DOCDIR)\pdf
116 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\pdf\dialoged.rtf -twice -rtf
119 $(DOCDIR)\html\dialoged\dlged.htm: $(DOCSOURCES)
121 -mkdir $(DOCDIR)\html\dialoged
122 -copy *.gif $(DOCDIR)\html\dialoged
123 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\html\dialoged\dlged.htm -twice -html
124 -erase $(DOCDIR)\html\dialoged\*.con
125 -erase $(DOCDIR)\html\dialoged\*.ref
128 $(DOCDIR)\htmlhelp\dialoged.chm : $(DOCDIR)\html\dialoged\dlged.htm $(DOCDIR)\html\dialoged\dlged.hhp
129 cd $(DOCDIR)\html\dialoged
131 move $(DOCDIR)\html\dialoged\dlged.chm $(DOCDIR)\htmlhelp\dialoged.chm
134 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
135 # files, renamed to htb.
136 # This can then be used with e.g. helpview.
137 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
138 $(DOCDIR)\htb\dialoged.htb: $(DOCDIR)\html\dialoged\dlged.htm
139 cd $(DOCDIR)\html\dialoged
140 -erase dialoged.zip dialoged.htb
141 zip dialoged.zip *.htm *.gif *.hhp *.hhc *.hhk
143 move dialoged.zip $(DOCDIR)\htb\dialoged.htb
146 $(LOCALDOCDIR)\dialoged.dvi: $(DOCSOURCES)
156 $(WXDIR)\docs\ps\dialoged.ps: $(LOCALDOCDIR)\dialoged.dvi
158 -dvips32 -o dialoged.ps dialoged
159 move dialoged.ps $(WXDIR)\docs\ps\dialoged.ps