]> git.saurik.com Git - wxWidgets.git/blame - utils/dialoged/src/makefile.vc
Oops, I left an extra { in there.
[wxWidgets.git] / utils / dialoged / src / makefile.vc
CommitLineData
457814b5 1#
48d1144b 2# File: makefile.vc
457814b5
JS
3# Author: Julian Smart
4# Created: 1993
5# Updated:
48d1144b 6# Copyright: (c) 1993-1999 Julian Smart
457814b5
JS
7#
8# "%W% %G%"
9#
48d1144b 10# Makefile : Builds Dialog Editor (MS VC++).
457814b5
JS
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info
13
750b78ba
JS
14
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).
18
457814b5
JS
19# Set WXDIR for your system
20WXDIR = $(WXWIN)
21THISDIR = $(WXDIR)\utils\dialoged\src
457814b5
JS
22DOCDIR=$(WXDIR)\docs
23LOCALDOCDIR=$(WXDIR)\utils\dialoged\docs
24
7c9955d1
JS
25FINAL=0
26!if "$(FINAL)" == "0"
27EXTRALIBS=$(WXDIR)\lib\wxdeprecatedd.lib
28!else
29EXTRALIBS=$(WXDIR)\lib\wxdeprecated.lib
30!endif
31
750b78ba
JS
32OVERRIDEFLAGS=/Od
33
457814b5
JS
34PROGRAM=dialoged
35
03f68f12 36OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\
bbcdf8bc 37 winprop.obj edtree.obj edlist.obj symbtabl.obj winstyle.obj
457814b5 38
48d1144b 39!include $(WXDIR)\src\makeprog.vc
457814b5 40
457814b5 41
48d1144b 42all: dialoged.exe
457814b5 43
03f68f12 44dialoged.obj: winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
457814b5 45 $(cc) @<<
750b78ba 46$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
457814b5
JS
47<<
48
03f68f12 49winprop.obj: winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ)
457814b5 50 $(cc) @<<
750b78ba 51$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
457814b5
JS
52<<
53
03f68f12 54reswrite.obj: winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
457814b5 55 $(cc) @<<
750b78ba 56$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
457814b5
JS
57<<
58
03f68f12 59reseditr.obj: winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
457814b5 60 $(cc) @<<
750b78ba 61$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
457814b5
JS
62<<
63
03f68f12 64edtree.obj: winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ)
457814b5 65 $(cc) @<<
750b78ba 66$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
457814b5
JS
67<<
68
03f68f12 69edlist.obj: winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ)
ae8351fc 70 $(cc) @<<
750b78ba 71$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
ae8351fc
JS
72<<
73
03f68f12 74dlghndlr.obj: winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
ae8351fc 75 $(cc) @<<
750b78ba 76$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
ae8351fc
JS
77<<
78
03f68f12 79symbtabl.obj: symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ)
457814b5 80 $(cc) @<<
750b78ba 81$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
457814b5
JS
82<<
83
bbcdf8bc
JS
84winstyle.obj: winstyle.h winstyle.$(SRCSUFF) $(DUMMYOBJ)
85 $(cc) @<<
750b78ba 86$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
bbcdf8bc
JS
87<<
88
457814b5
JS
89DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\
90 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
91 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\tech.tex
92
93html: $(DOCDIR)\html\dialoged\dlged.htm
f6bcfd97
BP
94htmlhelp: $(DOCDIR)\htmlhelp\dialoged.chm
95htb: $(DOCDIR)\htb\dialoged.htb
457814b5
JS
96hlp: $(DOCDIR)\winhelp\dialoged.hlp
97pdfrtf: $(DOCDIR)\pdf\dialoged.rtf
98ps: $(DOCDIR)\ps\dialoged.ps
99
100$(DOCDIR)\winhelp\dialoged.hlp: $(LOCALDOCDIR)\dialoged.rtf $(LOCALDOCDIR)\dialoged.hpj
101 cd $(LOCALDOCDIR)
102 -erase dialoged.ph
103 hc dialoged
104 move dialoged.hlp $(DOCDIR)\winhelp\dialoged.hlp
105 move dialoged.cnt $(DOCDIR)\winhelp\dialoged.cnt
106 cd $(THISDIR)
107
108$(LOCALDOCDIR)\dialoged.rtf: $(DOCSOURCES)
109 cd $(LOCALDOCDIR)
110 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\dialoged.rtf -twice -winhelp
111 cd $(THISDIR)
112
113$(DOCDIR)\pdf\dialoged.rtf: $(DOCSOURCES)
114 cd $(LOCALDOCDIR)
115 -copy *.bmp *.wmf $(DOCDIR)\pdf
116 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\pdf\dialoged.rtf -twice -rtf
117 cd $(THISDIR)
118
119$(DOCDIR)\html\dialoged\dlged.htm: $(DOCSOURCES)
120 cd $(LOCALDOCDIR)
121 -mkdir $(DOCDIR)\html\dialoged
f6bcfd97 122 -copy *.gif $(DOCDIR)\html\dialoged
457814b5
JS
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
126 cd $(THISDIR)
127
f6bcfd97
BP
128$(DOCDIR)\htmlhelp\dialoged.chm : $(DOCDIR)\html\dialoged\dlged.htm $(DOCDIR)\html\dialoged\dlged.hhp
129 cd $(DOCDIR)\html\dialoged
130 -hhc dlged.hhp
131 move $(DOCDIR)\html\dialoged\dlged.chm $(DOCDIR)\htmlhelp\dialoged.chm
132 cd $(THISDIR)
133
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
f1d93f0b
JS
140 -erase dialoged.zip dialoged.htb
141 zip dialoged.zip *.htm *.gif *.hhp *.hhc *.hhk
f6bcfd97
BP
142 -mkdir $(DOCDIR)\htb
143 move dialoged.zip $(DOCDIR)\htb\dialoged.htb
144 cd $(THISDIR)
145
457814b5
JS
146$(LOCALDOCDIR)\dialoged.dvi: $(DOCSOURCES)
147 cd $(LOCALDOCDIR)
148 -latex dialoged
149 -latex dialoged
150 -makeindx dialoged
151 -bibtex dialoged
152 -latex dialoged
153 -latex dialoged
154 cd $(THISDIR)
155
156$(WXDIR)\docs\ps\dialoged.ps: $(LOCALDOCDIR)\dialoged.dvi
157 cd $(LOCALDOCDIR)
158 -dvips32 -o dialoged.ps dialoged
159 move dialoged.ps $(WXDIR)\docs\ps\dialoged.ps
160 cd $(THISDIR)
161
162