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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [win/] [makefile.bc] - Blame information for rev 1782

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# makefile.bc --
2
#
3
#       Borland C++ 4.5/5.0 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
# uncomment the following two lines to compile with TCL_MEM_DEBUG
12
#DEBUGDEFINES   =TCL_MEM_DEBUG
13
 
14
#----------------------------------------------------------------------
15
# Environment setting
16
#
17
# You can set the following variables in your DOS environment. This
18
# way you don't need to change this file. E.g.:
19
#
20
#       set TCL_VER=7.5
21
#       make -f makefile.vc
22
#
23
# You can also set these variables in the command line to make. E.g.:
24
#
25
#       make TCL_VER=7.5 -f makefile.bc
26
#
27
# TOOLS       = location of BC++ 32-bit development tools.
28
#               (DEFAULT: C:\BC45)
29
# TIX_DEBUG   = Compile Tix with debug information.
30
#               (DEFAULT: undefined -- debug is not enabled.)
31
# TCL_VER     = version of Tcl to compile with. Should be either 7.5
32
#               or 7.6
33
#               (DEFAULT: Compile with Tcl 7.6)
34
#----------------------------------------------------------------------
35
 
36
!IFNDEF TOOLS
37
TOOLS = C:\BC45
38
!ENDIF
39
 
40
!IFNDEF TIX_DEBUG
41
NODEBUG = 1
42
!ENDIF
43
 
44
!IFNDEF TCL_VER
45
TCL_VER = 7.6
46
!ENDIF
47
 
48
!IF "$(TCL_VER)" == "7.5"
49
 
50
TMPDIR  = tcl7.5
51
TCLDIR  = ..\..\tcl7.5
52
TKDIR   = ..\..\tk4.1
53
TCLLIB  = tcl75.lib
54
TCLDLL  = tcl75.dll
55
TKLIB   = tk41.lib
56
TKDLL   = tk41.dll
57
TIXLIB  = $(TMPDIR)\tix4175.lib
58
TIXDLL  = $(TMPDIR)\tix4175.dll
59
TIXWISH = $(TMPDIR)\tix4175.exe
60
 
61
CONSOLE_OBJ = tkConsole41.obj
62
 
63
!ENDIF
64
 
65
!IF "$(TCL_VER)" == "7.6"
66
 
67
TMPDIR  = tcl7.6
68
TCLDIR  = ..\..\tcl7.6
69
TKDIR   = ..\..\tk4.2
70
TCLLIB  = tcl76.lib
71
TCLDLL  = tcl76.dll
72
TKLIB   = tk42.lib
73
TKDLL   = tk42.dll
74
TIXLIB  = $(TMPDIR)\tix4176.lib
75
TIXDLL  = $(TMPDIR)\tix4176.dll
76
TIXWISH = $(TMPDIR)\tix4176.exe
77
 
78
CONSOLE_OBJ = tkConsole42.obj
79
 
80
!ENDIF
81
 
82
!IF "$(TCL_VER)" == "8.0a1"
83
 
84
TMPDIR  = tcl8.0
85
TCLDIR  = ..\..\tcl8.0a1
86
TKDIR   = ..\..\tk8.0a1
87
TCLLIB  = tcl80.lib
88
TCLDLL  = tcl80.dll
89
TKLIB   = tk80.lib
90
TKDLL   = tk80.dll
91
TIXLIB  = $(TMPDIR)\tix4180.lib
92
TIXDLL  = $(TMPDIR)\tix4180.dll
93
TIXWISH = $(TMPDIR)\tix4180.exe
94
 
95
CONSOLE_OBJ = tkConsole80a1.obj
96
 
97
!ENDIF
98
 
99
!IF "$(TCL_VER)" == "8.0b1"
100
 
101
TMPDIR  = tcl8.0
102
TCLDIR  = ..\..\tcl8.0b1
103
TKDIR   = ..\..\tk8.0b1
104
TCLLIB  = tcl80.lib
105
TCLDLL  = tcl80.dll
106
TKLIB   = tk80.lib
107
TKDLL   = tk80.dll
108
TIXLIB  = $(TMPDIR)\tix4180.lib
109
TIXDLL  = $(TMPDIR)\tix4180.dll
110
TIXWISH = $(TMPDIR)\tix4180.exe
111
 
112
CONSOLE_OBJ = tkConsole80b1.obj
113
 
114
!ENDIF
115
 
116
!IF "$(TCL_VER)" == "2.2i"
117
 
118
TMPDIR  = itcl2.2
119
ITCL_DIR = ..\..\itcl2.2
120
TCLDIR  = $(ITCL_DIR)\tcl7.6
121
TKDIR   = $(ITCL_DIR)\tk4.2
122
TCLLIB  = tcl76i.lib
123
TCLDLL  = tcl76i.dll
124
TKLIB   = tk42i.lib
125
TKDLL   = tk42i.dll
126
TIXLIB  = $(TMPDIR)\tix41761.lib
127
TIXDLL  = $(TMPDIR)\tix41761.dll
128
TIXWISH = $(TMPDIR)\tix41761.exe
129
 
130
CONSOLE_OBJ = tkConsole42.obj
131
 
132
ITCL_LIBS     = $(ITCL_DIR)\itcl\win\itcl22.lib $(ITCL_DIR)\itk\win\itk22.lib
133
ITCL_INCLUDES = $(ITCL_DIR)\itcl\generic;$(ITCL_DIR)\itk\generic
134
ITCL_DEFINES  = ITCL_2
135
!ENDIF
136
 
137
!IFNDEF TCLDIR
138
!ERROR "Unsupported Tcl version $(TCL_VER)"
139
!ENDIF
140
 
141
#
142
# ROOT = top of source tree
143
# TMPDIR = location where .obj files should be stored during build
144
#
145
 
146
ROOT    = ..
147
 
148
#
149
# Borland C++ tools
150
#
151
 
152
BORLAND = $(TOOLS)
153
IMPLIB  = Implib
154
BCC32   = Bcc32
155
BCC     = Bcc
156
RC      = brcc32
157
CP      = copy
158
RM      = del
159
 
160
TCL_INCLUDES    = $(TCLDIR)\generic;$(TCLDIR)\win;$(ITCL_INCLUDES)
161
TK_INCLUDES     = $(TKDIR)\generic;$(TKDIR)\xlib;$(TKDIR)\win
162
TIX_INCLUDES    = $(ROOT)\generic;$(ROOT)\win
163
INCLUDES        = $(BORLAND)\include;$(TIX_INCLUDES);$(TK_INCLUDES);$(TCL_INCLUDES)
164
 
165
LIBDIRS         = $(BORLAND)\lib;$(ROOT)\win
166
TCLLIBDIR       = $(TCLDIR)\win
167
TKLIBDIR        = $(TKDIR)\win
168
 
169
!ifndef DEBUG
170
 
171
# these macros cause maximum optimization and no symbols
172
DEBUGLDFLAGS =
173
DEBUGCCFLAGS = -v- -vi- -O2
174
 
175
!else
176
 
177
# these macros enable debugging
178
DEBUGLDFLAGS = -v
179
DEBUGCCFLAGS = -k -Od -v
180
 
181
!endif
182
 
183
DEFINES = _RTLDLL;$(DEBUGDEFINES);__BORLAND;$(ITCL_DEFINES)
184
 
185
 
186
PROJECTCCFLAGS= $(DEBUGCCFLAGS) -w-par -w-stu
187
 
188
LNFLAGS_exe = -Tpe -aa -c $(DEBUGLDFLAGS) $(BORLAND)\lib\c0w32
189
LNFLAGS_dll = -Tpd -aa -c $(DEBUGLDFLAGS) $(BORLAND)\lib\c0d32
190
 
191
LNLIBS_exe=$(TIXLIB) $(TKLIBDIR)\$(TKLIB) $(TCLLIBDIR)\$(TCLLIB) \
192
    $(ITCL_LIBS) import32 cw32i
193
LNLIBS_dll=$(TKLIBDIR)\$(TKLIB) $(TCLLIBDIR)\$(TCLLIB) \
194
    $(ITCL_LIBS) import32 cw32i
195
 
196
#
197
# Global makefile settings
198
#
199
 
200
.AUTODEPEND
201
.CACHEAUTODEPEND
202
 
203
.suffixes: .c .dll .lib .obj .exe
204
 
205
.path.c=$(ROOT)\win;$(ROOT)\generic;$(ROOT)\xlib
206
.path.obj=$(TMPDIR)
207
 
208
WISHOBJS = \
209
        $(TMPDIR)\tixWinMain.obj
210
 
211
TIXOBJS = \
212
        $(TMPDIR)\$(CONSOLE_OBJ) \
213
        $(TMPDIR)\tixClass.obj   \
214
        $(TMPDIR)\tixCmds.obj    \
215
        $(TMPDIR)\tixCompat.obj  \
216
        $(TMPDIR)\tixDiImg.obj   \
217
        $(TMPDIR)\tixDiITxt.obj  \
218
        $(TMPDIR)\tixDiStyle.obj \
219
        $(TMPDIR)\tixDItem.obj   \
220
        $(TMPDIR)\tixDiText.obj  \
221
        $(TMPDIR)\tixDiWin.obj   \
222
        $(TMPDIR)\tixError.obj   \
223
        $(TMPDIR)\tixForm.obj    \
224
        $(TMPDIR)\tixFormMisc.obj\
225
        $(TMPDIR)\tixGeometry.obj\
226
        $(TMPDIR)\tixGrData.obj  \
227
        $(TMPDIR)\tixGrid.obj    \
228
        $(TMPDIR)\tixGrFmt.obj   \
229
        $(TMPDIR)\tixGrRC.obj    \
230
        $(TMPDIR)\tixGrSel.obj   \
231
        $(TMPDIR)\tixGrUtl.obj   \
232
        $(TMPDIR)\tixHLCol.obj   \
233
        $(TMPDIR)\tixHLHdr.obj   \
234
        $(TMPDIR)\tixHLInd.obj   \
235
        $(TMPDIR)\tixHList.obj   \
236
        $(TMPDIR)\tixImgCmp.obj  \
237
        $(TMPDIR)\tixImgXpm.obj  \
238
        $(TMPDIR)\tixInit.obj    \
239
        $(TMPDIR)\tixItcl.obj    \
240
        $(TMPDIR)\tixList.obj    \
241
        $(TMPDIR)\tixMethod.obj  \
242
        $(TMPDIR)\tixNBFrame.obj \
243
        $(TMPDIR)\tixOption.obj  \
244
        $(TMPDIR)\tixScroll.obj  \
245
        $(TMPDIR)\tixSmpLs.obj   \
246
        $(TMPDIR)\tixTList.obj   \
247
        $(TMPDIR)\tixUtils.obj   \
248
        $(TMPDIR)\tixWCmpt.obj   \
249
        $(TMPDIR)\tixWidget.obj  \
250
        $(TMPDIR)\tixWinDraw.obj \
251
        $(TMPDIR)\tixWinXpm.obj  \
252
        $(TMPDIR)\tixWinWm.obj
253
 
254
#
255
# Targets
256
#
257
 
258
all: cfgdll $(TIXDLL) cfgexe $(TIXWISH) cfgcln
259
test: cfgdll $(TIXDLL) cfgtest $(TKTEST) cfgcln
260
 
261
# Implicit Targets
262
 
263
.c.obj:
264
        @$(BCC32) {$< }
265
 
266
.dll.lib:
267
        $(IMPLIB) -c $@ $<
268
 
269
.rc.res:
270
        $(RC) -i$(INCLUDES) $<
271
 
272
#
273
# Special case object file targets
274
#
275
 
276
$(TMPDIR)\testMain.obj : $(ROOT)\win\tixWinMain.c
277
        $(BCC32) -c -o$@ $(ROOT)\win\tixWinMain.c
278
 
279
#
280
# Configuration file targets - these files are implicitly used by the compiler
281
#
282
 
283
cfgdll:
284
        @$(CP) &&|
285
                -n$(TMPDIR) -I$(INCLUDES) -c -WD
286
                -D$(DEFINES) -3 -d $(PROJECTCCFLAGS)
287
| bcc32.cfg >NUL
288
 
289
cfgexe:
290
        @$(CP) &&|
291
                -n$(TMPDIR) -I$(INCLUDES) -c -W
292
                -D$(DEFINES) -3 -d $(PROJECTCCFLAGS)
293
| bcc32.cfg >NUL
294
 
295
cfgtest:
296
        @$(CP) &&|
297
                -n$(TMPDIR) -I$(INCLUDES) -c -W
298
                -D$(DEFINES);TCL_TEST -3 -d $(PROJECTCCFLAGS)
299
| bcc32.cfg >NUL
300
 
301
cfgcln:
302
        @$(RM) bcc32.cfg
303
 
304
#
305
# Executable targets
306
#
307
 
308
$(TIXDLL): $(TIXOBJS) tix.def
309
        tlink32 -L$(LIBDIRS) @&&|
310
$(LNFLAGS_dll) $(TIXOBJS)
311
$@
312
-x
313
$(LNLIBS_dll)
314
tix.def
315
|
316
 
317
$(TIXWISH): $(WISHOBJS) $(TIXLIB) $(TIXOBJS)
318
        tlink32 -L$(LIBDIRS) @&&|
319
$(LNFLAGS_exe) $(WISHOBJS)
320
$@
321
-x
322
$(LNLIBS_exe)
323
|, &&|
324
EXETYPE WINDOWS
325
CODE PRELOAD MOVEABLE DISCARDABLE
326
DATA PRELOAD MOVEABLE MULTIPLE
327
|,
328
 
329
#
330
# Other dependencies
331
#
332
 
333
# The following rule automatically generates a tix.def file containing
334
# an export entry for every public symbol in the $(TKDLL) library.
335
 
336
tix.def: $(TIXOBJS)
337
        $(TCLLIBDIR)\dumpexts.exe -o $@ $(TKDLL) @&&|
338
                $(TIXOBJS)
339
|
340
 
341
# remove all generated files
342
 
343
clean:
344
        -del $(TMPDIR)\*.obj
345
        -del $(TMPDIR)\*.exp
346
        -del $(TMPDIR)\*.res
347
        -del $(TMPDIR)\*.def
348
        -del $(TIXLIB)
349
        -del $(TIXDLL)
350
        -del $(TIXWISH)
351
        -del bcc32.cfg
352
 
353
dist:
354
        $(MAKE) TCL_VER=7.5
355
        $(MAKE) TCL_VER=7.6
356
        $(MAKE) TCL_VER=8.0b1
357
        $(MAKE) TCL_VER=2.2i
358
 
359
distclean:
360
        $(MAKE) -f makefile.bc TCL_VER=7.5 clean
361
        $(MAKE) -f makefile.bc TCL_VER=7.6 clean
362
        $(MAKE) -f makefile.bc TCL_VER=8.0b1 clean
363
        $(MAKE) -f makefile.bc TCL_VER=2.2i clean
364
 
365
 
366
move:
367
        tclsh76 n:/bin/mkdist.tcl ../dist/windist.tcl

powered by: WebSVN 2.1.0

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