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
29 OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\
30 winprop.obj edtree.obj edlist.obj symbtabl.obj winstyle.obj
32 !include $(WXDIR)\src\makeprog.vc
37 dialoged.obj: winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
39 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
42 winprop.obj: winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ)
44 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
47 reswrite.obj: winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
49 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
52 reseditr.obj: winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
54 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
57 edtree.obj: winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ)
59 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
62 edlist.obj: winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ)
64 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
67 dlghndlr.obj: winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
69 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
72 symbtabl.obj: symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ)
74 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
77 winstyle.obj: winstyle.h winstyle.$(SRCSUFF) $(DUMMYOBJ)
79 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
82 DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\
83 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
84 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\tech.tex
86 html: $(DOCDIR)\html\dialoged\dlged.htm
87 hlp: $(DOCDIR)\winhelp\dialoged.hlp
88 pdfrtf: $(DOCDIR)\pdf\dialoged.rtf
89 ps: $(DOCDIR)\ps\dialoged.ps
91 $(DOCDIR)\winhelp\dialoged.hlp: $(LOCALDOCDIR)\dialoged.rtf $(LOCALDOCDIR)\dialoged.hpj
95 move dialoged.hlp $(DOCDIR)\winhelp\dialoged.hlp
96 move dialoged.cnt $(DOCDIR)\winhelp\dialoged.cnt
99 $(LOCALDOCDIR)\dialoged.rtf: $(DOCSOURCES)
101 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\dialoged.rtf -twice -winhelp
104 $(DOCDIR)\pdf\dialoged.rtf: $(DOCSOURCES)
106 -copy *.bmp *.wmf $(DOCDIR)\pdf
107 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\pdf\dialoged.rtf -twice -rtf
110 $(DOCDIR)\html\dialoged\dlged.htm: $(DOCSOURCES)
112 -mkdir $(DOCDIR)\html\dialoged
113 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\html\dialoged\dlged.htm -twice -html
114 -erase $(DOCDIR)\html\dialoged\*.con
115 -erase $(DOCDIR)\html\dialoged\*.ref
118 $(LOCALDOCDIR)\dialoged.dvi: $(DOCSOURCES)
128 $(WXDIR)\docs\ps\dialoged.ps: $(LOCALDOCDIR)\dialoged.dvi
130 -dvips32 -o dialoged.ps dialoged
131 move dialoged.ps $(WXDIR)\docs\ps\dialoged.ps