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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [win/] [Makefile.in] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# This file is CYGNUS LOCAL.  It is a copy of makefile.vc modified for
2
# GNU make.  Only the support for tcl 7.6 is finished.
3
 
4
prefix = @prefix@
5
exec_prefix = @exec_prefix@
6
VPATH = @srcdir@:@srcdir@/../generic
7
srcdir = @srcdir@
8
libdir=@libdir@
9
bindir=@bindir@
10
includedir=@includedir@
11
mandir=@mandir@
12
datadir=@datadir@
13
host_alias=@host_alias@
14
 
15
CC = @CC@
16
CFLAGS = @CFLAGS@
17
EXTRA_CFLAGS = @EXTRA_CFLAGS@
18
TIX_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS)
19
NM = @NM@
20
AS = @AS@
21
LD = @LD@
22
DLLTOOL = @DLLTOOL@
23
WINDRES = @WINDRES@
24
OBJEXT = @OBJEXT@
25
 
26
# makefile.vc --
27
#
28
#       Visual C++ 4.x makefile for Tix.
29
#
30
# Copyright (c) 1996, Expert Interface Technologies
31
#
32
# See the file "license.terms" for information on usage and redistribution
33
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
34
#
35
 
36
#----------------------------------------------------------------------
37
# Environment setting
38
#
39
# You can set the following variables in your DOS environment. This
40
# way you don't need to change this file. E.g.:
41
#
42
#       set TCL_VER=7.5
43
#       nmake -f makefile.vc
44
#
45
# You can also set these variables in the command line to nmake. E.g.:
46
#
47
#       nmake TCL_VER=7.5 -f makefile.vc
48
#
49
# TOOLS32     = location of VC++ 32-bit development tools.
50
# TIX_DEBUG   = Compile Tix with debug information.
51
# TCL_VER     = version of Tcl to compile with. Should be either 7.5
52
#               or 7.6
53
#----------------------------------------------------------------------
54
 
55
#!IFNDEF TOOLS32
56
#TOOLS32        = C:\msdev
57
#!ENDIF
58
 
59
#!IFNDEF TIX_DEBUG
60
#NODEBUG=1
61
#!ENDIF
62
 
63
#!IFNDEF TCL_VER
64
#TCL_VER = 7.6
65
#!ENDIF
66
 
67
TCL_VER = @TCL_VER@
68
 
69
ifeq ($(TCL_VER),7.5)
70
 
71
TMPDIR  = tcl7.5
72
TCLDIR  = ../../tcl7.5
73
TKDIR   = ../../tk4.1
74
TCLLIB  = tcl75.lib
75
TCLDLL  = tcl75.dll
76
TKLIB   = tk41.lib
77
TKDLL   = tk41.dll
78
TIXLIB  = $(TMPDIR)/tix4175.lib
79
TIXLIBNAME = tix4175.lib
80
TIXDLL  = $(TMPDIR)/tix4175.dll
81
TIXDLLNAME = tix4175.dll
82
TIXWISH = $(TMPDIR)/tix4175.exe
83
TIXWISHNAME = tix4175.exe
84
 
85
CONSOLE_OBJ = tkConsole41.$(OBJEXT)
86
 
87
endif
88
 
89
ifeq ($(TCL_VER),7.6)
90
 
91
TMPDIR  = tcl7.6
92
TCLDIR  = ../../tcl
93
TCLSRCDIR = $(srcdir)/../../tcl
94
TKDIR   = ../../tk
95
TKSRCDIR = $(srcdir)/../../tk
96
TCLLIB  = libtcl76.a
97
TCLDLL  = cygtcl76.dll
98
TKLIB   = libtk42.a
99
TKDLL   = cygtk42.dll
100
TIXLIB  = $(TMPDIR)/libtix4176.a
101
TIXLIBNAME = libtix4176.a
102
TIXDLL  = $(TMPDIR)/tix4176.dll
103
TIXDLLNAME = tix4176.dll
104
TIXWISH = $(TMPDIR)/tix4176.exe
105
TIXWISHNAME = tix4176.exe
106
 
107
CONSOLE_OBJ = tkConsole42.$(OBJEXT)
108
 
109
endif
110
 
111
ifeq ($(TCL_VER),8.0a1)
112
 
113
TMPDIR  = tcl8.0
114
TCLDIR  = ../../tcl8.0a1
115
TKDIR   = ../../tk8.0a1
116
TCLLIB  = tcl80.lib
117
TCLDLL  = tcl80.dll
118
TKLIB   = tk80.lib
119
TKDLL   = tk80.dll
120
TIXLIB  = $(TMPDIR)/tix4180.lib
121
TIXLIBNAME = tix4180.lib
122
TIXDLL  = $(TMPDIR)/tix4180.dll
123
TIXDLLNAME = tix4180.dll
124
TIXWISH = $(TMPDIR)/tix4180.exe
125
TIXWISHNAME = tix4180.exe
126
 
127
CONSOLE_OBJ = tkConsole80a1.$(OBJEXT)
128
 
129
endif
130
 
131
ifeq ($(TCL_VER),8.0b1)
132
 
133
TMPDIR  = tcl8.0
134
TCLDIR  = ../../tcl8.0b1
135
TKDIR   = ../../tk8.0b1
136
TCLLIB  = tcl80.lib
137
TCLDLL  = tcl80.dll
138
TKLIB   = tk80.lib
139
TKDLL   = tk80.dll
140
TIXLIB  = $(TMPDIR)/tix4180.lib
141
TIXLIBNAME = tix4180.lib
142
TIXDLL  = $(TMPDIR)/tix4180.dll
143
TIXDLLNAME = tix4180.dll
144
TIXWISH = $(TMPDIR)/tix4180.exe
145
TIXWISHNAME = tix4180.exe
146
 
147
CONSOLE_OBJ = tkConsole80b1.$(OBJEXT)
148
 
149
endif
150
 
151
ifeq ($(TCL_VER),8.0)
152
 
153
TMPDIR  = tcl8.0
154
TCLDIR  = ../../tcl
155
TCLSRCDIR = $(srcdir)/../../tcl
156
TKDIR   = ../../tk
157
TKSRCDIR = $(srcdir)/../../tk
158
TCLLIB  = libtcl80.a
159
ifeq ($(OBJEXT),obj)
160
TCLDLL  = sntcl80.dll
161
else
162
TCLDLL  = cygtcl80.dll
163
endif
164
TKLIB   = libtk80.a
165
ifeq ($(OBJEXT),obj)
166
TKDLL   = sntk80.dll
167
else
168
TKDLL   = cygtk80.dll
169
endif
170
TIXRAWLIBNAME = $(TMPDIR)/tix4180.lib
171
TIXLIB  = $(TMPDIR)/libtix4180.a
172
TIXLIBNAME = libtix4180.a
173
TIXDLL  = $(TMPDIR)/tix4180.dll
174
TIXDLLNAME = tix4180.dll
175
TIXWISH = $(TMPDIR)/tix4180.exe
176
TIXWISHNAME = tix4180.exe
177
 
178
CONSOLE_OBJ = tkConsole80b1.$(OBJEXT)
179
 
180
endif
181
 
182
ifeq ($(TCL_VER),8.1)
183
 
184
TMPDIR  = tcl8.1
185
TCLDIR  = ../../tcl8.1
186
TCLSRCDIR = $(srcdir)/../../tcl8.1
187
TKDIR   = ../../tk8.1
188
TKSRCDIR = $(srcdir)/../../tk8.1
189
TCLLIB  = libtcl81.a
190
ifeq ($(OBJEXT),obj)
191
TCLDLL  = sntcl81.dll
192
else
193
TCLDLL  = cygtcl81.dll
194
endif
195
TKLIB   = libtk81.a
196
ifeq ($(OBJEXT),obj)
197
TKDLL   = sntk81.dll
198
else
199
TKDLL   = cygtk81.dll
200
endif
201
TIXRAWLIBNAME = $(TMPDIR)/tix4181.lib
202
TIXLIB  = $(TMPDIR)/libtix4181.a
203
TIXLIBNAME = libtix4181.a
204
TIXDLL  = $(TMPDIR)/tix4181.dll
205
TIXDLLNAME = tix4181.dll
206
TIXWISH = $(TMPDIR)/tix4181.exe
207
TIXWISHNAME = tix4181.exe
208
 
209
CONSOLE_OBJ = tkConsole81.$(OBJEXT)
210
 
211
endif
212
 
213
 
214
ifeq ($(TCL_VER),2.2i)
215
 
216
TMPDIR  = itcl2.2
217
ITCL_DIR = ../../itcl2.2
218
TCLDIR  = $(ITCL_DIR)/tcl7.6
219
TKDIR   = $(ITCL_DIR)/tk4.2
220
TCLLIB  = tcl76i.lib
221
TCLDLL  = tcl76i.dll
222
TKLIB   = tk42i.lib
223
TKDLL   = tk42i.dll
224
TIXLIB  = $(TMPDIR)/tix41761.lib
225
TIXLIBNAME = tix41761.lib
226
TIXDLL  = $(TMPDIR)/tix41761.dll
227
TIXDLLNAME = tix41761.dll
228
TIXWISH = $(TMPDIR)/tix41761.exe
229
TIXWISHNAME = tix41761.exe
230
 
231
CONSOLE_OBJ = tkConsole42.$(OBJEXT)
232
 
233
ITCL_LIBS   = $(ITCL_DIR)\itcl\win\itcl22.lib $(ITCL_DIR)\itk\win\itk22.lib
234
ITCL_CFLAGS = -DITCL_2 -I$(ITCL_DIR)\itcl\generic -I$(ITCL_DIR)\itk\generic
235
 
236
endif
237
 
238
#!IFNDEF TCLDIR
239
#!ERROR "Unsupported Tcl version $(TCL_VER)"
240
#!ENDIF
241
 
242
ifeq ($(OBJEXT),obj)
243
TMPDIR=.
244
endif
245
 
246
# Project directories
247
#
248
# ROOT = top of source tree
249
# TMPDIR = location where .o files should be stored during build
250
# TCLDIR = location of top of Tcl source heirarchy
251
#
252
 
253
ROOT    = ..
254
 
255
# uncomment the following two lines to compile with TCL_MEM_DEBUG
256
#DEBUGDEFINES   =-DTCL_MEM_DEBUG
257
 
258
# Make sure the VC++ tools are at the head of the path
259
#PATH=$(TOOLS32)\bin;$(PATH)
260
 
261
TCLLIBDIR       = $(TCLDIR)/win
262
TKLIBDIR        = $(TKDIR)/win
263
WINDIR          = $(ROOT)/win
264
GENERICDIR      = $(ROOT)/generic
265
XLIBDIR         = $(ROOT)/xlib
266
 
267
cc32 = $(TOOLS32)\bin\cl -I$(TOOLS32)\include
268
rc32 = $(TOOLS32)\bin\rc
269
link32 = $(TOOLS32)\bin\link
270
 
271
#----------------------------------------------------------------------
272
# You shouldn't normally modify anything below this line
273
#----------------------------------------------------------------------
274
 
275
X_TK_INCLUDES = -I$(srcdir) -I$(srcdir)/../generic \
276
        -I$(TKSRCDIR)/generic -I$(TKSRCDIR)/win -I$(TKSRCDIR)/xlib \
277
        -I$(TCLSRCDIR)/generic
278
 
279
TK_INCLUDES = -D_Windows $(X_TK_INCLUDES)
280
 
281
TK_DEFINES = \
282
        -nologo $(DEBUGDEFINES)
283
 
284
WISHOBJS = \
285
        $(TMPDIR)/tixWinMain.$(OBJEXT)
286
 
287
TIXOBJS = \
288
        $(TMPDIR)/$(CONSOLE_OBJ)  \
289
        $(TMPDIR)/tixClass.$(OBJEXT)    \
290
        $(TMPDIR)/tixCmds.$(OBJEXT)     \
291
        $(TMPDIR)/tixCompat.$(OBJEXT)   \
292
        $(TMPDIR)/tixDiImg.$(OBJEXT)    \
293
        $(TMPDIR)/tixDiITxt.$(OBJEXT)   \
294
        $(TMPDIR)/tixDiStyle.$(OBJEXT)  \
295
        $(TMPDIR)/tixDItem.$(OBJEXT)    \
296
        $(TMPDIR)/tixDiText.$(OBJEXT)   \
297
        $(TMPDIR)/tixDiWin.$(OBJEXT)    \
298
        $(TMPDIR)/tixError.$(OBJEXT)    \
299
        $(TMPDIR)/tixForm.$(OBJEXT)     \
300
        $(TMPDIR)/tixFormMisc.$(OBJEXT) \
301
        $(TMPDIR)/tixGeometry.$(OBJEXT) \
302
        $(TMPDIR)/tixHLCol.$(OBJEXT)    \
303
        $(TMPDIR)/tixHLHdr.$(OBJEXT)    \
304
        $(TMPDIR)/tixHLInd.$(OBJEXT)    \
305
        $(TMPDIR)/tixImgCmp.$(OBJEXT)   \
306
        $(TMPDIR)/tixHList.$(OBJEXT)    \
307
        $(TMPDIR)/tixList.$(OBJEXT)     \
308
        $(TMPDIR)/tixMethod.$(OBJEXT)   \
309
        $(TMPDIR)/tixOption.$(OBJEXT)   \
310
        $(TMPDIR)/tixSmpLs.$(OBJEXT)    \
311
        $(TMPDIR)/tixWidget.$(OBJEXT)   \
312
        $(TMPDIR)/tixInit.$(OBJEXT)     \
313
        $(TMPDIR)/tixItcl.$(OBJEXT)     \
314
        $(TMPDIR)/tixUtils.$(OBJEXT)    \
315
        $(TMPDIR)/tixImgXpm.$(OBJEXT)   \
316
        $(TMPDIR)/tixNBFrame.$(OBJEXT)  \
317
        $(TMPDIR)/tixTList.$(OBJEXT)    \
318
        $(TMPDIR)/tixGrid.$(OBJEXT)     \
319
        $(TMPDIR)/tixGrData.$(OBJEXT)   \
320
        $(TMPDIR)/tixGrRC.$(OBJEXT)     \
321
        $(TMPDIR)/tixGrFmt.$(OBJEXT)    \
322
        $(TMPDIR)/tixGrSel.$(OBJEXT)    \
323
        $(TMPDIR)/tixGrUtl.$(OBJEXT)    \
324
        $(TMPDIR)/tixScroll.$(OBJEXT)   \
325
        $(TMPDIR)/tixWCmpt.$(OBJEXT)    \
326
        $(TMPDIR)/tixWinDraw.$(OBJEXT)  \
327
        $(TMPDIR)/tixWinXpm.$(OBJEXT)   \
328
        $(TMPDIR)/tixWinWm.$(OBJEXT)
329
 
330
CP = copy
331
 
332
#!include    
333
 
334
all:    $(TIXDLL) $(TIXWISH)
335
 
336
$(TMPDIR)/tixcyg.def: $(TIXOBJS)
337
        echo 'EXPORTS' > tmp.def
338
        for o in $(TIXOBJS); do \
339
          $(NM) --extern-only --defined-only $$o | sed -e 's/[^ ]* [^ ]* //' -e 's/^_//' | fgrep -v DllEntryPoint | fgrep -v DllMain | fgrep -v impure_ptr | fgrep -v _real@ >> tmp.def; \
340
        done
341
        mv tmp.def $(TMPDIR)/tixcyg.def
342
 
343
# USE THESE IF YOU DO NOT WANT TO LINK TO ON MSVCRT.DLL
344
#XGUILIBS = $(guilibs)
345
#XCVARS   = $(cvars)
346
 
347
XGUILIBS = $(guilibsdll)
348
XCVARS   = $(cvarsdll)
349
 
350
# (ToDo) $(TIXDLL) doesn't have resources to define its icon, etc.
351
#
352
 
353
ifeq ($(OBJEXT),o)
354
 
355
$(TIXDLL): $(TIXOBJS) $(TMPDIR)/tixcyg.def
356
        $(CC) -s -nostartfiles -Wl,--base-file,tix.base -Wl,--dll -o $(TIXDLLNAME) $(TIXOBJS) $(TKLIBDIR)/$(TKLIB) $(TCLLIBDIR)/$(TCLLIB) -lcygwin -ladvapi32 -luser32 -lgdi32 -lcomdlg32 -lkernel32 -Wl,--subsystem,windows -Wl,-e,_DllMain@12 -Wl,--image-base,0x66600000
357
        $(DLLTOOL) --as=$(AS) --dllname $(TIXDLLNAME) --def $(TMPDIR)/tixcyg.def --base-file tix.base --output-exp tix.exp
358
        $(CC) -s -nostartfiles -Wl,--base-file,tix.base -Wl,tix.exp -Wl,-dll -o $(TIXDLLNAME) $(TIXOBJS) $(TKLIBDIR)/$(TKLIB) $(TCLLIBDIR)/$(TCLLIB) -lcygwin -ladvapi32 -luser32 -lgdi32 -lcomdlg32 -lkernel32 -Wl,--subsystem,windows -Wl,-e,_DllMain@12 -Wl,--image-base,0x66600000
359
        $(DLLTOOL) --as=$(AS) --dllname $(TIXDLLNAME) --def $(TMPDIR)/tixcyg.def --base-file tix.base --output-exp tix.exp
360
        $(CC) -nostartfiles -Wl,tix.exp -Wl,--dll -o $(TIXDLLNAME) $(TIXOBJS) $(TKLIBDIR)/$(TKLIB) $(TCLLIBDIR)/$(TCLLIB) -lcygwin -ladvapi32 -luser32 -lgdi32 -lcomdlg32 -lkernel32 -Wl,--subsystem,windows -Wl,-e,_DllMain@12 -Wl,--image-base,0x66600000
361
        cp $(TIXDLLNAME) $(TIXDLL)
362
 
363
$(TIXLIB): $(TMPDIR)/tixcyg.def
364
        $(DLLTOOL) --as=$(AS) --dllname $(TIXDLLNAME) --def $(TMPDIR)/tixcyg.def --output-lib $(TIXLIB)
365
 
366
$(TIXWISH): $(WISHOBJS) $(TIXOBJS) $(TIXLIB) $(TMPDIR)/tixwishres.$(OBJEXT)
367
        $(CC) -mwindows $(WISHOBJS) $(TMPDIR)/tixwishres.$(OBJEXT) $(TIXLIB) \
368
                $(TKLIBDIR)/$(TKLIB) $(TCLLIBDIR)/$(TCLLIB) \
369
                -o $(TIXWISH)
370
else
371
 
372
$(TIXDLL): $(TIXOBJS) $(TMPDIR)/tixcyg.def
373
        link -debug -dll -out:$(TIXDLL) $(TKLIBDIR)/$(TKLIB) \
374
        $(TCLLIBDIR)/$(TCLLIB) $(TIXOBJS) -def:$(TMPDIR)/tixcyg.def \
375
        gdi32.lib user32.lib
376
        mv $(TIXRAWLIBNAME) $(TIXLIB)
377
 
378
$(TIXLIB): $(TIXDLL)
379
 
380
$(TIXWISH): $(WISHOBJS) $(TIXOBJS) $(TIXLIB) $(TMPDIR)/tixwishres.$(OBJEXT)
381
        link -DEBUG $(WISHOBJS) $(TMPDIR)/tixwishres.$(OBJEXT) $(TIXLIB) \
382
                $(TKLIBDIR)/$(TKLIB) $(TCLLIBDIR)/$(TCLLIB) \
383
                -OUT:$(TIXWISH) user32.lib
384
endif
385
 
386
 
387
#
388
# Special case object file targets
389
#
390
 
391
$(TMPDIR)/testMain.$(OBJEXT): $(ROOT)/win/tixWinMain.c
392
        $(CC) -c $(TK_INCLUDES) -DSTATIC_BUILD -DTK_TEST $(TIX_CFLAGS) -o $@ $?
393
 
394
$(TMPDIR)/tixWinMain.$(OBJEXT): $(ROOT)/win/tixWinMain.c
395
        $(CC) -c $(TK_INCLUDES) -DSTATIC_BUILD $(TIX_CFLAGS) -o $@ $?
396
 
397
ifeq ($(OBJEXT),o)
398
 
399
$(TMPDIR)/tixwishres.$(OBJEXT): $(ROOT)/win/rc/tixwish.rc
400
        $(WINDRES) --include $(srcdir)/rc --include $(srcdir)/../generic --define VS_VERSION_INFO=1 $(srcdir)/rc/tixwish.rc $(TMPDIR)/tixwishres.$(OBJEXT)
401
 
402
else
403
 
404
$(TMPDIR)/tixwishres.$(OBJEXT): $(ROOT)/win/rc/tixwish.rc
405
        rc -i$(srcdir)/rc -i$(srcdir)/../generic -dVS_VERSION_INFO=1 -fo$(TMPDIR)/tixwishres.$(OBJEXT) $(srcdir)/rc/tixwish.rc
406
 
407
endif
408
#
409
# Implicit rules
410
#
411
 
412
.c.$(OBJEXT):
413
        $(CC) -c $(TIX_CFLAGS) -DDLL_BUILD -DBUILD_tix $(TK_INCLUDES) -c -o $@ $<
414
 
415
$(TMPDIR)/%.$(OBJEXT): %.c
416
        $(CC) -c $(TIX_CFLAGS) -DDLL_BUILD -DBUILD_tix $(TK_INCLUDES) -c -o $@ $<
417
 
418
clean:
419
        rm -f $(TMPDIR)/*.$(OBJEXT) $(TMPDIR)/*.exp $(TMPDIR)/*.def
420
        rm -f $(TIXLIB) $(TIXDLL) $(TIXDLLNAME) $(TIXWISH)
421
 
422
Makefile: $(srcdir)/Makefile.in config.status
423
        $(SHELL) config.status
424
 
425
config.status: $(srcdir)/configure
426
        ./config.status --recheck
427
 
428
#----------------------------------------------------------------------
429
#
430
#                       Installation
431
#
432
#----------------------------------------------------------------------
433
 
434
TIX_VERSION = @TIX_VERSION@
435
 
436
# Directory in which to install the library of Tix scripts and demos
437
# (note: you can set the TIX_LIBRARY environment variable at run-time to
438
# override the compiled-in location):
439
TIX_LIBRARY =   $(datadir)/tix$(TIX_VERSION)
440
 
441
# CYGNUS LOCAL: dj - change to autoconf'd directories
442
 
443
# Directory in which to install the archive libtix.a:
444
LIB_DIR =       $(libdir)
445
 
446
# Directory in which to install the program wish:
447
BIN_DIR =       $(bindir)
448
 
449
# Directory in which to install the include file tix.h:
450
INCLUDE_DIR =   $(includedir)
451
 
452
# Top-level directory for manual entries:
453
MAN_DIR =       $(mandir)
454
 
455
# Directory in which to install manual entry for wish:
456
MAN1_DIR =      $(MAN_DIR)/man1
457
 
458
# Directory in which to install manual entries for Tix's C library
459
# procedures:
460
MAN3_DIR =      $(MAN_DIR)/man3
461
 
462
# Directory in which to install manual entries for the built-in
463
# Tcl commands implemented by Tix:
464
MANN_DIR =      $(MAN_DIR)/mann
465
 
466
INSTALL         =       @SRC_DIR@/install.sh -c
467
INSTALL_PROGRAM =       @INSTALL_PROGRAM@
468
INSTALL_DATA    =       @INSTALL_DATA@
469
SRC_DIR         =       @SRC_DIR@
470
INC_DIR         =       @SRC_DIR@/generic
471
UNIX_DIR        =       @SRC_DIR@/unix
472
LIBRARY_DIR     =       @SRC_DIR@/library
473
DEMOS_DIR       =       @SRC_DIR@/demos
474
DEMO_PROGS      =       widget
475
TOOLS_DIR       =       @SRC_DIR@/tools
476
MANUAL_DIR      =       @SRC_DIR@/man
477
 
478
install:: install-basic install-binaries
479
        @echo done
480
 
481
install-binaries::
482
        @for i in $(LIB_DIR) $(BIN_DIR) ; \
483
            do \
484
            if [ ! -d $$i ] ; then \
485
                echo "Making directory $$i"; \
486
                mkdir $$i; \
487
                chmod 755 $$i; \
488
                else true; \
489
                fi; \
490
            done;
491
        @echo "Installing $(TIXLIB) as $(LIB_DIR)/$(TIXLIBNAME)"
492
        @$(INSTALL_DATA) $(TIXLIB) $(LIB_DIR)/$(TIXLIBNAME)
493
        @echo "Installing $(TIXWISH) as $(BIN_DIR)/$(TIXWISHNAME)"
494
        @$(INSTALL_PROGRAM) $(TIXWISH) $(BIN_DIR)/$(TIXWISHNAME)
495
        @echo "Installing $(TIXDLL) as $(BIN_DIR)/$(TIXDLLNAME)"
496
        @$(INSTALL_PROGRAM) $(TIXDLL) $(BIN_DIR)/$(TIXDLLNAME)
497
 
498
#
499
# Basic installtion
500
#
501
install-basic:: install-libraries install-headers install-demos \
502
        install-man install-tools
503
 
504
install-tools:
505
        @for i in $(BIN_DIR) ; \
506
            do \
507
            if [ ! -d $$i ] ; then \
508
                echo "Making directory $$i"; \
509
                mkdir $$i; \
510
                chmod 755 $$i; \
511
                else true; \
512
                fi; \
513
            done;
514
        @echo "installing the tixindex program for building tclIndex for Tix scripts"
515
        @cd $(TOOLS_DIR); $(INSTALL_PROGRAM) tixindex $(BIN_DIR)/tixindex
516
 
517
install-headers:
518
        @for i in $(INCLUDE_DIR); \
519
            do \
520
            if [ ! -d $$i ] ; then \
521
                echo "Making directory $$i"; \
522
                mkdir $$i; \
523
                chmod 755 $$i; \
524
                else true; \
525
                fi; \
526
            done;
527
        @for i in $(INC_DIR)/tix.h; \
528
            do \
529
            echo "Installing $$i"; \
530
            $(INSTALL_DATA) $$i $(INCLUDE_DIR); \
531
            done;
532
 
533
install-libraries:
534
        @for i in $(BIN_DIR) $(prefix)/lib $(TIX_LIBRARY) $(TIX_LIBRARY)/bitmaps $(TIX_LIBRARY)/pref; \
535
            do \
536
            if [ ! -d $$i ] ; then \
537
                echo "Making directory $$i"; \
538
                mkdir $$i; \
539
                chmod 755 $$i; \
540
                else true; \
541
                fi; \
542
            done;
543
        @echo "Installing $(TIXDLL) as $(BIN_DIR)/$(TIXDLLNAME)"
544
        @$(INSTALL_PROGRAM) $(TIXDLL) $(BIN_DIR)/$(TIXDLLNAME)
545
        @for i in $(LIBRARY_DIR)/*.tcl $(LIBRARY_DIR)/tclIndex; \
546
            do \
547
            echo "Installing $$i"; \
548
            $(INSTALL_DATA) $$i $(TIX_LIBRARY); \
549
            done;
550
        @for i in $(LIBRARY_DIR)/bitmaps/*; \
551
            do \
552
            if [ -f $$i ] ; then \
553
                echo "Installing $$i"; \
554
                $(INSTALL_DATA) $$i $(TIX_LIBRARY)/bitmaps; \
555
                fi; \
556
            done;
557
        @for i in $(LIBRARY_DIR)/pref/*; \
558
            do \
559
            if [ -f $$i ] ; then \
560
                echo "Installing $$i"; \
561
                $(INSTALL_DATA) $$i $(TIX_LIBRARY)/pref; \
562
                fi; \
563
            done;
564
        @echo "Installing pkgIndex.tcl"
565
        @$(INSTALL_DATA) $(srcdir)/pkgIndex.tcl $(TIX_LIBRARY)
566
 
567
install-demos:
568
        @for i in $(prefix)/lib $(TIX_LIBRARY) $(TIX_LIBRARY)/demos \
569
                $(TIX_LIBRARY)/demos/bitmaps $(TIX_LIBRARY)/demos/samples ; \
570
            do \
571
            if [ ! -d $$i ] ; then \
572
                echo "Making directory $$i"; \
573
                mkdir $$i; \
574
                chmod 755 $$i; \
575
                else true; \
576
                fi; \
577
            done;
578
        @cd $(DEMOS_DIR); for i in *; \
579
            do \
580
            if [ -f $$i ] ; then \
581
                echo "Installing demos/$$i"; \
582
                sed -e '1 s|/usr/local/bin/tixwish|$(BIN_DIR)/tixwish|' \
583
                        $$i > $(TIX_LIBRARY)/demos/$$i; \
584
            fi; \
585
            done;
586
        @for i in $(DEMO_PROGS); \
587
            do \
588
            chmod 755 $(TIX_LIBRARY)/demos/$$i; \
589
            done;
590
        @for i in $(DEMOS_DIR)/bitmaps/*; \
591
            do \
592
            if [ -f $$i ] ; then \
593
                echo "Installing $$i"; \
594
                $(INSTALL_DATA) $$i $(TIX_LIBRARY)/demos/bitmaps; \
595
                fi; \
596
            done;
597
        @for i in $(DEMOS_DIR)/samples/*; \
598
            do \
599
            if [ -f $$i ] ; then \
600
                echo "Installing $$i"; \
601
                $(INSTALL_DATA) $$i $(TIX_LIBRARY)/demos/samples; \
602
                fi; \
603
            done;
604
 
605
install-man:
606
        @for i in $(MAN_DIR) $(MAN1_DIR) $(MAN3_DIR) $(MANN_DIR) ; \
607
            do \
608
            if [ ! -d $$i ] ; then \
609
                echo "Making directory $$i"; \
610
                mkdir $$i; \
611
                chmod 755 $$i; \
612
                else true; \
613
                fi; \
614
            done;
615
        @cd $(MANUAL_DIR); for i in *.n *.1; \
616
            do \
617
            echo "Installing doc/$$i"; \
618
            rm -f $(MANN_DIR)/$$i; \
619
            sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
620
                    $$i > $(MANN_DIR)/$$i; \
621
            chmod 444 $(MANN_DIR)/$$i; \
622
            done;
623
 
624
install-info info installcheck:
625
 
626
install-minimal: install-libraries
627
        @echo "Installing $(TIXDLL) as $(BIN_DIR)/$(TIXDLLNAME)"
628
        @$(INSTALL_PROGRAM) $(TIXDLL) $(BIN_DIR)/$(TIXDLLNAME)

powered by: WebSVN 2.1.0

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