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