]> git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/makefile.nt
Dialog Editor bug fixes, several other small ones
[wxWidgets.git] / utils / dialoged / src / makefile.nt
1 #
2 # File: makefile.nt
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds wxProperty classes library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
12 # info
13
14 # Set WXDIR for your system
15 WXDIR = $(WXWIN)
16 THISDIR = $(WXDIR)\utils\dialoged\src
17 PROPDIR = $(WXDIR)\utils\wxprop
18 PROPLIB=$(PROPDIR)\lib\wxprop.lib
19 EXTRALIBS=$(PROPDIR)\lib\wxprop.lib
20 EXTRAINC=/I$(PROPDIR)\src
21 DOCDIR=$(WXDIR)\docs
22 LOCALDOCDIR=$(WXDIR)\utils\dialoged\docs
23
24 !include $(WXDIR)\src\ntwxwin.mak
25
26 PROGRAM=dialoged
27
28 OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\
29 winprop.obj edtree.obj edlist.obj symbtabl.obj winstyle.obj
30
31 all: wxprop dialoged.exe
32
33 wx:
34 cd $(WXDIR)\src\msw
35 nmake -f makefile.nt FINAL=$(FINAL)
36 cd $(THISDIR)
37
38 wxclean:
39 cd $(WXDIR)\src\msw
40 nmake -f makefile.nt clean
41 cd $(THISDIR)
42
43 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROPLIB) $(PROGRAM).res
44 $(link) @<<
45 -out:$(PROGRAM).exe
46 $(LINKFLAGS)
47 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
48 $(LIBS)
49 <<
50
51 dialoged.obj: winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
52 $(cc) @<<
53 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
54 <<
55
56 winprop.obj: winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ)
57 $(cc) @<<
58 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
59 <<
60
61 reswrite.obj: winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
62 $(cc) @<<
63 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
64 <<
65
66 reseditr.obj: winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
67 $(cc) @<<
68 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
69 <<
70
71 edtree.obj: winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ)
72 $(cc) @<<
73 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
74 <<
75
76 edlist.obj: winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ)
77 $(cc) @<<
78 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
79 <<
80
81 dlghndlr.obj: winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
82 $(cc) @<<
83 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
84 <<
85
86 symbtabl.obj: symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ)
87 $(cc) @<<
88 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
89 <<
90
91 winstyle.obj: winstyle.h winstyle.$(SRCSUFF) $(DUMMYOBJ)
92 $(cc) @<<
93 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
94 <<
95
96 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
97 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
98
99 wxprop:
100 cd $(PROPDIR)\src
101 nmake -f makefile.nt FINAL=$(FINAL)
102 cd $(THISDIR)
103
104 clean_wxprop:
105 cd $(PROPDIR)\src
106 nmake -f makefile.nt clean
107 cd $(THISDIR)
108
109 clean:
110 -erase *.obj
111 -erase *.sbr
112 -erase *.exe
113 -erase *.res
114 -erase *.map
115 -erase *.pdb
116
117 cleanutils: clean clean_wxprop
118
119 DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\
120 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
121 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\tech.tex
122
123 html: $(DOCDIR)\html\dialoged\dlged.htm
124 hlp: $(DOCDIR)\winhelp\dialoged.hlp
125 pdfrtf: $(DOCDIR)\pdf\dialoged.rtf
126 ps: $(DOCDIR)\ps\dialoged.ps
127
128 $(DOCDIR)\winhelp\dialoged.hlp: $(LOCALDOCDIR)\dialoged.rtf $(LOCALDOCDIR)\dialoged.hpj
129 cd $(LOCALDOCDIR)
130 -erase dialoged.ph
131 hc dialoged
132 move dialoged.hlp $(DOCDIR)\winhelp\dialoged.hlp
133 move dialoged.cnt $(DOCDIR)\winhelp\dialoged.cnt
134 cd $(THISDIR)
135
136 $(LOCALDOCDIR)\dialoged.rtf: $(DOCSOURCES)
137 cd $(LOCALDOCDIR)
138 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\dialoged.rtf -twice -winhelp
139 cd $(THISDIR)
140
141 $(DOCDIR)\pdf\dialoged.rtf: $(DOCSOURCES)
142 cd $(LOCALDOCDIR)
143 -copy *.bmp *.wmf $(DOCDIR)\pdf
144 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\pdf\dialoged.rtf -twice -rtf
145 cd $(THISDIR)
146
147 $(DOCDIR)\html\dialoged\dlged.htm: $(DOCSOURCES)
148 cd $(LOCALDOCDIR)
149 -mkdir $(DOCDIR)\html\dialoged
150 -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\html\dialoged\dlged.htm -twice -html
151 -erase $(DOCDIR)\html\dialoged\*.con
152 -erase $(DOCDIR)\html\dialoged\*.ref
153 cd $(THISDIR)
154
155 $(LOCALDOCDIR)\dialoged.dvi: $(DOCSOURCES)
156 cd $(LOCALDOCDIR)
157 -latex dialoged
158 -latex dialoged
159 -makeindx dialoged
160 -bibtex dialoged
161 -latex dialoged
162 -latex dialoged
163 cd $(THISDIR)
164
165 $(WXDIR)\docs\ps\dialoged.ps: $(LOCALDOCDIR)\dialoged.dvi
166 cd $(LOCALDOCDIR)
167 -dvips32 -o dialoged.ps dialoged
168 move dialoged.ps $(WXDIR)\docs\ps\dialoged.ps
169 cd $(THISDIR)
170
171