]> git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/makefile.vc
A little black magic... When the C++ object (for a window or
[wxWidgets.git] / utils / dialoged / src / makefile.vc
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
20 WXDIR = $(WXWIN)
21 THISDIR = $(WXDIR)\utils\dialoged\src
22 DOCDIR=$(WXDIR)\docs
23 LOCALDOCDIR=$(WXDIR)\utils\dialoged\docs
24
25 OVERRIDEFLAGS=/Od
26
27 PROGRAM=dialoged
28
29 OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\
30 winprop.obj edtree.obj edlist.obj symbtabl.obj winstyle.obj
31
32 !include $(WXDIR)\src\makeprog.vc
33
34
35 all: dialoged.exe
36
37 dialoged.obj: winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
38 $(cc) @<<
39 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
40 <<
41
42 winprop.obj: winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ)
43 $(cc) @<<
44 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
45 <<
46
47 reswrite.obj: winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
48 $(cc) @<<
49 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
50 <<
51
52 reseditr.obj: winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
53 $(cc) @<<
54 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
55 <<
56
57 edtree.obj: winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ)
58 $(cc) @<<
59 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
60 <<
61
62 edlist.obj: winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ)
63 $(cc) @<<
64 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
65 <<
66
67 dlghndlr.obj: winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
68 $(cc) @<<
69 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
70 <<
71
72 symbtabl.obj: symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ)
73 $(cc) @<<
74 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
75 <<
76
77 winstyle.obj: winstyle.h winstyle.$(SRCSUFF) $(DUMMYOBJ)
78 $(cc) @<<
79 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
80 <<
81
82 DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\
83 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
84 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\tech.tex
85
86 html: $(DOCDIR)\html\dialoged\dlged.htm
87 htmlhelp: $(DOCDIR)\htmlhelp\dialoged.chm
88 htb: $(DOCDIR)\htb\dialoged.htb
89 hlp: $(DOCDIR)\winhelp\dialoged.hlp
90 pdfrtf: $(DOCDIR)\pdf\dialoged.rtf
91 ps: $(DOCDIR)\ps\dialoged.ps
92
93 $(DOCDIR)\winhelp\dialoged.hlp: $(LOCALDOCDIR)\dialoged.rtf $(LOCALDOCDIR)\dialoged.hpj
94 cd $(LOCALDOCDIR)
95 -erase dialoged.ph
96 hc dialoged
97 move dialoged.hlp $(DOCDIR)\winhelp\dialoged.hlp
98 move dialoged.cnt $(DOCDIR)\winhelp\dialoged.cnt
99 cd $(THISDIR)
100
101 $(LOCALDOCDIR)\dialoged.rtf: $(DOCSOURCES)
102 cd $(LOCALDOCDIR)
103 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\dialoged.rtf -twice -winhelp
104 cd $(THISDIR)
105
106 $(DOCDIR)\pdf\dialoged.rtf: $(DOCSOURCES)
107 cd $(LOCALDOCDIR)
108 -copy *.bmp *.wmf $(DOCDIR)\pdf
109 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\pdf\dialoged.rtf -twice -rtf
110 cd $(THISDIR)
111
112 $(DOCDIR)\html\dialoged\dlged.htm: $(DOCSOURCES)
113 cd $(LOCALDOCDIR)
114 -mkdir $(DOCDIR)\html\dialoged
115 -copy *.gif $(DOCDIR)\html\dialoged
116 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\html\dialoged\dlged.htm -twice -html
117 -erase $(DOCDIR)\html\dialoged\*.con
118 -erase $(DOCDIR)\html\dialoged\*.ref
119 cd $(THISDIR)
120
121 $(DOCDIR)\htmlhelp\dialoged.chm : $(DOCDIR)\html\dialoged\dlged.htm $(DOCDIR)\html\dialoged\dlged.hhp
122 cd $(DOCDIR)\html\dialoged
123 -hhc dlged.hhp
124 move $(DOCDIR)\html\dialoged\dlged.chm $(DOCDIR)\htmlhelp\dialoged.chm
125 cd $(THISDIR)
126
127 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
128 # files, renamed to htb.
129 # This can then be used with e.g. helpview.
130 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
131 $(DOCDIR)\htb\dialoged.htb: $(DOCDIR)\html\dialoged\dlged.htm
132 cd $(DOCDIR)\html\dialoged
133 -erase dialoged.zip dialoged.htb
134 zip dialoged.zip *.htm *.gif *.hhp *.hhc *.hhk
135 -mkdir $(DOCDIR)\htb
136 move dialoged.zip $(DOCDIR)\htb\dialoged.htb
137 cd $(THISDIR)
138
139 $(LOCALDOCDIR)\dialoged.dvi: $(DOCSOURCES)
140 cd $(LOCALDOCDIR)
141 -latex dialoged
142 -latex dialoged
143 -makeindx dialoged
144 -bibtex dialoged
145 -latex dialoged
146 -latex dialoged
147 cd $(THISDIR)
148
149 $(WXDIR)\docs\ps\dialoged.ps: $(LOCALDOCDIR)\dialoged.dvi
150 cd $(LOCALDOCDIR)
151 -dvips32 -o dialoged.ps dialoged
152 move dialoged.ps $(WXDIR)\docs\ps\dialoged.ps
153 cd $(THISDIR)
154
155