]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/gizmos/makefile.vc
another attempt to fix wxPanel/wxFrame::m_winLastFocused handling
[wxWidgets.git] / contrib / src / gizmos / makefile.vc
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
16 WXDIR = $(WXWIN)
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
23
24 !include $(WXDIR)\src\makevc.env
25
26 OBJECTS = $(D)\multicell.obj $(D)\splittree.obj $(D)\editlbox.obj
27
28 LIBTARGET=$(WXDIR)\lib\gizmos$(LIBEXT).lib
29
30 all: $(D) $(LIBTARGET)
31
32 $(D) :
33 mkdir $(D)
34
35 wx:
36 cd $(WXDIR)\src\msw
37 nmake -f makefile.vc FINAL=$(FINAL)
38 cd $(THISDIR)
39
40 wxclean:
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 clean:
69 -erase $(D)\*.obj
70 -erase *.sbr
71 -erase *.exe
72 -erase *.res
73 -erase *.map
74 -erase *.pdb
75 -erase $(LIBTARGET)
76
77 DOCSOURCES=$(LOCALDOCDIR)\gizmos.tex \
78 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
79 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
80 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
81
82 html: $(DOCDIR)\html\gizmos\gizmos.htm
83 htmlhelp: $(DOCDIR)\htmlhelp\gizmos.chm
84 htb: $(DOCDIR)\htb\gizmos.htb
85 hlp: $(DOCDIR)\winhelp\gizmos.hlp
86 pdfrtf: $(DOCDIR)\pdf\gizmos.rtf
87 ps: $(DOCDIR)\ps\gizmos.ps
88
89 touchmanual:
90 touch $(LOCALDOCDIR)\gizmos.tex
91
92
93 $(DOCDIR)\winhelp\gizmos.hlp: $(LOCALDOCDIR)\gizmos.rtf $(LOCALDOCDIR)\gizmos.hpj
94 cd $(LOCALDOCDIR)
95 -erase gizmos.ph
96 hc gizmos
97 move gizmos.hlp $(DOCDIR)\winhelp\gizmos.hlp
98 move gizmos.cnt $(DOCDIR)\winhelp\gizmos.cnt
99 cd $(THISDIR)
100
101 $(LOCALDOCDIR)\gizmos.rtf: $(DOCSOURCES)
102 cd $(LOCALDOCDIR)
103 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\gizmos.tex $(LOCALDOCDIR)\gizmos.rtf -twice -winhelp
104 cd $(THISDIR)
105
106 $(DOCDIR)\pdf\gizmos.rtf: $(DOCSOURCES)
107 cd $(LOCALDOCDIR)
108 -copy *.bmp $(DOCDIR)\pdf
109 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\gizmos.tex $(DOCDIR)\pdf\gizmos.rtf -twice -rtf
110 cd $(THISDIR)
111
112 $(DOCDIR)\html\gizmos\gizmos.htm: $(DOCSOURCES)
113 cd $(LOCALDOCDIR)
114 -mkdir $(DOCDIR)\html\gizmos
115 copy *.gif $(DOCDIR)\html\gizmos
116 -start $(WAITFLAG) tex2rtf $(LOCALDOCDIR)\gizmos.tex $(DOCDIR)\html\gizmos\gizmos.htm -twice -html
117 -erase $(DOCDIR)\html\gizmos\*.con
118 -erase *.con
119 -erase $(DOCDIR)\html\gizmos\*.ref
120 cd $(THISDIR)
121
122 $(DOCDIR)\htmlhelp\gizmos.chm: $(DOCDIR)\html\gizmos\gizmos.htm $(DOCDIR)\html\gizmos\gizmos.hhp
123 cd $(DOCDIR)\html\gizmos
124 -hhc gizmos.hhp
125 move gizmos.chm $(DOCDIR)\htmlhelp\gizmos.chm
126 cd $(THISDIR)
127
128 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
129 # files, renamed to htb.
130 # This can then be used with e.g. helpview.
131 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
132 $(DOCDIR)\htb\gizmos.htb: $(DOCDIR)\html\gizmos\gizmos.htm
133 cd $(DOCDIR)\html\gizmos
134 -erase gizmos.zip gizmos.htb
135 zip gizmos.zip *.htm *.gif *.hhp *.hhc *.hhk
136 -mkdir $(DOCDIR)\htb
137 move gizmos.zip $(DOCDIR)\htb\gizmos.htb
138 cd $(THISDIR)
139
140 $(LOCALDOCDIR)\gizmos.dvi: $(DOCSOURCES)
141 cd $(LOCALDOCDIR)
142 -latex gizmos
143 -latex gizmos
144 -makeindx gizmos
145 -bibtex gizmos
146 -latex gizmos
147 -latex gizmos
148 cd $(THISDIR)
149
150 $(WXDIR)\docs\ps\gizmos.ps: $(LOCALDOCDIR)\gizmos.dvi
151 cd $(LOCALDOCDIR)
152 -dvips32 -o gizmos.ps gizmos
153 move gizmos.ps $(WXDIR)\docs\ps\gizmos.ps
154 cd $(THISDIR)
155