OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [win/] [makefile.vc] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# makefile.vc --
2
#
3
#       Visual C++ 4.x makefile for Tix.
4
#
5
# Copyright (c) 1996, Expert Interface Technologies
6
#
7
# See the file "license.terms" for information on usage and redistribution
8
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9
#
10
 
11
#----------------------------------------------------------------------
12
# Environment setting
13
#
14
# You can set the following variables in your DOS environment. This
15
# way you don't need to change this file. E.g.:
16
#
17
#       set TCL_VER=7.5
18
#       nmake -f makefile.vc
19
#
20
# You can also set these variables in the command line to nmake. E.g.:
21
#
22
#       nmake TCL_VER=7.5 -f makefile.vc
23
#
24
# TOOLS32     = location of VC++ 32-bit development tools.
25
# TIX_DEBUG   = Compile Tix with debug information.
26
# TCL_VER     = version of Tcl to compile with. Should be either 7.5
27
#               or 7.6
28
#----------------------------------------------------------------------
29
 
30
!IFNDEF TOOLS32
31
TOOLS32 = C:\msdev
32
!ENDIF
33
 
34
!IFNDEF TIX_DEBUG
35
NODEBUG=1
36
!ENDIF
37
 
38
!IFNDEF TCL_VER
39
TCL_VER = 7.6
40
!ENDIF
41
 
42
!IF "$(TCL_VER)" == "7.5"
43
 
44
TMPDIR  = tcl7.5
45
TCLDIR  = ..\..\tcl7.5
46
TKDIR   = ..\..\tk4.1
47
TCLLIB  = tcl75.lib
48
TCLDLL  = tcl75.dll
49
TKLIB   = tk41.lib
50
TKDLL   = tk41.dll
51
TIXLIB  = $(TMPDIR)\tix4175.lib
52
TIXDLL  = $(TMPDIR)\tix4175.dll
53
TIXWISH = $(TMPDIR)\tix4175.exe
54
 
55
CONSOLE_OBJ = tkConsole41.obj
56
 
57
!ENDIF
58
 
59
!IF "$(TCL_VER)" == "7.6"
60
 
61
TMPDIR  = tcl7.6
62
TCLDIR  = ..\..\tcl7.6
63
TKDIR   = ..\..\tk4.2
64
TCLLIB  = tcl76.lib
65
TCLDLL  = tcl76.dll
66
TKLIB   = tk42.lib
67
TKDLL   = tk42.dll
68
TIXLIB  = $(TMPDIR)\tix4176.lib
69
TIXDLL  = $(TMPDIR)\tix4176.dll
70
TIXWISH = $(TMPDIR)\tix4176.exe
71
 
72
CONSOLE_OBJ = tkConsole42.obj
73
 
74
!ENDIF
75
 
76
!IF "$(TCL_VER)" == "8.0a1"
77
 
78
TMPDIR  = tcl8.0
79
TCLDIR  = ..\..\tcl8.0a1
80
TKDIR   = ..\..\tk8.0a1
81
TCLLIB  = tcl80.lib
82
TCLDLL  = tcl80.dll
83
TKLIB   = tk80.lib
84
TKDLL   = tk80.dll
85
TIXLIB  = $(TMPDIR)\tix4180.lib
86
TIXDLL  = $(TMPDIR)\tix4180.dll
87
TIXWISH = $(TMPDIR)\tix4180.exe
88
 
89
CONSOLE_OBJ = tkConsole80a1.obj
90
 
91
!ENDIF
92
 
93
!IF "$(TCL_VER)" == "8.0b1"
94
 
95
TMPDIR  = tcl8.0
96
TCLDIR  = ..\..\tcl8.0b1
97
TKDIR   = ..\..\tk8.0b1
98
TCLLIB  = tcl80.lib
99
TCLDLL  = tcl80.dll
100
TKLIB   = tk80.lib
101
TKDLL   = tk80.dll
102
TIXLIB  = $(TMPDIR)\tix4180.lib
103
TIXDLL  = $(TMPDIR)\tix4180.dll
104
TIXWISH = $(TMPDIR)\tix4180.exe
105
 
106
CONSOLE_OBJ = tkConsole80b1.obj
107
 
108
!ENDIF
109
 
110
!IF "$(TCL_VER)" == "2.2i"
111
 
112
TMPDIR  = itcl2.2
113
ITCL_DIR = ..\..\itcl2.2
114
TCLDIR  = $(ITCL_DIR)\tcl7.6
115
TKDIR   = $(ITCL_DIR)\tk4.2
116
TCLLIB  = tcl76i.lib
117
TCLDLL  = tcl76i.dll
118
TKLIB   = tk42i.lib
119
TKDLL   = tk42i.dll
120
TIXLIB  = $(TMPDIR)\tix41761.lib
121
TIXDLL  = $(TMPDIR)\tix41761.dll
122
TIXWISH = $(TMPDIR)\tix41761.exe
123
 
124
CONSOLE_OBJ = tkConsole42.obj
125
 
126
ITCL_LIBS   = $(ITCL_DIR)\itcl\win\itcl22.lib $(ITCL_DIR)\itk\win\itk22.lib
127
ITCL_CFLAGS = -DITCL_2 -I$(ITCL_DIR)\itcl\generic -I$(ITCL_DIR)\itk\generic
128
 
129
!ENDIF
130
 
131
!IFNDEF TCLDIR
132
!ERROR "Unsupported Tcl version $(TCL_VER)"
133
!ENDIF
134
 
135
 
136
# Project directories
137
#
138
# ROOT = top of source tree
139
# TMPDIR = location where .obj files should be stored during build
140
# TCLDIR = location of top of Tcl source heirarchy
141
#
142
 
143
ROOT    = ..
144
 
145
# uncomment the following two lines to compile with TCL_MEM_DEBUG
146
#DEBUGDEFINES   =-DTCL_MEM_DEBUG
147
 
148
# Make sure the VC++ tools are at the head of the path
149
PATH=$(TOOLS32)\bin;$(PATH)
150
 
151
TCLLIBDIR       = $(TCLDIR)\win
152
TKLIBDIR        = $(TKDIR)\win
153
WINDIR          = $(ROOT)\win
154
GENERICDIR      = $(ROOT)\generic
155
XLIBDIR         = $(ROOT)\xlib
156
 
157
cc32 = $(TOOLS32)\bin\cl -I$(TOOLS32)\include
158
rc32 = $(TOOLS32)\bin\rc
159
link32 = $(TOOLS32)\bin\link
160
 
161
#----------------------------------------------------------------------
162
# You shouldn't normally modify anything below this line
163
#----------------------------------------------------------------------
164
 
165
X_TK_INCLUDES = -I$(TOOLS32)\include \
166
        -I$(ROOT)\win -I$(ROOT)\generic \
167
        -I$(TKDIR)\generic -I$(TKDIR)\win -I$(TKDIR)\xlib \
168
        -I$(TCLDIR)\generic
169
 
170
TK_INCLUDES = /ML -D_Windows $(X_TK_INCLUDES)
171
 
172
TK_DEFINES = \
173
        -nologo $(DEBUGDEFINES)
174
 
175
WISHOBJS = \
176
        $(TMPDIR)\tixWinMain.obj
177
 
178
TIXOBJS = \
179
        $(TMPDIR)\$(CONSOLE_OBJ)  \
180
        $(TMPDIR)\tixClass.obj    \
181
        $(TMPDIR)\tixCmds.obj     \
182
        $(TMPDIR)\tixCompat.obj   \
183
        $(TMPDIR)\tixDiImg.obj    \
184
        $(TMPDIR)\tixDiITxt.obj   \
185
        $(TMPDIR)\tixDiStyle.obj  \
186
        $(TMPDIR)\tixDItem.obj    \
187
        $(TMPDIR)\tixDiText.obj   \
188
        $(TMPDIR)\tixDiWin.obj    \
189
        $(TMPDIR)\tixError.obj    \
190
        $(TMPDIR)\tixForm.obj     \
191
        $(TMPDIR)\tixFormMisc.obj \
192
        $(TMPDIR)\tixGeometry.obj \
193
        $(TMPDIR)\tixHLCol.obj    \
194
        $(TMPDIR)\tixHLHdr.obj    \
195
        $(TMPDIR)\tixHLInd.obj    \
196
        $(TMPDIR)\tixImgCmp.obj   \
197
        $(TMPDIR)\tixHlist.obj    \
198
        $(TMPDIR)\tixList.obj     \
199
        $(TMPDIR)\tixMethod.obj   \
200
        $(TMPDIR)\tixOption.obj   \
201
        $(TMPDIR)\tixSmpLs.obj    \
202
        $(TMPDIR)\tixWidget.obj   \
203
        $(TMPDIR)\tixInit.obj     \
204
        $(TMPDIR)\tixItcl.obj     \
205
        $(TMPDIR)\tixUtils.obj    \
206
        $(TMPDIR)\tixImgXpm.obj   \
207
        $(TMPDIR)\tixNBFrame.obj  \
208
        $(TMPDIR)\tixTList.obj    \
209
        $(TMPDIR)\tixGrid.obj     \
210
        $(TMPDIR)\tixGrData.obj   \
211
        $(TMPDIR)\tixGrRC.obj     \
212
        $(TMPDIR)\tixGrFmt.obj    \
213
        $(TMPDIR)\tixGrSel.obj    \
214
        $(TMPDIR)\tixGrUtl.obj    \
215
        $(TMPDIR)\tixScroll.obj   \
216
        $(TMPDIR)\tixWCmpt.obj    \
217
        $(TMPDIR)\tixWinDraw.obj  \
218
        $(TMPDIR)\tixWinXpm.obj   \
219
        $(TMPDIR)\tixWinWm.obj
220
 
221
CP = copy
222
 
223
!include    
224
 
225
all:    $(TIXDLL) $(TIXWISH)
226
 
227
$(TMPDIR)\tixvc.def: $(TIXOBJS)
228
        $(TCLLIBDIR)\dumpexts.exe -o $@ $(TIXDLL) @<<
229
                $(TIXOBJS)
230
<<
231
 
232
# USE THESE IF YOU DO NOT WANT TO LINK TO ON MSVCRT.DLL
233
#XGUILIBS = $(guilibs)
234
#XCVARS   = $(cvars)
235
 
236
XGUILIBS = $(guilibsdll)
237
XCVARS   = $(cvarsdll)
238
 
239
# (ToDo) $(TIXDLL) doesn't have resources to define its icon, etc.
240
#
241
$(TIXDLL): $(TIXOBJS) $(TMPDIR)\tixvc.def
242
        $(link32) $(linkdebug) $(dlllflags) -def:$(TMPDIR)\tixvc.def \
243
                $(TKLIBDIR)\$(TKLIB) $(TCLLIBDIR)\$(TCLLIB) $(XGUILIBS) \
244
                $(ITCL_LIBS) \
245
                -out:$(TIXDLL) @<<
246
                $(TIXOBJS)
247
<<
248
 
249
 
250
$(TIXWISH): $(WISHOBJS) $(TIXOBJS) $(TIXLIB) $(TMPDIR)\tixwish.res
251
        $(link32) $(linkdebug) $(guilflags) \
252
                $(WISHOBJS) $(TMPDIR)\tixwish.res $(TIXLIB) \
253
                $(TKLIBDIR)\$(TKLIB) $(TCLLIBDIR)\$(TCLLIB) $(XGUILIBS) \
254
                $(ITCL_LIBS) \
255
                -out:$(TIXWISH)
256
 
257
 
258
#
259
# Special case object file targets
260
#
261
 
262
$(TMPDIR)\testMain.obj: $(ROOT)\win\tixWinMain.c
263
        $(cc32) $(cdebug) $(cflags) $(ITCL_CFLAGS) $(XCVARS) $(TK_INCLUDES) \
264
                $(TK_DEFINES) -DTK_TEST -Fo$@ $?
265
 
266
#
267
# Implicit rules
268
#
269
 
270
{$(ROOT)\xlib}.c{$(TMPDIR)}.obj:
271
        $(cc32) $(cdebug) $(cflags) $(ITCL_CFLAGS) $(XCVARS) $(TK_INCLUDES) \
272
                $(TK_DEFINES) -Fo$(TMPDIR)\ $<
273
 
274
{$(ROOT)\generic}.c{$(TMPDIR)}.obj:
275
        $(cc32) $(cdebug) $(cflags) $(ITCL_CFLAGS) $(XCVARS) $(TK_INCLUDES) \
276
                $(TK_DEFINES) -Fo$(TMPDIR)\ $<
277
 
278
{$(ROOT)\win}.c{$(TMPDIR)}.obj:
279
        $(cc32) $(cdebug) $(cflags) $(ITCL_CFLAGS) $(XCVARS) $(TK_INCLUDES) \
280
                $(TK_DEFINES) -Fo$(TMPDIR)\ $<
281
 
282
{$(ROOT)\win\rc}.rc{$(TMPDIR)}.res:
283
        $(rc32) -fo $@ -r -i $(ROOT)\generic -i $(X_TK_INCLUDES) $<
284
 
285
clean:
286
        -del $(TMPDIR)\*.obj
287
        -del $(TMPDIR)\*.exp
288
        -del $(TMPDIR)\*.res
289
        -del $(TMPDIR)\*.def
290
        -del $(TIXLIB)
291
        -del $(TIXDLL)
292
        -del $(TIXWISH)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.