]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | # File: makefile.vc | |
3 | # Author: Julian Smart | |
4 | # Created: 2001 | |
5 | # Updated: | |
6 | # Copyright: (c) 2001, Julian Smart | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds Plot class library (MS VC++). | |
11 | # Use FINAL=1 argument to nmake to build final version with no debugging | |
12 | # info | |
13 | ||
14 | ||
15 | # Set WXDIR for your system | |
16 | WXDIR = $(WXWIN) | |
17 | GIZMOSDIR = $(WXDIR)\contrib\src\plot | |
18 | GIZMOSINC = $(WXDIR)\contrib\include\wx\plot | |
19 | THISDIR = $(WXDIR)\contrib\src\plot | |
20 | DOCDIR=$(WXDIR)\contrib\docs | |
21 | LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\plot | |
22 | ||
23 | !include $(WXDIR)\src\makevc.env | |
24 | ||
25 | OBJECTS = $(D)\plot.obj | |
26 | ||
27 | LIBTARGET=$(WXDIR)\lib\plot$(LIBEXT).lib | |
28 | ||
29 | all: $(D) $(LIBTARGET) | |
30 | ||
31 | $(D) : | |
32 | mkdir $(D) | |
33 | ||
34 | wx: | |
35 | cd $(WXDIR)\src\msw | |
36 | nmake -f makefile.vc FINAL=$(FINAL) | |
37 | cd $(THISDIR) | |
38 | ||
39 | wxclean: | |
40 | cd $(WXDIR)\src\msw | |
41 | nmake -f makefile.vc clean | |
42 | cd $(THISDIR) | |
43 | ||
44 | $(LIBTARGET): $(OBJECTS) | |
45 | -erase $(LIBTARGET) | |
46 | $(implib) @<< | |
47 | -out:$(LIBTARGET) | |
48 | -machine:$(CPU) | |
49 | $(OBJECTS) | |
50 | << | |
51 | ||
52 | $(D)\plot.obj: plot.$(SRCSUFF) | |
53 | cl @<< | |
54 | $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF) | |
55 | << | |
56 | ||
57 | clean: | |
58 | -erase $(D)\*.obj | |
59 | -erase *.sbr | |
60 | -erase *.exe | |
61 | -erase *.res | |
62 | -erase *.map | |
63 | -erase *.pdb | |
64 | -erase $(LIBTARGET) | |
65 | ||
66 | DOCSOURCES=$(LOCALDOCDIR)\plot.tex \ | |
67 | $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\ | |
68 | $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\ | |
69 | $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex | |
70 | ||
71 | html: $(DOCDIR)\html\plot\plot.htm | |
72 | htmlhelp: $(DOCDIR)\htmlhelp\plot.chm | |
73 | htb: $(DOCDIR)\htb\plot.htb | |
74 | hlp: $(DOCDIR)\winhelp\plot.hlp | |
75 | pdfrtf: $(DOCDIR)\pdf\plot.rtf | |
76 | ps: $(DOCDIR)\ps\plot.ps | |
77 | ||
78 | touchmanual: | |
79 | touch $(LOCALDOCDIR)\plot.tex | |
80 | ||
81 | ||
82 | $(DOCDIR)\winhelp\plot.hlp: $(LOCALDOCDIR)\plot.rtf $(LOCALDOCDIR)\plot.hpj | |
83 | cd $(LOCALDOCDIR) | |
84 | -erase plot.ph | |
85 | hc plot | |
86 | move plot.hlp $(DOCDIR)\winhelp\plot.hlp | |
87 | move plot.cnt $(DOCDIR)\winhelp\plot.cnt | |
88 | cd $(THISDIR) | |
89 | ||
90 | $(LOCALDOCDIR)\plot.rtf: $(DOCSOURCES) | |
91 | cd $(LOCALDOCDIR) | |
92 | -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\plot.tex $(LOCALDOCDIR)\plot.rtf -twice -winhelp | |
93 | cd $(THISDIR) | |
94 | ||
95 | $(DOCDIR)\pdf\plot.rtf: $(DOCSOURCES) | |
96 | cd $(LOCALDOCDIR) | |
97 | -copy *.bmp $(DOCDIR)\pdf | |
98 | -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\plot.tex $(DOCDIR)\pdf\plot.rtf -twice -rtf | |
99 | cd $(THISDIR) | |
100 | ||
101 | $(DOCDIR)\html\plot\plot.htm: $(DOCSOURCES) | |
102 | cd $(LOCALDOCDIR) | |
103 | -mkdir $(DOCDIR)\html\plot | |
104 | copy *.gif $(DOCDIR)\html\plot | |
105 | -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\plot.tex $(DOCDIR)\html\plot\plot.htm -twice -html | |
106 | -erase $(DOCDIR)\html\plot\*.con | |
107 | -erase *.con | |
108 | -erase $(DOCDIR)\html\plot\*.ref | |
109 | cd $(THISDIR) | |
110 | ||
111 | $(DOCDIR)\htmlhelp\plot.chm: $(DOCDIR)\html\plot\plot.htm $(DOCDIR)\html\plot\plot.hhp | |
112 | cd $(DOCDIR)\html\plot | |
113 | -hhc plot.hhp | |
114 | move plot.chm $(DOCDIR)\htmlhelp\plot.chm | |
115 | cd $(THISDIR) | |
116 | ||
117 | # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk | |
118 | # files, renamed to htb. | |
119 | # This can then be used with e.g. helpview. | |
120 | # Optionally, a cached version of the .hhp file can be generated with hhp2cached. | |
121 | $(DOCDIR)\htb\plot.htb: $(DOCDIR)\html\plot\plot.htm | |
122 | cd $(DOCDIR)\html\plot | |
123 | -erase plot.zip plot.htb | |
124 | zip plot.zip *.htm *.gif *.hhp *.hhc *.hhk | |
125 | -mkdir $(DOCDIR)\htb | |
126 | move plot.zip $(DOCDIR)\htb\plot.htb | |
127 | cd $(THISDIR) | |
128 | ||
129 | $(LOCALDOCDIR)\plot.dvi: $(DOCSOURCES) | |
130 | cd $(LOCALDOCDIR) | |
131 | -latex plot | |
132 | -latex plot | |
133 | -makeindx plot | |
134 | -bibtex plot | |
135 | -latex plot | |
136 | -latex plot | |
137 | cd $(THISDIR) | |
138 | ||
139 | $(WXDIR)\docs\ps\plot.ps: $(LOCALDOCDIR)\plot.dvi | |
140 | cd $(LOCALDOCDIR) | |
141 | -dvips32 -o plot.ps plot | |
142 | move plot.ps $(WXDIR)\docs\ps\plot.ps | |
143 | cd $(THISDIR) | |
144 |