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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [unix/] [tk8.1/] [Makefile.in] - Blame information for rev 1771

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

Line No. Rev Author Line
1 578 markom
# Makefile --
2
#
3
# This file is a Makefile to compile Tix with Tk version
4
# 8.1. If it has the name "Makefile.in" then it is a
5
# template for a Makefile; to generate the actual Makefile, run
6
# "./configure", which is a configuration script generated by the
7
# "autoconf" program (constructs like "@foo@" will get replaced in the
8
# actual Makefile.
9
 
10
# CYGNUS LOCAL: Set VPATH.
11
VPATH = @srcdir@
12
srcdir = @srcdir@
13
 
14
#----------------------------------------------------------------
15
# Things you can change to personalize the Makefile for your own
16
# site (you can make these changes in either Makefile.in or
17
# Makefile, but changes to Makefile will get lost if you re-run
18
# the configuration script).
19
#----------------------------------------------------------------
20
 
21
# Default top-level directories in which to install architecture-
22
# specific files (exec_prefix) and machine-independent files such
23
# as scripts (prefix).  The values specified here may be overridden
24
# at configure-time with the --exec-prefix and --prefix options
25
# to the "configure" script.
26
 
27
prefix      = @prefix@
28
exec_prefix = @exec_prefix@
29
TIX_VERSION = @TIX_VERSION@
30
 
31
@SET_MAKE@
32
 
33
# Directory in which to install the library of Tix scripts and demos
34
# (note: you can set the TIX_LIBRARY environment variable at run-time to
35
# override the compiled-in location):
36
TIX_LIBRARY =   $(prefix)/share/tix$(TIX_VERSION)
37
 
38
# Directory in which to install the archive libtix.a:
39
LIB_DIR =       $(exec_prefix)/lib
40
LIB_INSTALL_DIR = $(LIB_DIR)
41
LIB_RUNTIME_DIR = $(LIB_DIR)
42
 
43
# Directory in which to install the program tixwish:
44
BIN_DIR =       $(exec_prefix)/bin
45
 
46
# To change the compiler switches, for example to change from -O
47
# to -g, change the following line:
48
CFLAGS = -O
49
TIX_CFLAGS = $(CFLAGS) -fwritable-strings
50
 
51
# To disable ANSI-C procedure prototypes reverse the comment characters
52
# on the following lines:
53
PROTO_FLAGS =
54
#PROTO_FLAGS = -DNO_PROTOTYPE
55
 
56
# To enable memory debugging reverse the comment characters on the following
57
# lines. Warning: if you enable memory debugging, you must do it
58
# *everywhere*, including all the code that calls Tcl, and you must use
59
# ckalloc and ckfree everywhere instead of malloc and free.
60
MEM_DEBUG_FLAGS =
61
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
62
 
63
# Some versions of make, like SGI's, use the following variable to
64
# determine which shell to use for executing commands:
65
SHELL =         /bin/sh
66
 
67
# Location of the Tcl 8.1 source directory.
68
#
69
TCL_SRC_DIR     = @TCL_SRC_DIR@
70
TCL_GENERIC_DIR = $(TCL_SRC_DIR)/generic
71
TCL_BIN_DIR     = @TCL_BIN_DIR@
72
 
73
# Location of the Tk 8.1 source directory.
74
#
75
TK_SRC_DIR      = @TK_SRC_DIR@
76
TK_GENERIC_DIR  = $(TK_SRC_DIR)/generic
77
 
78
# Libraries to use when linking:
79
LIBS = @ITK_BUILD_LIB_SPEC@ @ITCL_BUILD_LIB_SPEC@ \
80
    @TK_BUILD_LIB_SPEC@ @TCL_BUILD_LIB_SPEC@ @TK_LIBS@
81
 
82
# Libraries for building a stand-alone Tclsh.
83
#
84
LIBS_TCLONLY = @TCL_BUILD_LIB_SPEC@ @TCL_LIBS@
85
 
86
RUN_TCLSH       = TCL_LIBRARY=$(TCL_SRC_DIR)/library \
87
                  TK_LIBRARY=$(TK_SRC_DIR)/library \
88
                  $(TCL_BIN_DIR)/tclsh
89
 
90
 
91
#----------------------------------------------------------------
92
# The information below is modified by the configure script when
93
# Makefile is generated from Makefile.in.  You shouldn't normally
94
# modify any of this stuff by hand.
95
#----------------------------------------------------------------
96
 
97
CC               = @CC@
98
 
99
SHLIB_CFLAGS     = @SHLIB_CFLAGS@
100
SHLIB_LD         = @SHLIB_LD@
101
SHLIB_SUFFIX     = @SHLIB_SUFFIX@
102
SHLIB_VERSION    = @SHLIB_VERSION@
103
TIX_SHLIB_CFLAGS = @TIX_SHLIB_CFLAGS@
104
TK_XINCLUDES     = @TK_XINCLUDES@
105
 
106
ITCL_EXT =
107
 
108
SRC_DIR          = @TIX_SRC_DIR@
109
GENERIC_DIR      = $(SRC_DIR)/generic
110
UNIX_DIR         = $(SRC_DIR)/unix
111
AC_FLAGS         = @DEFS@ @TIX_DEFS@
112
RANLIB           = @RANLIB@
113
TIX_RANLIB       = @TIX_RANLIB@
114
INSTALL          = @TIX_SRC_DIR@/install.sh -c
115
INSTALL_PROGRAM  = @INSTALL_PROGRAM@
116
INSTALL_DATA     = @INSTALL_DATA@
117
 
118
TIX_LIB_FILE     = @TIX_LIB_FILE@
119
TIX_EXE_FILE     = @TIX_EXE_FILE@
120
TCL_SAM_FILE     = @TCL_SAM_FILE@
121
TK_SAM_FILE      = @TK_SAM_FILE@
122
TIX_SAM_FILE     = @TIX_SAM_FILE@
123
TCL_SAMEXE_FILE  = @TCL_SAMEXE_FILE@
124
TK_SAMEXE_FILE   = @TK_SAMEXE_FILE@
125
TIX_SAMEXE_FILE  = @TIX_SAMEXE_FILE@
126
 
127
INST_EXE         = $(TIX_EXE_FILE)$(TIX_VERSION).8.1$(ITCL_EXT)
128
INST_TIX_SAMEXE  = $(TIX_SAMEXE_FILE)$(TIX_VERSION).8.1$(ITCL_EXT)
129
INST_TK_SAMEXE   = $(TK_SAMEXE_FILE)8.1
130
INST_TCL_SAMEXE  = $(TCL_SAMEXE_FILE)8.1
131
 
132
SAM_TARGETS     = $(TIX_SAM_FILE)
133
 
134
TIX_SAM_TARGETS = @TIX_SAM_TARGETS@
135
SAM_INSTALL     = @TIX_SAM_INSTALL@
136
 
137
ITCL_CFLAGS      =
138
 
139
CC_SWITCHES = $(TIX_CFLAGS) $(AC_FLAGS) -I$(TCL_GENERIC_DIR) \
140
    -I$(TCL_SRC_DIR)/unix -I$(TK_GENERIC_DIR) -I$(TK_SRC_DIR)/unix \
141
    $(ITCL_CFLAGS) \
142
    -I$(GENERIC_DIR) -I$(UNIX_DIR) $(TK_XINCLUDES) $(TIX_SHLIB_CFLAGS)
143
 
144
#----------------------------------------------------------------
145
# The information below should be usable as is. You shouldn't need
146
# to modify it.
147
#----------------------------------------------------------------
148
 
149
CORE_OBJS = \
150
        tixClass.o \
151
        tixCmds.o \
152
        tixCompat.o \
153
        tixError.o \
154
        tixGeometry.o \
155
        tixInit.o \
156
        tixItcl.o \
157
        tixList.o \
158
        tixMethod.o \
159
        tixOption.o  \
160
        tixScroll.o \
161
        tixSmpLs.o \
162
        tixUtils.o \
163
        tixWidget.o
164
 
165
DITEM_OBJS = \
166
        tixDItem.o \
167
        tixDiITxt.o \
168
        tixDiImg.o \
169
        tixDiStyle.o \
170
        tixDiText.o \
171
        tixDiWin.o
172
 
173
MANAGER_OBJS = \
174
        tixForm.o \
175
        tixFormMisc.o
176
 
177
WIDGET_OBJS = \
178
        tixGrid.o \
179
        tixGrData.o \
180
        tixGrFmt.o \
181
        tixGrRC.o \
182
        tixGrSel.o \
183
        tixGrSort.o \
184
        tixGrUtl.o \
185
        tixHList.o \
186
        tixHLCol.o \
187
        tixHLInd.o \
188
        tixHLHdr.o \
189
        tixInputO.o \
190
        tixNBFrame.o \
191
        tixTList.o
192
 
193
MISC_OBJS = \
194
        tixImgCmp.o \
195
        tixImgXpm.o \
196
        tixMwm.o
197
 
198
UNIX_OBJS = \
199
        tixUnixDraw.o \
200
        tixUnixXpm.o \
201
        tixUnixWm.o
202
 
203
OBJS = $(CORE_OBJS) $(DITEM_OBJS) $(MANAGER_OBJS) $(MISC_OBJS) \
204
        $(WIDGET_OBJS) $(UNIX_OBJS)
205
 
206
TCL_SAM_OBJS = \
207
        tclUnixSam80.o
208
 
209
TK_SAM_OBJS = \
210
        tkUnixSam80.o
211
 
212
TIX_SAM_OBJS = \
213
        $(OBJS) tixUnixSam.o
214
 
215
#----------------------------------------------------------------------
216
# These are the scripts that we'll compile into the SAM's. The
217
# scripts of TK must be included in the fixed order.
218
#----------------------------------------------------------------------
219
 
220
TCL_SCRIPTS = $(TCL_SRC_DIR)/library/*.tcl
221
 
222
TK_SCRIPTS = \
223
    $(TK_SRC_DIR)/library/bgerror.tcl \
224
    $(TK_SRC_DIR)/library/dialog.tcl \
225
    $(TK_SRC_DIR)/library/focus.tcl \
226
    $(TK_SRC_DIR)/library/obsolete.tcl \
227
    $(TK_SRC_DIR)/library/optMenu.tcl \
228
    $(TK_SRC_DIR)/library/palette.tcl \
229
    $(TK_SRC_DIR)/library/tearoff.tcl \
230
    $(TK_SRC_DIR)/library/clrpick.tcl \
231
    $(TK_SRC_DIR)/library/comdlg.tcl \
232
    $(TK_SRC_DIR)/library/msgbox.tcl \
233
    $(TK_SRC_DIR)/library/tkfbox.tcl \
234
    $(TK_SRC_DIR)/library/xmfbox.tcl \
235
    $(SRC_DIR)/generic/tk4.2/tk.tcl \
236
    $(TK_SRC_DIR)/library/button.tcl \
237
    $(TK_SRC_DIR)/library/entry.tcl \
238
    $(TK_SRC_DIR)/library/listbox.tcl \
239
    $(TK_SRC_DIR)/library/menu.tcl \
240
    $(TK_SRC_DIR)/library/scale.tcl \
241
    $(TK_SRC_DIR)/library/scrlbar.tcl \
242
    $(TK_SRC_DIR)/library/text.tcl \
243
    $(SRC_DIR)/generic/tk8.0/console.tcl
244
 
245
TIX_SCRIPTS = \
246
    $(SRC_DIR)/library/pref/*.fsc \
247
    $(SRC_DIR)/library/pref/*.csc \
248
    $(SRC_DIR)/library/*.tcl
249
 
250
all: $(TIX_LIB_FILE) $(TIX_EXE_FILE) @TIX_SAM_TARGETS@
251
 
252
$(TIX_LIB_FILE): $(OBJS)
253
        rm -f $(TIX_LIB_FILE)
254
        @TIX_MAKE_LIB@
255
        $(TIX_RANLIB) $(TIX_LIB_FILE)
256
 
257
$(TCL_SAM_FILE): $(TCL_SAM_OBJS)
258
        rm -f $(TCL_SAM_FILE)
259
        @TCL_MAKE_SAM@
260
        $(TIX_RANLIB) $(TCL_SAM_FILE)
261
 
262
$(TK_SAM_FILE): $(TK_SAM_OBJS)
263
        rm -f $(TK_SAM_FILE)
264
        @TK_MAKE_SAM@
265
        $(TIX_RANLIB) $(TK_SAM_FILE)
266
 
267
$(TIX_SAM_FILE): $(TIX_SAM_OBJS)
268
        rm -f $(TIX_SAM_FILE)
269
        @TIX_MAKE_SAM@
270
        $(TIX_RANLIB) $(TIX_SAM_FILE)
271
 
272
$(TIX_EXE_FILE): tixAppInit.o $(TIX_LIB_FILE) @TCL_LIB_FULL_PATH@ \
273
                @TK_LIB_FULL_PATH@ @ITCL_LIB_FULL_PATH@
274
        $(CC) @LD_FLAGS@ tixAppInit.o @TIX_BUILD_LIB_SPEC@ $(LIBS) \
275
                @TIX_LD_SEARCH_FLAGS@ -o $(TIX_EXE_FILE)
276
 
277
$(TCL_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE)
278
        $(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TCL $(UNIX_DIR)/samAppInit.c \
279
            @TCL_BUILD_SAM_SPEC@ $(LIBS_TCLONLY) \
280
            @TIX_LD_SEARCH_FLAGS@ -o $(TCL_SAMEXE_FILE)
281
 
282
$(TK_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE) $(TK_SAM_FILE) \
283
                @TCL_LIB_FULL_PATH@ @TK_LIB_FULL_PATH@ @ITCL_LIB_FULL_PATH@
284
        $(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TK $(UNIX_DIR)/samAppInit.c \
285
            @TK_BUILD_SAM_SPEC@ @TCL_BUILD_SAM_SPEC@ $(LIBS) \
286
            @TIX_LD_SEARCH_FLAGS@ -o $(TK_SAMEXE_FILE)
287
 
288
$(TIX_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE) $(TK_SAM_FILE) \
289
                $(TIX_SAM_FILE) @TCL_LIB_FULL_PATH@ @TK_LIB_FULL_PATH@ \
290
                @ITCL_LIB_FULL_PATH@
291
        $(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TIX $(UNIX_DIR)/samAppInit.c \
292
            @TIX_BUILD_SAM_SPEC@ \
293
            @TK_BUILD_SAM_SPEC@ @TCL_BUILD_SAM_SPEC@ \
294
            $(LIBS) \
295
            @TIX_LD_SEARCH_FLAGS@ -o $(TIX_SAMEXE_FILE)
296
 
297
 
298
#----------------------------------------------------------------------
299
#
300
#                       .o file rules
301
#
302
#----------------------------------------------------------------------
303
tixAppInit.o : tixAppInit.c
304
        $(CC) -c $(CC_SWITCHES) $(srcdir)/tixAppInit.c
305
 
306
tixClass.o : $(GENERIC_DIR)/tixClass.c
307
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixClass.c
308
 
309
tixCmds.o: $(GENERIC_DIR)/tixCmds.c
310
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixCmds.c
311
 
312
tixCompat.o: $(GENERIC_DIR)/tixCompat.c
313
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixCompat.c
314
 
315
tixDItem.o: $(GENERIC_DIR)/tixDItem.c
316
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDItem.c
317
 
318
tixDiImg.o: $(GENERIC_DIR)/tixDiImg.c
319
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiImg.c
320
 
321
tixDiITxt.o: $(GENERIC_DIR)/tixDiITxt.c
322
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiITxt.c
323
 
324
tixDiStyle.o: $(GENERIC_DIR)/tixDiStyle.c
325
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiStyle.c
326
 
327
tixDiText.o: $(GENERIC_DIR)/tixDiText.c
328
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiText.c
329
 
330
tixDiWin.o: $(GENERIC_DIR)/tixDiWin.c
331
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiWin.c
332
 
333
tixError.o: $(GENERIC_DIR)/tixError.c
334
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixError.c
335
 
336
tixForm.o: $(GENERIC_DIR)/tixForm.c
337
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixForm.c
338
 
339
tixFormMisc.o: $(GENERIC_DIR)/tixFormMisc.c
340
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixFormMisc.c
341
 
342
tixGeometry.o: $(GENERIC_DIR)/tixGeometry.c
343
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGeometry.c
344
 
345
tixGrid.o: $(GENERIC_DIR)/tixGrid.c
346
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrid.c
347
 
348
tixGrData.o: $(GENERIC_DIR)/tixGrData.c
349
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrData.c
350
 
351
tixGrFmt.o: $(GENERIC_DIR)/tixGrFmt.c
352
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrFmt.c
353
 
354
tixGrRC.o: $(GENERIC_DIR)/tixGrRC.c
355
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrRC.c
356
 
357
tixGrSel.o: $(GENERIC_DIR)/tixGrSel.c
358
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrSel.c
359
 
360
tixGrSort.o: $(GENERIC_DIR)/tixGrSort.c
361
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrSort.c
362
 
363
tixGrUtl.o: $(GENERIC_DIR)/tixGrUtl.c
364
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrUtl.c
365
 
366
tixHLCol.o: $(GENERIC_DIR)/tixHLCol.c
367
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLCol.c
368
 
369
tixHLHdr.o: $(GENERIC_DIR)/tixHLHdr.c
370
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLHdr.c
371
 
372
tixHLInd.o: $(GENERIC_DIR)/tixHLInd.c
373
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLInd.c
374
 
375
tixHList.o: $(GENERIC_DIR)/tixHList.c
376
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHList.c
377
 
378
tixImgCmp.o: $(GENERIC_DIR)/tixImgCmp.c
379
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixImgCmp.c
380
 
381
tixImgXpm.o: $(GENERIC_DIR)/tixImgXpm.c
382
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixImgXpm.c
383
 
384
tixInit.o: $(GENERIC_DIR)/tixInit.c
385
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixInit.c
386
 
387
tixItcl.o: $(GENERIC_DIR)/tixItcl.c
388
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixItcl.c
389
 
390
tixInputO.o : $(GENERIC_DIR)/tixInputO.c
391
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixInputO.c
392
 
393
tixList.o: $(GENERIC_DIR)/tixList.c
394
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixList.c
395
 
396
tixMethod.o : $(GENERIC_DIR)/tixMethod.c
397
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixMethod.c
398
 
399
tixMwm.o: $(GENERIC_DIR)/tixMwm.c
400
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixMwm.c
401
 
402
tixNBFrame.o: $(GENERIC_DIR)/tixNBFrame.c
403
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixNBFrame.c
404
 
405
tixOption.o: $(GENERIC_DIR)/tixOption.c
406
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixOption.c
407
 
408
tixSmpLs.o: $(GENERIC_DIR)/tixSmpLs.c
409
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixSmpLs.c
410
 
411
tixScroll.o: $(GENERIC_DIR)/tixScroll.c
412
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixScroll.c
413
 
414
tixTList.o: $(GENERIC_DIR)/tixTList.c
415
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixTList.c
416
 
417
tixUtils.o: $(GENERIC_DIR)/tixUtils.c
418
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixUtils.c
419
 
420
tixWidget.o: $(GENERIC_DIR)/tixWidget.c
421
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixWidget.c
422
 
423
tixUnixDraw.o: $(UNIX_DIR)/tixUnixDraw.c
424
        $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixDraw.c
425
 
426
tixUnixXpm.o: $(UNIX_DIR)/tixUnixXpm.c
427
        $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixXpm.c
428
 
429
tixUnixWm.o: $(UNIX_DIR)/tixUnixWm.c
430
        $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixWm.c
431
 
432
#
433
# Dependence rules for SAM
434
#
435
tclUnixSam80.o: tclUnixSam80.c tclSamLib.c
436
        $(CC) -c $(CC_SWITCHES) tclUnixSam80.c
437
 
438
tclSamLib.c:
439
        $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TCL_SCRIPTS) \
440
            > tclSamLib.c
441
 
442
tkUnixSam80.o: tkUnixSam80.c tkSamLib.c
443
        $(CC) -c $(CC_SWITCHES) tkUnixSam80.c
444
 
445
tkSamLib.c:
446
        $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TK_SCRIPTS) \
447
            > tkSamLib.c
448
 
449
tixUnixSam.o: $(UNIX_DIR)/tixUnixSam.c tixSamLib.c
450
        $(CC) -c -I. $(CC_SWITCHES) $(UNIX_DIR)/tixUnixSam.c
451
 
452
tixSamLib.c:
453
        $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TIX_SCRIPTS) \
454
            > tixSamLib.c
455
 
456
 
457
tests: $(TIX_EXE_FILE)
458
        TCL_LIBRARY=$(TCL_SRC_DIR)/library TK_LIBRARY=$(TK_SRC_DIR)/library \
459
            ITCL_LIBRARY=$(ITCL_SRC_DIR)/library \
460
            ITK_LIBRARY=$(ITK_SRC_DIR)/library \
461
            IWIDGETS_LIBRARY=$(ITCL_ROOT_DIR)/$(IWIDGETS) \
462
            TIX_LIBRARY=$(SRC_DIR)/library \
463
            LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:. \
464
            ./$(TIX_EXE_FILE) $(SRC_DIR)/tests/Driver.tcl
465
 
466
sa-tests: $(TIX_SAMEXE_FILE)
467
        ./$(TIX_SAMEXE_FILE) $(SRC_DIR)/tests/Driver.tcl
468
 
469
#----------------------------------------------------------------------
470
#
471
#                       INSTALLATION
472
#
473
#----------------------------------------------------------------------
474
_install_: $(TIX_LIB_FILE) $(TIX_EXE_FILE) $(SAM_INSTALL)
475
        @for i in $(LIB_DIR) $(BIN_DIR) ; \
476
            do \
477
            if [ ! -d $$i ] ; then \
478
                echo "Making directory $$i"; \
479
                mkdir $$i; \
480
                chmod 755 $$i; \
481
                else true; \
482
                fi; \
483
            done;
484
        @echo "Installing $(TIX_LIB_FILE) as $(LIB_DIR)/$(TIX_LIB_FILE)"
485
        @$(INSTALL_DATA) $(TIX_LIB_FILE) $(LIB_DIR)/$(TIX_LIB_FILE)
486
        @echo "Installing $(TIX_EXE_FILE) as $(BIN_DIR)/$(INST_EXE)"
487
        @$(INSTALL_PROGRAM) $(TIX_EXE_FILE) $(BIN_DIR)/$(INST_EXE)
488
 
489
_install_sam_exe_: $(SAM_TARGETS)
490
        @for i in $(LIB_DIR) $(BIN_DIR) ; \
491
            do \
492
            if [ ! -d $$i ] ; then \
493
                echo "Making directory $$i"; \
494
                mkdir $$i; \
495
                chmod 755 $$i; \
496
                else true; \
497
                fi; \
498
            done;
499
        @echo "Installing $(TK_SAM_FILE) as $(LIB_DIR)/$(TK_SAM_FILE)"
500
        @$(INSTALL_DATA) $(TK_SAM_FILE) $(LIB_DIR)/$(TK_SAM_FILE)
501
        @echo "Installing $(TCL_SAM_FILE) as $(LIB_DIR)/$(TCL_SAM_FILE)"
502
        @$(INSTALL_DATA) $(TCL_SAM_FILE) $(LIB_DIR)/$(TCL_SAM_FILE)
503
        @echo ""
504
        @echo "Installing $(TIX_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TIX_SAMEXE)"
505
        @$(INSTALL_PROGRAM) $(TIX_SAMEXE_FILE) $(BIN_DIR)/$(INST_TIX_SAMEXE)
506
        @echo "Installing $(TK_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TK_SAMEXE)"
507
        @$(INSTALL_PROGRAM) $(TK_SAMEXE_FILE) $(BIN_DIR)/$(INST_TK_SAMEXE)
508
        @echo "Installing $(TCL_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TCL_SAMEXE)"
509
        @$(INSTALL_PROGRAM) $(TCL_SAMEXE_FILE) $(BIN_DIR)/$(INST_TCL_SAMEXE)
510
 
511
_install_sam_lib_: $(SAM_TARGETS)
512
        @for i in $(LIB_DIR) $(BIN_DIR) ; \
513
            do \
514
            if [ ! -d $$i ] ; then \
515
                echo "Making directory $$i"; \
516
                mkdir $$i; \
517
                chmod 755 $$i; \
518
                else true; \
519
                fi; \
520
            done;
521
        @echo "Installing $(TIX_SAM_FILE) as $(LIB_DIR)/$(TIX_SAM_FILE)"
522
        @$(INSTALL_DATA) $(TIX_SAM_FILE) $(LIB_DIR)/$(TIX_SAM_FILE)
523
 
524
 
525
install: _install_
526
        @echo The binary files have been installed.
527
        @echo You probably need to make install in the parent directory
528
        @echo to install other files.
529
 
530
sam_clean:
531
        rm -f tixSamLib.c $(UNIX_DIR)/tixBitmaps.c
532
 
533
clean:
534
        rm -f *.so *.a *.o *_s.o core errs *~ \#* TAGS *.E sta* \
535
            a.out errors $(TIX_EXE_FILE) $(TIX_LIB_FILE) *.bak \
536
            $(SAM_TARGETS) tclSamLib.c tkSamLib.c
537
 
538
distclean: clean
539
        rm -f Makefile config.* lib.exp
540
 
541
depend:
542
        makedepend -- $(CC_SWITCHES) -- $(SRCS)
543
 
544
# CYGNUS LOCAL: Makefile depends upon config.status
545
Makefile: Makefile.in config.status
546
        ./config.status
547
 
548
.c.o:
549
        $(CC) -c $(CC_SWITCHES) $<
550
 
551
# CYGNUS LOCAL: Rebuild config.status when appropriate.
552
config.status: configure
553
        $(SHELL) config.status --recheck
554
 
555
# DO NOT DELETE THIS LINE -- make depend depends on it.
556
 

powered by: WebSVN 2.1.0

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