]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/canvas/makefile.vc
use full 32bit range for the process ids
[wxWidgets.git] / contrib / src / canvas / makefile.vc
CommitLineData
b9e5acef
JS
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
16WXDIR = $(WXWIN)
17GIZMOSDIR = $(WXDIR)\contrib\src\canvas
18GIZMOSINC = $(WXDIR)\contrib\include\wx\canvas
19THISDIR = $(WXDIR)\contrib\src\canvas
20DOCDIR=$(WXDIR)\contrib\docs
21LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\canvas
22
23!include $(WXDIR)\src\makevc.env
24
25OBJECTS = $(D)\bbox.obj $(D)\canvas.obj $(D)\liner.obj $(D)\polygon.obj
26
27LIBTARGET=$(WXDIR)\lib\canvas$(LIBEXT).lib
28
29all: $(D) $(LIBTARGET)
30
31$(D) :
32 mkdir $(D)
33
34wx:
35 cd $(WXDIR)\src\msw
36 nmake -f makefile.vc FINAL=$(FINAL)
37 cd $(THISDIR)
38
39wxclean:
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)\bbox.obj: bbox.$(SRCSUFF)
53 cl @<<
54$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
55<<
56
57$(D)\canvas.obj: canvas.$(SRCSUFF)
58 cl @<<
59$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
60<<
61
62$(D)\liner.obj: liner.$(SRCSUFF)
63 cl @<<
64$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
65<<
66
67$(D)\polygon.obj: polygon.$(SRCSUFF)
68 cl @<<
69$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
70<<
71
72clean:
73 -erase $(D)\*.obj
74 -erase *.sbr
75 -erase *.exe
76 -erase *.res
77 -erase *.map
78 -erase *.pdb
79 -erase $(LIBTARGET)
80
81DOCSOURCES=$(LOCALDOCDIR)\canvas.tex \
82 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
83 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
84 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
85
86html: $(DOCDIR)\html\canvas\canvas.htm
87htmlhelp: $(DOCDIR)\htmlhelp\canvas.chm
88htb: $(DOCDIR)\htb\canvas.htb
89hlp: $(DOCDIR)\winhelp\canvas.hlp
90pdfrtf: $(DOCDIR)\pdf\canvas.rtf
91ps: $(DOCDIR)\ps\canvas.ps
92
93touchmanual:
94 touch $(LOCALDOCDIR)\canvas.tex
95
96
97$(DOCDIR)\winhelp\canvas.hlp: $(LOCALDOCDIR)\canvas.rtf $(LOCALDOCDIR)\canvas.hpj
98 cd $(LOCALDOCDIR)
99 -erase canvas.ph
100 hc canvas
101 move canvas.hlp $(DOCDIR)\winhelp\canvas.hlp
102 move canvas.cnt $(DOCDIR)\winhelp\canvas.cnt
103 cd $(THISDIR)
104
105$(LOCALDOCDIR)\canvas.rtf: $(DOCSOURCES)
106 cd $(LOCALDOCDIR)
107 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\canvas.tex $(LOCALDOCDIR)\canvas.rtf -twice -winhelp
108 cd $(THISDIR)
109
110$(DOCDIR)\pdf\canvas.rtf: $(DOCSOURCES)
111 cd $(LOCALDOCDIR)
112 -copy *.bmp $(DOCDIR)\pdf
113 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\canvas.tex $(DOCDIR)\pdf\canvas.rtf -twice -rtf
114 cd $(THISDIR)
115
116$(DOCDIR)\html\canvas\canvas.htm: $(DOCSOURCES)
117 cd $(LOCALDOCDIR)
118 -mkdir $(DOCDIR)\html\canvas
119 copy *.gif $(DOCDIR)\html\canvas
120 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\canvas.tex $(DOCDIR)\html\canvas\canvas.htm -twice -html
121 -erase $(DOCDIR)\html\canvas\*.con
122 -erase *.con
123 -erase $(DOCDIR)\html\canvas\*.ref
124 cd $(THISDIR)
125
126$(DOCDIR)\htmlhelp\canvas.chm: $(DOCDIR)\html\canvas\canvas.htm $(DOCDIR)\html\canvas\canvas.hhp
127 cd $(DOCDIR)\html\canvas
128 -hhc canvas.hhp
129 move canvas.chm $(DOCDIR)\htmlhelp\canvas.chm
130 cd $(THISDIR)
131
132# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
133# files, renamed to htb.
134# This can then be used with e.g. helpview.
135# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
136$(DOCDIR)\htb\canvas.htb: $(DOCDIR)\html\canvas\canvas.htm
137 cd $(DOCDIR)\html\canvas
138 -erase canvas.zip canvas.htb
139 zip canvas.zip *.htm *.gif *.hhp *.hhc *.hhk
140 -mkdir $(DOCDIR)\htb
141 move canvas.zip $(DOCDIR)\htb\canvas.htb
142 cd $(THISDIR)
143
144$(LOCALDOCDIR)\canvas.dvi: $(DOCSOURCES)
145 cd $(LOCALDOCDIR)
146 -latex canvas
147 -latex canvas
148 -makeindx canvas
149 -bibtex canvas
150 -latex canvas
151 -latex canvas
152 cd $(THISDIR)
153
154$(WXDIR)\docs\ps\canvas.ps: $(LOCALDOCDIR)\canvas.dvi
155 cd $(LOCALDOCDIR)
156 -dvips32 -o canvas.ps canvas
157 move canvas.ps $(WXDIR)\docs\ps\canvas.ps
158 cd $(THISDIR)
159