]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/src/gizmos/makefile.vc
Commented out the bitmap-greying code until I have time to debug it
[wxWidgets.git] / contrib / src / gizmos / makefile.vc
... / ...
CommitLineData
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 $(D)\editlbox.obj $(D)\dynamicsash.obj $(D)\ledctrl.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
63$(D)\editlbox.obj: editlbox.$(SRCSUFF)
64 cl @<<
65$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
66<<
67
68$(D)\dynamicsash.obj: dynamicsash.$(SRCSUFF)
69 cl @<<
70$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
71<<
72
73clean:
74 -erase $(D)\*.obj
75 -erase *.sbr
76 -erase *.exe
77 -erase *.res
78 -erase *.map
79 -erase *.pdb
80 -erase $(LIBTARGET)
81
82DOCSOURCES=$(LOCALDOCDIR)\gizmos.tex \
83 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
84 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
85 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
86
87html: $(DOCDIR)\html\gizmos\gizmos.htm
88htmlhelp: $(DOCDIR)\htmlhelp\gizmos.chm
89htb: $(DOCDIR)\htb\gizmos.htb
90hlp: $(DOCDIR)\winhelp\gizmos.hlp
91pdfrtf: $(DOCDIR)\pdf\gizmos.rtf
92ps: $(DOCDIR)\ps\gizmos.ps
93
94touchmanual:
95 touch $(LOCALDOCDIR)\gizmos.tex
96
97
98$(DOCDIR)\winhelp\gizmos.hlp: $(LOCALDOCDIR)\gizmos.rtf $(LOCALDOCDIR)\gizmos.hpj
99 cd $(LOCALDOCDIR)
100 -erase gizmos.ph
101 hc gizmos
102 move gizmos.hlp $(DOCDIR)\winhelp\gizmos.hlp
103 move gizmos.cnt $(DOCDIR)\winhelp\gizmos.cnt
104 cd $(THISDIR)
105
106$(LOCALDOCDIR)\gizmos.rtf: $(DOCSOURCES)
107 cd $(LOCALDOCDIR)
108 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\gizmos.tex $(LOCALDOCDIR)\gizmos.rtf -twice -winhelp
109 cd $(THISDIR)
110
111$(DOCDIR)\pdf\gizmos.rtf: $(DOCSOURCES)
112 cd $(LOCALDOCDIR)
113 -copy *.bmp $(DOCDIR)\pdf
114 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\gizmos.tex $(DOCDIR)\pdf\gizmos.rtf -twice -rtf
115 cd $(THISDIR)
116
117$(DOCDIR)\html\gizmos\gizmos.htm: $(DOCSOURCES)
118 cd $(LOCALDOCDIR)
119 -mkdir $(DOCDIR)\html\gizmos
120 copy *.gif $(DOCDIR)\html\gizmos
121 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\gizmos.tex $(DOCDIR)\html\gizmos\gizmos.htm -twice -html
122 -erase $(DOCDIR)\html\gizmos\*.con
123 -erase *.con
124 -erase $(DOCDIR)\html\gizmos\*.ref
125 cd $(THISDIR)
126
127$(DOCDIR)\htmlhelp\gizmos.chm: $(DOCDIR)\html\gizmos\gizmos.htm $(DOCDIR)\html\gizmos\gizmos.hhp
128 cd $(DOCDIR)\html\gizmos
129 -hhc gizmos.hhp
130 move gizmos.chm $(DOCDIR)\htmlhelp\gizmos.chm
131 cd $(THISDIR)
132
133# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
134# files, renamed to htb.
135# This can then be used with e.g. helpview.
136# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
137$(DOCDIR)\htb\gizmos.htb: $(DOCDIR)\html\gizmos\gizmos.htm
138 cd $(DOCDIR)\html\gizmos
139 -erase gizmos.zip gizmos.htb
140 zip gizmos.zip *.htm *.gif *.hhp *.hhc *.hhk
141 -mkdir $(DOCDIR)\htb
142 move gizmos.zip $(DOCDIR)\htb\gizmos.htb
143 cd $(THISDIR)
144
145$(LOCALDOCDIR)\gizmos.dvi: $(DOCSOURCES)
146 cd $(LOCALDOCDIR)
147 -latex gizmos
148 -latex gizmos
149 -makeindx gizmos
150 -bibtex gizmos
151 -latex gizmos
152 -latex gizmos
153 cd $(THISDIR)
154
155$(WXDIR)\docs\ps\gizmos.ps: $(LOCALDOCDIR)\gizmos.dvi
156 cd $(LOCALDOCDIR)
157 -dvips32 -o gizmos.ps gizmos
158 move gizmos.ps $(WXDIR)\docs\ps\gizmos.ps
159 cd $(THISDIR)
160