]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/dialoged/src/makefile.vc
Oops, I left an extra { in there.
[wxWidgets.git] / utils / dialoged / src / makefile.vc
... / ...
CommitLineData
1#
2# File: makefile.vc
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright: (c) 1993-1999 Julian Smart
7#
8# "%W% %G%"
9#
10# Makefile : Builds Dialog Editor (MS VC++).
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info
13
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
19# Set WXDIR for your system
20WXDIR = $(WXWIN)
21THISDIR = $(WXDIR)\utils\dialoged\src
22DOCDIR=$(WXDIR)\docs
23LOCALDOCDIR=$(WXDIR)\utils\dialoged\docs
24
25FINAL=0
26!if "$(FINAL)" == "0"
27EXTRALIBS=$(WXDIR)\lib\wxdeprecatedd.lib
28!else
29EXTRALIBS=$(WXDIR)\lib\wxdeprecated.lib
30!endif
31
32OVERRIDEFLAGS=/Od
33
34PROGRAM=dialoged
35
36OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\
37 winprop.obj edtree.obj edlist.obj symbtabl.obj winstyle.obj
38
39!include $(WXDIR)\src\makeprog.vc
40
41
42all: dialoged.exe
43
44dialoged.obj: winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
45 $(cc) @<<
46$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
47<<
48
49winprop.obj: winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ)
50 $(cc) @<<
51$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
52<<
53
54reswrite.obj: winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
55 $(cc) @<<
56$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
57<<
58
59reseditr.obj: winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
60 $(cc) @<<
61$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
62<<
63
64edtree.obj: winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ)
65 $(cc) @<<
66$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
67<<
68
69edlist.obj: winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ)
70 $(cc) @<<
71$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
72<<
73
74dlghndlr.obj: winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
75 $(cc) @<<
76$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
77<<
78
79symbtabl.obj: symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ)
80 $(cc) @<<
81$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
82<<
83
84winstyle.obj: winstyle.h winstyle.$(SRCSUFF) $(DUMMYOBJ)
85 $(cc) @<<
86$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
87<<
88
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
94htmlhelp: $(DOCDIR)\htmlhelp\dialoged.chm
95htb: $(DOCDIR)\htb\dialoged.htb
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
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
126 cd $(THISDIR)
127
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
140 -erase dialoged.zip dialoged.htb
141 zip dialoged.zip *.htm *.gif *.hhp *.hhc *.hhk
142 -mkdir $(DOCDIR)\htb
143 move dialoged.zip $(DOCDIR)\htb\dialoged.htb
144 cd $(THISDIR)
145
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