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
14 # Set WXDIR for your system
16 THISDIR = $(WXDIR)\utils\dialoged\src
18 LOCALDOCDIR=$(WXDIR)\utils\dialoged\docs
22 OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\
23 winprop.obj edtree.obj edlist.obj symbtabl.obj winstyle.obj
25 !include $(WXDIR)\src\makeprog.vc
30 dialoged.obj: winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
32 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
35 winprop.obj: winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ)
37 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
40 reswrite.obj: winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
42 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
45 reseditr.obj: winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
47 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
50 edtree.obj: winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ)
52 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
55 edlist.obj: winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ)
57 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
60 dlghndlr.obj: winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
62 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
65 symbtabl.obj: symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ)
67 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
70 winstyle.obj: winstyle.h winstyle.$(SRCSUFF) $(DUMMYOBJ)
72 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
75 DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\
76 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
77 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\tech.tex
79 html: $(DOCDIR)\html\dialoged\dlged.htm
80 hlp: $(DOCDIR)\winhelp\dialoged.hlp
81 pdfrtf: $(DOCDIR)\pdf\dialoged.rtf
82 ps: $(DOCDIR)\ps\dialoged.ps
84 $(DOCDIR)\winhelp\dialoged.hlp: $(LOCALDOCDIR)\dialoged.rtf $(LOCALDOCDIR)\dialoged.hpj
88 move dialoged.hlp $(DOCDIR)\winhelp\dialoged.hlp
89 move dialoged.cnt $(DOCDIR)\winhelp\dialoged.cnt
92 $(LOCALDOCDIR)\dialoged.rtf: $(DOCSOURCES)
94 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\dialoged.rtf -twice -winhelp
97 $(DOCDIR)\pdf\dialoged.rtf: $(DOCSOURCES)
99 -copy *.bmp *.wmf $(DOCDIR)\pdf
100 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\pdf\dialoged.rtf -twice -rtf
103 $(DOCDIR)\html\dialoged\dlged.htm: $(DOCSOURCES)
105 -mkdir $(DOCDIR)\html\dialoged
106 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\html\dialoged\dlged.htm -twice -html
107 -erase $(DOCDIR)\html\dialoged\*.con
108 -erase $(DOCDIR)\html\dialoged\*.ref
111 $(LOCALDOCDIR)\dialoged.dvi: $(DOCSOURCES)
121 $(WXDIR)\docs\ps\dialoged.ps: $(LOCALDOCDIR)\dialoged.dvi
123 -dvips32 -o dialoged.ps dialoged
124 move dialoged.ps $(WXDIR)\docs\ps\dialoged.ps