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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [tools/] [domakefile.tcl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#!/bin/sh
2
# the next line restarts using tclsh \
3
exec tclsh "$0" "$@"
4
 
5
# Tis program is used to generate the Makefile.in files for building Unix
6
# binaries.
7
#
8
 
9
source [file join [file dirname [info script]] doxx.tcl]
10
 
11
p {
12
# Makefile --
13
#
14
# This file is a Makefile to compile Tix with Tk version
15
# @@_V_TK_VER_@@. If it has the name "Makefile.in" then it is a
16
# template for a Makefile; to generate the actual Makefile, run
17
# "./configure", which is a configuration script generated by the
18
# "autoconf" program (constructs like "@foo@" will get replaced in the
19
# actual Makefile.
20
 
21
#----------------------------------------------------------------
22
# Things you can change to personalize the Makefile for your own
23
# site (you can make these changes in either Makefile.in or
24
# Makefile, but changes to Makefile will get lost if you re-run
25
# the configuration script).
26
#----------------------------------------------------------------
27
 
28
# Default top-level directories in which to install architecture-
29
# specific files (exec_prefix) and machine-independent files such
30
# as scripts (prefix).  The values specified here may be overridden
31
# at configure-time with the --exec-prefix and --prefix options
32
# to the "configure" script.
33
 
34
prefix      = @prefix@
35
exec_prefix = @exec_prefix@
36
TIX_VERSION = @TIX_VERSION@
37
 
38
@SET_MAKE@
39
 
40
# Directory in which to install the library of Tix scripts and demos
41
# (note: you can set the TIX_LIBRARY environment variable at run-time to
42
# override the compiled-in location):
43
TIX_LIBRARY =   $(prefix)/lib/tix$(TIX_VERSION)
44
 
45
# Directory in which to install the archive libtix.a:
46
LIB_DIR =       $(exec_prefix)/lib
47
LIB_INSTALL_DIR = $(LIB_DIR)
48
LIB_RUNTIME_DIR = $(LIB_DIR)
49
 
50
# Directory in which to install the program tixwish:
51
BIN_DIR =       $(exec_prefix)/bin
52
 
53
# To change the compiler switches, for example to change from -O
54
# to -g, change the following line:
55
CFLAGS = -O
56
 
57
# To disable ANSI-C procedure prototypes reverse the comment characters
58
# on the following lines:
59
PROTO_FLAGS =
60
#PROTO_FLAGS = -DNO_PROTOTYPE
61
 
62
# To enable memory debugging reverse the comment characters on the following
63
# lines. Warning: if you enable memory debugging, you must do it
64
# *everywhere*, including all the code that calls Tcl, and you must use
65
# ckalloc and ckfree everywhere instead of malloc and free.
66
MEM_DEBUG_FLAGS =
67
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
68
 
69
# Some versions of make, like SGI's, use the following variable to
70
# determine which shell to use for executing commands:
71
SHELL =         /bin/sh
72
}
73
 
74
p74 {
75
# Location of the Tcl @@_V_TCL_VER_@@ source directory.
76
#
77
TCL_SRC_DIR     = @TCL_SRC_DIR@
78
 
79
# Location of the Tk @@_V_TK_VER_@@ source directory.
80
#
81
TK_SRC_DIR      = @TK_SRC_DIR@
82
 
83
# A "-I" switch that can be used when compiling to make all of the
84
# X11 include files accessible (the configure script will try to
85
# set this value, and will cause it to be an empty string if the
86
# include files are accessible via /usr/include).
87
X11_INCLUDES =  @XINCLUDES@
88
 
89
# Linker switch(es) to use to link with the X11 library archive (the
90
# configure script will try to set this value automatically, but you
91
# can override it).
92
X11_LIB_SWITCHES = @XLIBSW@
93
 
94
# Libraries to use when linking:  must include at least Tix, Tcl, Xlib,
95
# and the math library (in that order).  The "@LIBS@" part will be
96
# replaced (or has already been replaced) with relevant libraries as
97
# determined by the configure script.
98
LIBS = @ITK_BUILD_LIB_SPEC@ @ITCL_BUILD_LIB_SPEC@ \\
99
    $(TK_SRC_DIR)/libtk.a $(TCL_SRC_DIR)/libtcl.a \
100
    $(X11_LIB_SWITCHES) @LIBS@ @MATH_LIBS@
101
 
102
# Libraries for building a stand-alone Tclsh.
103
#
104
LIBS_TCLONLY = $(TCL_SRC_DIR)/libtcl.a @LIBS@ @MATH_LIBS@
105
 
106
RUN_TCLSH       = TCL_LIBRARY=$(TCL_SRC_DIR)/library \\
107
                  TK_LIBRARY=$(TK_SRC_DIR)/library \\
108
                  $(TCL_SRC_DIR)/tclsh
109
}
110
 
111
p75+ {
112
# Location of the Tcl @@_V_TCL_VER_@@ source directory.
113
#
114
TCL_SRC_DIR     = @TCL_SRC_DIR@
115
TCL_GENERIC_DIR = $(TCL_SRC_DIR)/generic
116
 
117
# Location of the Tk @@_V_TK_VER_@@ source directory.
118
#
119
TK_SRC_DIR      = @TK_SRC_DIR@
120
TK_GENERIC_DIR  = $(TK_SRC_DIR)/generic
121
 
122
# Libraries to use when linking:
123
LIBS = @ITK_BUILD_LIB_SPEC@ @ITCL_BUILD_LIB_SPEC@ \\
124
    @TK_BUILD_LIB_SPEC@ @TCL_BUILD_LIB_SPEC@ @TK_LIBS@
125
 
126
# Libraries for building a stand-alone Tclsh.
127
#
128
LIBS_TCLONLY = @TCL_BUILD_LIB_SPEC@ @TCL_LIBS@
129
 
130
RUN_TCLSH       = TCL_LIBRARY=$(TCL_SRC_DIR)/library \\
131
                  TK_LIBRARY=$(TK_SRC_DIR)/library \\
132
                  $(TCL_SRC_DIR)/unix/tclsh
133
}
134
 
135
pitcl {
136
# Location of the ITcl @@_V_ITCL_VER_@@ root directory.
137
#
138
ITCL_ROOT_DIR   = @ITCL_ROOT_DIR@
139
ITCL_SRC_DIR    = $(ITCL_ROOT_DIR)/itcl
140
ITK_SRC_DIR     = $(ITCL_ROOT_DIR)/itk
141
}
142
 
143
p {
144
 
145
#----------------------------------------------------------------
146
# The information below is modified by the configure script when
147
# Makefile is generated from Makefile.in.  You shouldn't normally
148
# modify any of this stuff by hand.
149
#----------------------------------------------------------------
150
}
151
 
152
p {
153
CC               = @CC@
154
}
155
 
156
p75+ {
157
SHLIB_CFLAGS     = @SHLIB_CFLAGS@
158
SHLIB_LD         = @SHLIB_LD@
159
SHLIB_SUFFIX     = @SHLIB_SUFFIX@
160
SHLIB_VERSION    = @SHLIB_VERSION@
161
TIX_SHLIB_CFLAGS = @TIX_SHLIB_CFLAGS@
162
TK_XINCLUDES     = @TK_XINCLUDES@
163
}
164
 
165
if !$ITCL {
166
    p {
167
ITCL_EXT =
168
    }
169
} else {
170
    p {
171
ITCL_EXT = .1
172
    }
173
}
174
 
175
p {
176
SRC_DIR          = @TIX_SRC_DIR@
177
GENERIC_DIR      = $(SRC_DIR)/generic
178
UNIX_DIR         = $(SRC_DIR)/unix
179
AC_FLAGS         = @DEFS@ @TIX_DEFS@
180
RANLIB           = @RANLIB@
181
INSTALL          = @TIX_SRC_DIR@/install.sh -c
182
INSTALL_PROGRAM  = @INSTALL_PROGRAM@
183
INSTALL_DATA     = @INSTALL_DATA@
184
 
185
TIX_LIB_FILE     = @TIX_LIB_FILE@
186
TIX_EXE_FILE     = @TIX_EXE_FILE@
187
TCL_SAM_FILE     = @TCL_SAM_FILE@
188
TK_SAM_FILE      = @TK_SAM_FILE@
189
TIX_SAM_FILE     = @TIX_SAM_FILE@
190
TCL_SAMEXE_FILE  = @TCL_SAMEXE_FILE@
191
TK_SAMEXE_FILE   = @TK_SAMEXE_FILE@
192
TIX_SAMEXE_FILE  = @TIX_SAMEXE_FILE@
193
 
194
INST_EXE         = $(TIX_EXE_FILE)$(TIX_VERSION).@@_V_TCL_VER_@@$(ITCL_EXT)
195
INST_TIX_SAMEXE  = $(TIX_SAMEXE_FILE)$(TIX_VERSION).@@_V_TCL_VER_@@$(ITCL_EXT)
196
INST_TK_SAMEXE   = $(TK_SAMEXE_FILE)@@_V_TK_VER_@@
197
INST_TCL_SAMEXE  = $(TCL_SAMEXE_FILE)@@_V_TCL_VER_@@
198
}
199
 
200
if $ENABLE_SAM {
201
    if $SAM_EXE {
202
        p {
203
SAM_TARGETS     = $(TCL_SAM_FILE)    $(TK_SAM_FILE)    $(TIX_SAM_FILE) \\
204
                  $(TCL_SAMEXE_FILE) $(TK_SAMEXE_FILE) $(TIX_SAMEXE_FILE)
205
        }
206
    } else {
207
        p {
208
SAM_TARGETS     = $(TIX_SAM_FILE)
209
        }
210
    }
211
}
212
 
213
p {
214
TIX_SAM_TARGETS = @TIX_SAM_TARGETS@
215
SAM_INSTALL     = @TIX_SAM_INSTALL@
216
}
217
 
218
 
219
if $ITCL {
220
    if {$subs(@@_V_ITCL_VER_@@) == "2.1"} {
221
        p {
222
ITCL21_CFLAGS = -DITCL_21=1
223
        }
224
    } else {
225
        p {
226
ITCL21_CFLAGS =
227
        }
228
    }
229
    if {$subs(@@_V_ITCL_VER_@@) == "2.0"} {
230
        p {
231
ITCL_CFLAGS      = -I$(ITCL_ROOT_DIR)/itcl -I$(ITCL_ROOT_DIR)/itk
232
        }
233
    } else {
234
        p {
235
ITCL_CFLAGS      = -I$(ITCL_ROOT_DIR)/itcl/generic \\
236
                   -I$(ITCL_ROOT_DIR)/itk/generic $(ITCL21_CFLAGS)
237
        }
238
    }
239
} else {
240
    p {
241
ITCL_CFLAGS      =
242
    }
243
}
244
 
245
p74 {
246
CC_SWITCHES = $(CFLAGS) $(AC_FLAGS) \\
247
    -I$(TCL_SRC_DIR) -I$(TK_SRC_DIR) $(ITCL_CFLAGS) \\
248
    -I$(GENERIC_DIR) -I$(UNIX_DIR) $(X11_INCLUDES)
249
}
250
 
251
p75+ {
252
CC_SWITCHES = $(CFLAGS) $(AC_FLAGS) -I$(TCL_GENERIC_DIR) \\
253
    -I$(TCL_SRC_DIR)/unix -I$(TK_GENERIC_DIR) -I$(TK_SRC_DIR)/unix \\
254
    $(ITCL_CFLAGS) \\
255
    -I$(GENERIC_DIR) -I$(UNIX_DIR) $(TK_XINCLUDES) $(TIX_SHLIB_CFLAGS)
256
}
257
 
258
 
259
p {
260
#----------------------------------------------------------------
261
# The information below should be usable as is. You shouldn't need
262
# to modify it.
263
#----------------------------------------------------------------
264
 
265
CORE_OBJS = \\
266
        tixClass.o \\
267
        tixCmds.o \\
268
        tixCompat.o \\
269
        tixError.o \\
270
        tixGeometry.o \\
271
        tixInit.o \\
272
        tixItcl.o \\
273
        tixList.o \\
274
        tixMethod.o \\
275
        tixOption.o  \\
276
        tixScroll.o \\
277
        tixSmpLs.o \\
278
        tixUtils.o \\
279
        tixWidget.o
280
 
281
DITEM_OBJS = \\
282
        tixDItem.o \\
283
        tixDiITxt.o \\
284
        tixDiImg.o \\
285
        tixDiStyle.o \\
286
        tixDiText.o \\
287
        tixDiWin.o
288
 
289
MANAGER_OBJS = \\
290
        tixForm.o \\
291
        tixFormMisc.o
292
 
293
WIDGET_OBJS = \\
294
        tixGrid.o \\
295
        tixGrData.o \\
296
        tixGrFmt.o \\
297
        tixGrRC.o \\
298
        tixGrSel.o \\
299
        tixGrSort.o \\
300
        tixGrUtl.o \\
301
        tixHList.o \\
302
        tixHLCol.o \\
303
        tixHLInd.o \\
304
        tixHLHdr.o \\
305
        tixInputO.o \\
306
        tixNBFrame.o \\
307
        tixTList.o
308
 
309
MISC_OBJS = \\
310
        tixImgCmp.o \\
311
        tixImgXpm.o \\
312
        tixMwm.o
313
 
314
UNIX_OBJS = \\
315
        tixUnixDraw.o \\
316
        tixUnixXpm.o \\
317
        tixUnixWm.o
318
 
319
OBJS = $(CORE_OBJS) $(DITEM_OBJS) $(MANAGER_OBJS) $(MISC_OBJS) \\
320
        $(WIDGET_OBJS) $(UNIX_OBJS)
321
 
322
TCL_SAM_OBJS = \\
323
        tclUnixSam@@_V_TCLVER_@@.o
324
 
325
TK_SAM_OBJS = \\
326
        tkUnixSam@@_V_TKVER_@@.o
327
 
328
TIX_SAM_OBJS = \\
329
        $(OBJS) tixUnixSam.o
330
}
331
 
332
p {
333
#----------------------------------------------------------------------
334
# These are the scripts that we'll compile into the SAM's. The
335
# scripts of TK must be included in the fixed order.
336
#----------------------------------------------------------------------
337
}
338
 
339
p {
340
TCL_SCRIPTS = $(TCL_SRC_DIR)/library/*.tcl
341
}
342
 
343
if {$subs(@@_V_TCL_VER_@@) == 7.4} {p {
344
TK_SCRIPTS = \\
345
    $(TK_SRC_DIR)/library/tkerror.tcl \\
346
    $(TK_SRC_DIR)/library/dialog.tcl \\
347
    $(TK_SRC_DIR)/library/focus.tcl \\
348
    $(TK_SRC_DIR)/library/obsolete.tcl \\
349
    $(TK_SRC_DIR)/library/palette.tcl \\
350
    $(TK_SRC_DIR)/library/tearoff.tcl \\
351
    $(SRC_DIR)/generic/tk4.0/tk.tcl \\
352
    $(TK_SRC_DIR)/library/button.tcl \\
353
    $(TK_SRC_DIR)/library/entry.tcl \\
354
    $(TK_SRC_DIR)/library/listbox.tcl \\
355
    $(TK_SRC_DIR)/library/menu.tcl \\
356
    $(TK_SRC_DIR)/library/scale.tcl \\
357
    $(TK_SRC_DIR)/library/scrollbar.tcl \\
358
    $(TK_SRC_DIR)/library/text.tcl
359
}}
360
 
361
if {$subs(@@_V_TCL_VER_@@) == 7.5} {p {
362
TK_SCRIPTS = \\
363
    $(TK_SRC_DIR)/library/bgerror.tcl \\
364
    $(TK_SRC_DIR)/library/dialog.tcl \\
365
    $(TK_SRC_DIR)/library/focus.tcl \\
366
    $(TK_SRC_DIR)/library/obsolete.tcl \\
367
    $(TK_SRC_DIR)/library/optMenu.tcl \\
368
    $(TK_SRC_DIR)/library/palette.tcl \\
369
    $(TK_SRC_DIR)/library/tearoff.tcl \\
370
    $(SRC_DIR)/generic/tk4.1/tk.tcl \\
371
    $(TK_SRC_DIR)/library/button.tcl \\
372
    $(TK_SRC_DIR)/library/entry.tcl \\
373
    $(TK_SRC_DIR)/library/listbox.tcl \\
374
    $(TK_SRC_DIR)/library/menu.tcl \\
375
    $(TK_SRC_DIR)/library/scale.tcl \\
376
    $(TK_SRC_DIR)/library/scrlbar.tcl \\
377
    $(TK_SRC_DIR)/library/text.tcl \\
378
    $(SRC_DIR)/generic/tk4.1/console.tcl
379
}}
380
 
381
if {$subs(@@_V_TCL_VER_@@) == 7.6} {p {
382
TK_SCRIPTS = \\
383
    $(TK_SRC_DIR)/library/bgerror.tcl \\
384
    $(TK_SRC_DIR)/library/dialog.tcl \\
385
    $(TK_SRC_DIR)/library/focus.tcl \\
386
    $(TK_SRC_DIR)/library/obsolete.tcl \\
387
    $(TK_SRC_DIR)/library/optMenu.tcl \\
388
    $(TK_SRC_DIR)/library/palette.tcl \\
389
    $(TK_SRC_DIR)/library/tearoff.tcl \\
390
    $(TK_SRC_DIR)/library/clrpick.tcl \\
391
    $(TK_SRC_DIR)/library/comdlg.tcl \\
392
    $(TK_SRC_DIR)/library/msgbox.tcl \\
393
    $(TK_SRC_DIR)/library/tkfbox.tcl \\
394
    $(TK_SRC_DIR)/library/xmfbox.tcl \\
395
    $(SRC_DIR)/generic/tk4.2/tk.tcl \\
396
    $(TK_SRC_DIR)/library/button.tcl \\
397
    $(TK_SRC_DIR)/library/entry.tcl \\
398
    $(TK_SRC_DIR)/library/listbox.tcl \\
399
    $(TK_SRC_DIR)/library/menu.tcl \\
400
    $(TK_SRC_DIR)/library/scale.tcl \\
401
    $(TK_SRC_DIR)/library/scrlbar.tcl \\
402
    $(TK_SRC_DIR)/library/text.tcl \\
403
    $(SRC_DIR)/generic/tk4.2/console.tcl
404
}}
405
 
406
if {$subs(@@_V_TCL_VER_@@) == 8.0} {p {
407
TK_SCRIPTS = \\
408
    $(TK_SRC_DIR)/library/bgerror.tcl \\
409
    $(TK_SRC_DIR)/library/dialog.tcl \\
410
    $(TK_SRC_DIR)/library/focus.tcl \\
411
    $(TK_SRC_DIR)/library/obsolete.tcl \\
412
    $(TK_SRC_DIR)/library/optMenu.tcl \\
413
    $(TK_SRC_DIR)/library/palette.tcl \\
414
    $(TK_SRC_DIR)/library/tearoff.tcl \\
415
    $(TK_SRC_DIR)/library/clrpick.tcl \\
416
    $(TK_SRC_DIR)/library/comdlg.tcl \\
417
    $(TK_SRC_DIR)/library/msgbox.tcl \\
418
    $(TK_SRC_DIR)/library/tkfbox.tcl \\
419
    $(TK_SRC_DIR)/library/xmfbox.tcl \\
420
    $(SRC_DIR)/generic/tk4.2/tk.tcl \\
421
    $(TK_SRC_DIR)/library/button.tcl \\
422
    $(TK_SRC_DIR)/library/entry.tcl \\
423
    $(TK_SRC_DIR)/library/listbox.tcl \\
424
    $(TK_SRC_DIR)/library/menu.tcl \\
425
    $(TK_SRC_DIR)/library/scale.tcl \\
426
    $(TK_SRC_DIR)/library/scrlbar.tcl \\
427
    $(TK_SRC_DIR)/library/text.tcl \\
428
    $(SRC_DIR)/generic/tk8.0/console.tcl
429
}}
430
 
431
p {
432
TIX_SCRIPTS = \\
433
    $(SRC_DIR)/library/pref/*.fsc \\
434
    $(SRC_DIR)/library/pref/*.csc \\
435
    $(SRC_DIR)/library/*.tcl
436
}
437
 
438
##
439
## Compilation rules for main targets
440
##
441
 
442
p {
443
all: $(TIX_LIB_FILE) $(TIX_EXE_FILE) @TIX_SAM_TARGETS@
444
 
445
$(TIX_LIB_FILE): $(OBJS)
446
        rm -f $(TIX_LIB_FILE)
447
        @TIX_MAKE_LIB@
448
        $(RANLIB) $(TIX_LIB_FILE)
449
 
450
$(TCL_SAM_FILE): $(TCL_SAM_OBJS)
451
        rm -f $(TCL_SAM_FILE)
452
        @TCL_MAKE_SAM@
453
        $(RANLIB) $(TCL_SAM_FILE)
454
 
455
$(TK_SAM_FILE): $(TK_SAM_OBJS)
456
        rm -f $(TK_SAM_FILE)
457
        @TK_MAKE_SAM@
458
        $(RANLIB) $(TK_SAM_FILE)
459
 
460
$(TIX_SAM_FILE): $(TIX_SAM_OBJS)
461
        rm -f $(TIX_SAM_FILE)
462
        @TIX_MAKE_SAM@
463
        $(RANLIB) $(TIX_SAM_FILE)
464
 
465
$(TIX_EXE_FILE): tixAppInit.o $(TIX_LIB_FILE)
466
        $(CC) @LD_FLAGS@ tixAppInit.o @TIX_BUILD_LIB_SPEC@ $(LIBS) \\
467
                @TIX_LD_SEARCH_FLAGS@ -o $(TIX_EXE_FILE)
468
 
469
$(TCL_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE)
470
        $(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TCL $(UNIX_DIR)/samAppInit.c \\
471
            @TCL_BUILD_SAM_SPEC@ $(LIBS_TCLONLY) \\
472
            @TIX_LD_SEARCH_FLAGS@ -o $(TCL_SAMEXE_FILE)
473
 
474
$(TK_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE) $(TK_SAM_FILE)
475
        $(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TK $(UNIX_DIR)/samAppInit.c \\
476
            @TK_BUILD_SAM_SPEC@ @TCL_BUILD_SAM_SPEC@ $(LIBS) \\
477
            @TIX_LD_SEARCH_FLAGS@ -o $(TK_SAMEXE_FILE)
478
 
479
$(TIX_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE) $(TK_SAM_FILE) \\
480
                $(TIX_SAM_FILE)
481
        $(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TIX $(UNIX_DIR)/samAppInit.c \\
482
            @TIX_BUILD_SAM_SPEC@ \\
483
            @TK_BUILD_SAM_SPEC@ @TCL_BUILD_SAM_SPEC@ \\
484
            $(LIBS) \\
485
            @TIX_LD_SEARCH_FLAGS@ -o $(TIX_SAMEXE_FILE)
486
 
487
}
488
 
489
##
490
## .o file rules
491
##
492
 
493
p {
494
#----------------------------------------------------------------------
495
#
496
#                       .o file rules
497
#
498
#----------------------------------------------------------------------
499
tixAppInit.o : tixAppInit.c
500
        $(CC) -c $(CC_SWITCHES) tixAppInit.c
501
 
502
tixClass.o : $(GENERIC_DIR)/tixClass.c
503
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixClass.c
504
 
505
tixCmds.o: $(GENERIC_DIR)/tixCmds.c
506
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixCmds.c
507
 
508
tixCompat.o: $(GENERIC_DIR)/tixCompat.c
509
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixCompat.c
510
 
511
tixDItem.o: $(GENERIC_DIR)/tixDItem.c
512
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDItem.c
513
 
514
tixDiImg.o: $(GENERIC_DIR)/tixDiImg.c
515
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiImg.c
516
 
517
tixDiITxt.o: $(GENERIC_DIR)/tixDiITxt.c
518
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiITxt.c
519
 
520
tixDiStyle.o: $(GENERIC_DIR)/tixDiStyle.c
521
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiStyle.c
522
 
523
tixDiText.o: $(GENERIC_DIR)/tixDiText.c
524
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiText.c
525
 
526
tixDiWin.o: $(GENERIC_DIR)/tixDiWin.c
527
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiWin.c
528
 
529
tixError.o: $(GENERIC_DIR)/tixError.c
530
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixError.c
531
 
532
tixForm.o: $(GENERIC_DIR)/tixForm.c
533
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixForm.c
534
 
535
tixFormMisc.o: $(GENERIC_DIR)/tixFormMisc.c
536
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixFormMisc.c
537
 
538
tixGeometry.o: $(GENERIC_DIR)/tixGeometry.c
539
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGeometry.c
540
 
541
tixGrid.o: $(GENERIC_DIR)/tixGrid.c
542
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrid.c
543
 
544
tixGrData.o: $(GENERIC_DIR)/tixGrData.c
545
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrData.c
546
 
547
tixGrFmt.o: $(GENERIC_DIR)/tixGrFmt.c
548
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrFmt.c
549
 
550
tixGrRC.o: $(GENERIC_DIR)/tixGrRC.c
551
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrRC.c
552
 
553
tixGrSel.o: $(GENERIC_DIR)/tixGrSel.c
554
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrSel.c
555
 
556
tixGrSort.o: $(GENERIC_DIR)/tixGrSort.c
557
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrSort.c
558
 
559
tixGrUtl.o: $(GENERIC_DIR)/tixGrUtl.c
560
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrUtl.c
561
 
562
tixHLCol.o: $(GENERIC_DIR)/tixHLCol.c
563
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLCol.c
564
 
565
tixHLHdr.o: $(GENERIC_DIR)/tixHLHdr.c
566
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLHdr.c
567
 
568
tixHLInd.o: $(GENERIC_DIR)/tixHLInd.c
569
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLInd.c
570
 
571
tixHList.o: $(GENERIC_DIR)/tixHList.c
572
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHList.c
573
 
574
tixImgCmp.o: $(GENERIC_DIR)/tixImgCmp.c
575
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixImgCmp.c
576
 
577
tixImgXpm.o: $(GENERIC_DIR)/tixImgXpm.c
578
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixImgXpm.c
579
 
580
tixInit.o: $(GENERIC_DIR)/tixInit.c
581
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixInit.c
582
 
583
tixItcl.o: $(GENERIC_DIR)/tixItcl.c
584
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixItcl.c
585
 
586
tixInputO.o : $(GENERIC_DIR)/tixInputO.c
587
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixInputO.c
588
 
589
tixList.o: $(GENERIC_DIR)/tixList.c
590
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixList.c
591
 
592
tixMethod.o : $(GENERIC_DIR)/tixMethod.c
593
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixMethod.c
594
 
595
tixMwm.o: $(GENERIC_DIR)/tixMwm.c
596
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixMwm.c
597
 
598
tixNBFrame.o: $(GENERIC_DIR)/tixNBFrame.c
599
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixNBFrame.c
600
 
601
tixOption.o: $(GENERIC_DIR)/tixOption.c
602
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixOption.c
603
 
604
tixSmpLs.o: $(GENERIC_DIR)/tixSmpLs.c
605
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixSmpLs.c
606
 
607
tixScroll.o: $(GENERIC_DIR)/tixScroll.c
608
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixScroll.c
609
 
610
tixTList.o: $(GENERIC_DIR)/tixTList.c
611
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixTList.c
612
 
613
tixUtils.o: $(GENERIC_DIR)/tixUtils.c
614
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixUtils.c
615
 
616
tixWidget.o: $(GENERIC_DIR)/tixWidget.c
617
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixWidget.c
618
 
619
tixUnixDraw.o: $(UNIX_DIR)/tixUnixDraw.c
620
        $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixDraw.c
621
 
622
tixUnixXpm.o: $(UNIX_DIR)/tixUnixXpm.c
623
        $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixXpm.c
624
 
625
tixUnixWm.o: $(UNIX_DIR)/tixUnixWm.c
626
        $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixWm.c
627
 
628
#
629
# Dependence rules for SAM
630
#
631
tclUnixSam@@_V_TCLVER_@@.o: tclUnixSam@@_V_TCLVER_@@.c tclSamLib.c
632
        $(CC) -c $(CC_SWITCHES) tclUnixSam@@_V_TCLVER_@@.c
633
 
634
tclSamLib.c:
635
        $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TCL_SCRIPTS) \\
636
            > tclSamLib.c
637
 
638
tkUnixSam@@_V_TKVER_@@.o: tkUnixSam@@_V_TKVER_@@.c tkSamLib.c
639
        $(CC) -c $(CC_SWITCHES) tkUnixSam@@_V_TKVER_@@.c
640
 
641
tkSamLib.c:
642
        $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TK_SCRIPTS) \\
643
            > tkSamLib.c
644
 
645
tixUnixSam.o: $(UNIX_DIR)/tixUnixSam.c $(UNIX_DIR)/tixSamLib.c
646
        $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixSam.c
647
 
648
$(UNIX_DIR)/tixSamLib.c:
649
        $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TIX_SCRIPTS) \\
650
            > $(UNIX_DIR)/tixSamLib.c
651
}
652
 
653
pitcl {
654
IWIDGETS = iwidgets@@_V_IWIDGETS_VER_@@
655
}
656
 
657
p {
658
 
659
tests: $(TIX_EXE_FILE)
660
        TCL_LIBRARY=$(TCL_SRC_DIR)/library TK_LIBRARY=$(TK_SRC_DIR)/library \\
661
            ITCL_LIBRARY=$(ITCL_SRC_DIR)/library \\
662
            ITK_LIBRARY=$(ITK_SRC_DIR)/library \\
663
            IWIDGETS_LIBRARY=$(ITCL_ROOT_DIR)/$(IWIDGETS) \\
664
            TIX_LIBRARY=$(SRC_DIR)/library \\
665
            LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:. \\
666
            ./$(TIX_EXE_FILE) $(SRC_DIR)/tests/Driver.tcl
667
}
668
 
669
p_sam {
670
sa-tests: $(TIX_SAMEXE_FILE)
671
        ./$(TIX_SAMEXE_FILE) $(SRC_DIR)/tests/Driver.tcl
672
}
673
 
674
p {
675
#----------------------------------------------------------------------
676
#
677
#                       INSTALLATION
678
#
679
#----------------------------------------------------------------------
680
_install_: $(TIX_LIB_FILE) $(TIX_EXE_FILE) $(SAM_INSTALL)
681
        @for i in $(LIB_DIR) $(BIN_DIR) ; \\
682
            do \\
683
            if [ ! -d $$i ] ; then \\
684
                echo "Making directory $$i"; \\
685
                mkdir $$i; \\
686
                chmod 755 $$i; \\
687
                else true; \\
688
                fi; \\
689
            done;
690
        @echo "Installing $(TIX_LIB_FILE) as $(LIB_DIR)/$(TIX_LIB_FILE)"
691
        @$(INSTALL_PROGRAM) $(TIX_LIB_FILE) $(LIB_DIR)/$(TIX_LIB_FILE)
692
        @echo "Installing $(TIX_EXE_FILE) as $(BIN_DIR)/$(INST_EXE)"
693
        @$(INSTALL_PROGRAM) $(TIX_EXE_FILE) $(BIN_DIR)/$(INST_EXE)
694
 
695
_install_sam_exe_: $(SAM_TARGETS)
696
        @for i in $(LIB_DIR) $(BIN_DIR) ; \\
697
            do \\
698
            if [ ! -d $$i ] ; then \\
699
                echo "Making directory $$i"; \\
700
                mkdir $$i; \\
701
                chmod 755 $$i; \\
702
                else true; \\
703
                fi; \\
704
            done;
705
        @echo "Installing $(TK_SAM_FILE) as $(LIB_DIR)/$(TK_SAM_FILE)"
706
        @$(INSTALL_PROGRAM) $(TK_SAM_FILE) $(LIB_DIR)/$(TK_SAM_FILE)
707
        @echo "Installing $(TCL_SAM_FILE) as $(LIB_DIR)/$(TCL_SAM_FILE)"
708
        @$(INSTALL_PROGRAM) $(TCL_SAM_FILE) $(LIB_DIR)/$(TCL_SAM_FILE)
709
        @echo ""
710
        @echo "Installing $(TIX_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TIX_SAMEXE)"
711
        @$(INSTALL_PROGRAM) $(TIX_SAMEXE_FILE) $(BIN_DIR)/$(INST_TIX_SAMEXE)
712
        @echo "Installing $(TK_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TK_SAMEXE)"
713
        @$(INSTALL_PROGRAM) $(TK_SAMEXE_FILE) $(BIN_DIR)/$(INST_TK_SAMEXE)
714
        @echo "Installing $(TCL_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TCL_SAMEXE)"
715
        @$(INSTALL_PROGRAM) $(TCL_SAMEXE_FILE) $(BIN_DIR)/$(INST_TCL_SAMEXE)
716
 
717
_install_sam_lib_: $(SAM_TARGETS)
718
        @for i in $(LIB_DIR) $(BIN_DIR) ; \\
719
            do \\
720
            if [ ! -d $$i ] ; then \\
721
                echo "Making directory $$i"; \\
722
                mkdir $$i; \\
723
                chmod 755 $$i; \\
724
                else true; \\
725
                fi; \\
726
            done;
727
        @echo "Installing $(TIX_SAM_FILE) as $(LIB_DIR)/$(TIX_SAM_FILE)"
728
        @$(INSTALL_PROGRAM) $(TIX_SAM_FILE) $(LIB_DIR)/$(TIX_SAM_FILE)
729
 
730
 
731
install: _install_
732
        @echo The binary files have been installed.
733
        @echo You probably need to make install in the parent directory
734
        @echo to install other files.
735
}
736
 
737
 
738
##
739
## cleanup rules, etc
740
##
741
 
742
p {
743
sam_clean:
744
        rm -f $(UNIX_DIR)/tixSamLib.c $(UNIX_DIR)/tixBitmaps.c
745
 
746
clean:
747
        rm -f *.so *.a *.o *_s.o core errs *~ \\#* TAGS *.E sta* \\
748
            a.out errors $(TIX_EXE_FILE) $(TIX_LIB_FILE) *.bak \\
749
            $(SAM_TARGETS) tclSamLib.c tkSamLib.c
750
 
751
distclean: clean
752
        rm -f Makefile config.* lib.exp
753
 
754
depend:
755
        makedepend -- $(CC_SWITCHES) -- $(SRCS)
756
 
757
Makefile: Makefile.in
758
        ./config.status
759
 
760
.c.o:
761
        $(CC) -c $(CC_SWITCHES) $<
762
 
763
# DO NOT DELETE THIS LINE -- make depend depends on it.
764
}

powered by: WebSVN 2.1.0

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