]>
Commit | Line | Data |
---|---|---|
457814b5 JS |
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 | ||
03f68f12 JS |
28 | OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\ |
29 | winprop.obj edtree.obj edlist.obj symbtabl.obj | |
457814b5 JS |
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 | ||
03f68f12 | 51 | dialoged.obj: winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ) |
457814b5 JS |
52 | $(cc) @<< |
53 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
54 | << | |
55 | ||
03f68f12 | 56 | winprop.obj: winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ) |
457814b5 JS |
57 | $(cc) @<< |
58 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
59 | << | |
60 | ||
03f68f12 | 61 | reswrite.obj: winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ) |
457814b5 JS |
62 | $(cc) @<< |
63 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
64 | << | |
65 | ||
03f68f12 | 66 | reseditr.obj: winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ) |
457814b5 JS |
67 | $(cc) @<< |
68 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
69 | << | |
70 | ||
03f68f12 | 71 | edtree.obj: winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ) |
457814b5 JS |
72 | $(cc) @<< |
73 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
74 | << | |
75 | ||
03f68f12 | 76 | edlist.obj: winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ) |
ae8351fc JS |
77 | $(cc) @<< |
78 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
79 | << | |
80 | ||
03f68f12 | 81 | dlghndlr.obj: winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ) |
ae8351fc JS |
82 | $(cc) @<< |
83 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
84 | << | |
85 | ||
03f68f12 | 86 | symbtabl.obj: symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ) |
457814b5 JS |
87 | $(cc) @<< |
88 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
89 | << | |
90 | ||
91 | $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc | |
92 | $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc | |
93 | ||
94 | wxprop: | |
95 | cd $(PROPDIR)\src | |
96 | nmake -f makefile.nt FINAL=$(FINAL) | |
97 | cd $(THISDIR) | |
98 | ||
99 | clean_wxprop: | |
100 | cd $(PROPDIR)\src | |
101 | nmake -f makefile.nt clean | |
102 | cd $(THISDIR) | |
103 | ||
104 | clean: | |
105 | -erase *.obj | |
106 | -erase *.sbr | |
107 | -erase *.exe | |
108 | -erase *.res | |
109 | -erase *.map | |
110 | -erase *.pdb | |
111 | ||
112 | cleanutils: clean clean_wxprop | |
113 | ||
114 | DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\ | |
115 | $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\ | |
116 | $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\tech.tex | |
117 | ||
118 | html: $(DOCDIR)\html\dialoged\dlged.htm | |
119 | hlp: $(DOCDIR)\winhelp\dialoged.hlp | |
120 | pdfrtf: $(DOCDIR)\pdf\dialoged.rtf | |
121 | ps: $(DOCDIR)\ps\dialoged.ps | |
122 | ||
123 | $(DOCDIR)\winhelp\dialoged.hlp: $(LOCALDOCDIR)\dialoged.rtf $(LOCALDOCDIR)\dialoged.hpj | |
124 | cd $(LOCALDOCDIR) | |
125 | -erase dialoged.ph | |
126 | hc dialoged | |
127 | move dialoged.hlp $(DOCDIR)\winhelp\dialoged.hlp | |
128 | move dialoged.cnt $(DOCDIR)\winhelp\dialoged.cnt | |
129 | cd $(THISDIR) | |
130 | ||
131 | $(LOCALDOCDIR)\dialoged.rtf: $(DOCSOURCES) | |
132 | cd $(LOCALDOCDIR) | |
133 | -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\dialoged.rtf -twice -winhelp | |
134 | cd $(THISDIR) | |
135 | ||
136 | $(DOCDIR)\pdf\dialoged.rtf: $(DOCSOURCES) | |
137 | cd $(LOCALDOCDIR) | |
138 | -copy *.bmp *.wmf $(DOCDIR)\pdf | |
139 | -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\pdf\dialoged.rtf -twice -rtf | |
140 | cd $(THISDIR) | |
141 | ||
142 | $(DOCDIR)\html\dialoged\dlged.htm: $(DOCSOURCES) | |
143 | cd $(LOCALDOCDIR) | |
144 | -mkdir $(DOCDIR)\html\dialoged | |
145 | -start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\html\dialoged\dlged.htm -twice -html | |
146 | -erase $(DOCDIR)\html\dialoged\*.con | |
147 | -erase $(DOCDIR)\html\dialoged\*.ref | |
148 | cd $(THISDIR) | |
149 | ||
150 | $(LOCALDOCDIR)\dialoged.dvi: $(DOCSOURCES) | |
151 | cd $(LOCALDOCDIR) | |
152 | -latex dialoged | |
153 | -latex dialoged | |
154 | -makeindx dialoged | |
155 | -bibtex dialoged | |
156 | -latex dialoged | |
157 | -latex dialoged | |
158 | cd $(THISDIR) | |
159 | ||
160 | $(WXDIR)\docs\ps\dialoged.ps: $(LOCALDOCDIR)\dialoged.dvi | |
161 | cd $(LOCALDOCDIR) | |
162 | -dvips32 -o dialoged.ps dialoged | |
163 | move dialoged.ps $(WXDIR)\docs\ps\dialoged.ps | |
164 | cd $(THISDIR) | |
165 | ||
166 |