6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds OGL classes library (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
15 # Set WXDIR for your system
17 GIZMOSDIR = $(WXDIR)\contrib\src\gizmos
18 GIZMOSINC = $(WXDIR)\contrib\include\wx\gizmos
19 THISDIR = $(WXDIR)\contrib\src\gizmos
20 EXTRAFLAGS=/DPROLOGIO=1
21 DOCDIR=$(WXDIR)\contrib\docs
22 LOCALDOCDIR=$(WXDIR)\contrib\docs\latex\gizmos
24 !include $(WXDIR)\src\makevc.env
26 OBJECTS = $(D)\multicell.obj $(D)\splittree.obj $(D)\editlbox.obj $(D)\dynamicsash.obj
28 LIBTARGET=$(WXDIR)\lib\gizmos$(LIBEXT).lib
30 all: $(D) $(LIBTARGET)
37 nmake -f makefile.vc FINAL=$(FINAL)
42 nmake -f makefile.vc clean
45 $(LIBTARGET): $(OBJECTS)
53 $(D)\multicell.obj: multicell.$(SRCSUFF)
55 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
58 $(D)\splittree.obj: splittree.$(SRCSUFF)
60 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
63 $(D)\editlbox.obj: editlbox.$(SRCSUFF)
65 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
68 $(D)\dynamicsash.obj: dynamicsash.$(SRCSUFF)
70 $(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
82 DOCSOURCES=$(LOCALDOCDIR)\gizmos.tex \
83 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
84 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
85 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
87 html: $(DOCDIR)\html\gizmos\gizmos.htm
88 htmlhelp: $(DOCDIR)\htmlhelp\gizmos.chm
89 htb: $(DOCDIR)\htb\gizmos.htb
90 hlp: $(DOCDIR)\winhelp\gizmos.hlp
91 pdfrtf: $(DOCDIR)\pdf\gizmos.rtf
92 ps: $(DOCDIR)\ps\gizmos.ps
95 touch $(LOCALDOCDIR)\gizmos.tex
98 $(DOCDIR)\winhelp\gizmos.hlp: $(LOCALDOCDIR)\gizmos.rtf $(LOCALDOCDIR)\gizmos.hpj
102 move gizmos.hlp $(DOCDIR)\winhelp\gizmos.hlp
103 move gizmos.cnt $(DOCDIR)\winhelp\gizmos.cnt
106 $(LOCALDOCDIR)\gizmos.rtf: $(DOCSOURCES)
108 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\gizmos.tex $(LOCALDOCDIR)\gizmos.rtf -twice -winhelp
111 $(DOCDIR)\pdf\gizmos.rtf: $(DOCSOURCES)
113 -copy *.bmp $(DOCDIR)\pdf
114 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\gizmos.tex $(DOCDIR)\pdf\gizmos.rtf -twice -rtf
117 $(DOCDIR)\html\gizmos\gizmos.htm: $(DOCSOURCES)
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
124 -erase $(DOCDIR)\html\gizmos\*.ref
127 $(DOCDIR)\htmlhelp\gizmos.chm: $(DOCDIR)\html\gizmos\gizmos.htm $(DOCDIR)\html\gizmos\gizmos.hhp
128 cd $(DOCDIR)\html\gizmos
130 move gizmos.chm $(DOCDIR)\htmlhelp\gizmos.chm
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
142 move gizmos.zip $(DOCDIR)\htb\gizmos.htb
145 $(LOCALDOCDIR)\gizmos.dvi: $(DOCSOURCES)
155 $(WXDIR)\docs\ps\gizmos.ps: $(LOCALDOCDIR)\gizmos.dvi
157 -dvips32 -o gizmos.ps gizmos
158 move gizmos.ps $(WXDIR)\docs\ps\gizmos.ps