]>
Commit | Line | Data |
---|---|---|
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 wxTree class 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 | TREEDIR = $(WXDIR)\utils\wxtree | |
17 | THISDIR = $(WXDIR)\utils\wxtree\src | |
18 | EXTRALIBS=$(WXDIR)\lib\wxtree.lib | |
19 | DOCDIR=$(WXDIR)\docs | |
20 | LOCALDOCDIR=$(WXDIR)\utils\wxtree\docs | |
21 | ||
22 | !include $(WXDIR)\src\ntwxwin.mak | |
23 | ||
24 | PROGRAM=test | |
25 | ||
26 | OBJECTS = wxtree.obj | |
27 | PROGOBJECTS = $(PROGRAM).obj | |
28 | LIBTARGET=$(WXDIR)\lib\wxtree.lib | |
29 | ||
30 | all: $(LIBTARGET) | |
31 | ||
32 | $(PROGRAM): $(PROGRAM).exe | |
33 | ||
34 | wx: | |
35 | cd $(WXDIR)\src\msw | |
36 | nmake -f makefile.nt FINAL=$(FINAL) | |
37 | cd $(THISDIR) | |
38 | ||
39 | wxclean: | |
40 | cd $(WXDIR)\src\msw | |
41 | nmake -f makefile.nt clean | |
42 | cd $(THISDIR) | |
43 | ||
44 | $(LIBTARGET): $(OBJECTS) | |
45 | -erase $(LIBTARGET) | |
46 | $(implib) @<< | |
47 | -out:$(LIBTARGET) | |
48 | -machine:$(CPU) | |
49 | $(OBJECTS) | |
50 | << | |
51 | ||
52 | $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(PROGOBJECTS) $(LIBTARGET) $(PROGRAM).res | |
53 | $(link) @<< | |
54 | -out:$(PROGRAM).exe | |
55 | $(LINKFLAGS) | |
56 | $(DUMMYOBJ) $(PROGOBJECTS) $(PROGRAM).res | |
57 | $(LIBS) | |
58 | << | |
59 | ||
60 | wxtree.obj: wxtree.h wxtree.$(SRCSUFF) $(DUMMYOBJ) | |
61 | $(cc) @<< | |
62 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
63 | << | |
64 | ||
65 | $(PROGRAM).obj: $(PROGRAM).h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ) | |
66 | $(cc) @<< | |
67 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
68 | << | |
69 | ||
70 | $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc | |
71 | $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc | |
72 | ||
73 | ||
74 | clean: | |
75 | -erase *.obj | |
76 | -erase *.sbr | |
77 | -erase *.exe | |
78 | -erase *.res | |
79 | -erase *.map | |
80 | -erase *.pdb | |
81 | -erase $(LIBTARGET) | |
82 | ||
83 | DOCSOURCES=$(LOCALDOCDIR)\wxtree.tex $(LOCALDOCDIR)\classes.tex | |
84 | ||
85 | html: $(DOCDIR)\html\wxtree\tree.htm | |
86 | hlp: $(DOCDIR)\winhelp\wxtree.hlp | |
87 | pdfrtf: $(DOCDIR)\pdf\wxtree.rtf | |
88 | ps: $(WXDIR)\docs\ps\wxtree.ps | |
89 | ||
90 | $(DOCDIR)\winhelp\wxtree.hlp: $(LOCALDOCDIR)\wxtree.rtf $(LOCALDOCDIR)\wxtree.hpj | |
91 | cd $(LOCALDOCDIR) | |
92 | -erase wxtree.ph | |
93 | hc wxtree | |
94 | move wxtree.hlp $(DOCDIR)\winhelp\wxtree.hlp | |
95 | move wxtree.cnt $(DOCDIR)\winhelp\wxtree.cnt | |
96 | cd $(THISDIR) | |
97 | ||
98 | $(LOCALDOCDIR)\wxtree.rtf: $(DOCSOURCES) | |
99 | cd $(LOCALDOCDIR) | |
100 | -start /w tex2rtf $(LOCALDOCDIR)\wxtree.tex $(LOCALDOCDIR)\wxtree.rtf -twice -winhelp | |
101 | cd $(THISDIR) | |
102 | ||
103 | $(DOCDIR)\pdf\wxtree.rtf: $(DOCSOURCES) | |
104 | cd $(LOCALDOCDIR) | |
105 | -copy *.bmp $(DOCDIR)\pdf | |
106 | -start /w tex2rtf $(LOCALDOCDIR)\wxtree.tex $(DOCDIR)\pdf\wxtree.rtf -twice -rtf | |
107 | cd $(THISDIR) | |
108 | ||
109 | $(DOCDIR)\html\wxtree\tree.htm: $(DOCSOURCES) | |
110 | cd $(LOCALDOCDIR) | |
111 | -mkdir $(DOCDIR)\html\wxtree | |
112 | -start /w tex2rtf $(LOCALDOCDIR)\wxtree.tex $(DOCDIR)\html\wxtree\tree.htm -twice -html | |
113 | -erase $(DOCDIR)\html\wxtree\*.con | |
114 | -erase $(DOCDIR)\html\wxtree\*.ref | |
115 | cd $(THISDIR) | |
116 | ||
117 | $(LOCALDOCDIR)\wxtree.dvi: $(DOCSOURCES) | |
118 | cd $(LOCALDOCDIR) | |
119 | -latex wxtree | |
120 | -latex wxtree | |
121 | -makeindx wxtree | |
122 | -bibtex wxtree | |
123 | -latex wxtree | |
124 | -latex wxtree | |
125 | cd $(THISDIR) | |
126 | ||
127 | $(WXDIR)\docs\ps\wxtree.ps: $(LOCALDOCDIR)\wxtree.dvi | |
128 | cd $(LOCALDOCDIR) | |
129 | -dvips32 -o wxtree.ps wxtree | |
130 | move wxtree.ps $(WXDIR)\docs\ps\wxtree.ps | |
131 | cd $(THISDIR) | |
132 | ||
133 |