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

Subversion Repositories or1k

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

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

Line No. Rev Author Line
1 578 markom
# This file is a Makefile for Tix.  If it has the name "Makefile.in"
2
# then it is a template for a Makefile;  to generate the actual Makefile,
3
# run "./configure", which is a configuration script generated by the
4
# "autoconf" program (constructs like "@foo@" will get replaced in the
5
# actual Makefile.
6
#
7
 
8
#----------------------------------------------------------------
9
# Things you can change to personalize the Makefile for your own
10
# site (you can make these changes in either Makefile.in or
11
# Makefile, but changes to Makefile will get lost if you re-run
12
# the configuration script).
13
#----------------------------------------------------------------
14
 
15
# Default top-level directories in which to install architecture-
16
# specific files (exec_prefix) and machine-independent files such
17
# as scripts (prefix).  The values specified here may be overridden
18
# at configure-time with the --exec-prefix and --prefix options
19
# to the "configure" script.
20
 
21
prefix      =   @prefix@
22
exec_prefix =   @exec_prefix@
23
 
24
@SET_MAKE@
25
 
26
TIX_VERSION = @TIX_VERSION@
27
 
28
# Directory in which to install the library of Tix scripts and demos
29
# (note: you can set the TIX_LIBRARY environment variable at run-time to
30
# override the compiled-in location):
31
TIX_LIBRARY =   $(prefix)/share/tix$(TIX_VERSION)
32
 
33
# Directory in which to install the archive libtix.a:
34
LIB_DIR =       $(exec_prefix)/lib
35
 
36
# Directory in which to install the program wish:
37
BIN_DIR =       $(exec_prefix)/bin
38
 
39
# Directory in which to install the include file tix.h:
40
INCLUDE_DIR =   $(prefix)/include
41
 
42
# Top-level directory for manual entries:
43
MAN_DIR =       $(prefix)/man
44
 
45
# Directory in which to install manual entry for wish:
46
MAN1_DIR =      $(MAN_DIR)/man1
47
 
48
# Directory in which to install manual entries for Tix's C library
49
# procedures:
50
MAN3_DIR =      $(MAN_DIR)/man3
51
 
52
# Directory in which to install manual entries for the built-in
53
# Tcl commands implemented by Tix:
54
MANN_DIR =      $(MAN_DIR)/mann
55
 
56
# Some versions of make, like SGI's, use the following variable to
57
# determine which shell to use for executing commands:
58
SHELL = @SHELL@
59
 
60
#----------------------------------------------------------------
61
# The information below is modified by the configure script when
62
# Makefile is generated from Makefile.in.  You shouldn't normally
63
# modify any of this stuff by hand.
64
#----------------------------------------------------------------
65
INSTALL         =       @SRC_DIR@/install.sh -c
66
INSTALL_PROGRAM =       @INSTALL_PROGRAM@
67
INSTALL_DATA    =       @INSTALL_DATA@
68
SRC_DIR         =       @SRC_DIR@
69
INC_DIR         =       @SRC_DIR@/generic
70
UNIX_DIR        =       @SRC_DIR@/unix
71
LIBRARY_DIR     =       @SRC_DIR@/library
72
DEMOS_DIR       =       @SRC_DIR@/demos
73
DEMO_PROGS      =       widget
74
TOOLS_DIR       =       @SRC_DIR@/tools
75
MANUAL_DIR      =       @SRC_DIR@/man
76
# CYGNUS LOCAL: Set VPATH to unix subdirectory, not top level.
77
VPATH           =       @SRC_DIR@/unix
78
CFLAGS          =       @CFLAGS@
79
 
80
# CYGNUS LOCAL: Just recur for most targets:
81
 
82
SUBDIR = @SUBDIR@
83
 
84
all test:
85
        @cd $(SUBDIR) && $(MAKE) $@
86
 
87
mostlyclean-recursive clean-recursive distclean-recursive \
88
maintainer-clean-recursive:
89
        @cd $(SUBDIR) && $(MAKE) `echo $@ | sed 's/-recursive//'`
90
 
91
configure:
92
        cd $(SRC_DIR)/unix && autoconf
93
 
94
mostlyclean: mostlyclean-recursive
95
 
96
maintainer-clean: distclean-local maintainer-clean-recursive
97
 
98
config.status: configure
99
        $(SHELL) config.status --recheck
100
 
101
# END CYGNUS LOCAL
102
 
103
#----------------------------------------------------------------------
104
#
105
#                       Installation
106
#
107
#----------------------------------------------------------------------
108
install:: install-basic install-binaries
109
        @echo done
110
 
111
BINDIRS = tk4.0 tk4.1 tk4.2 tk4.3 tk8.0 itcl2.0 itcl2.1 itcl2.2
112
 
113
install-binaries::
114
        @for i in $(BINDIRS); \
115
        do \
116
            if test -r $$i/Makefile; then \
117
                echo "Entering directory $$i"; \
118
                cd $$i; \
119
                $(MAKE) prefix=$(prefix) \
120
                    exec_prefix=$(exec_prefix) _install_; \
121
                cd ..; \
122
            fi; \
123
        done;
124
 
125
#
126
# Basic installtion
127
#
128
install-basic:: install-libraries install-headers install-demos \
129
        install-man install-tools
130
 
131
install-tools:
132
        @for i in $(BIN_DIR) ; \
133
            do \
134
            if [ ! -d $$i ] ; then \
135
                echo "Making directory $$i"; \
136
                mkdir $$i; \
137
                chmod 755 $$i; \
138
                else true; \
139
                fi; \
140
            done;
141
        @echo "installing the tixindex program for building tclIndex for Tix scripts"
142
        @cd $(TOOLS_DIR); $(INSTALL_PROGRAM) tixindex $(BIN_DIR)/tixindex
143
 
144
install-headers:
145
        @for i in $(INCLUDE_DIR); \
146
            do \
147
            if [ ! -d $$i ] ; then \
148
                echo "Making directory $$i"; \
149
                mkdir $$i; \
150
                chmod 755 $$i; \
151
                else true; \
152
                fi; \
153
            done;
154
        @for i in $(INC_DIR)/tix.h; \
155
            do \
156
            echo "Installing $$i"; \
157
            $(INSTALL_DATA) $$i $(INCLUDE_DIR); \
158
            done;
159
 
160
install-libraries:
161
        @for i in $(TIX_LIBRARY) $(TIX_LIBRARY)/bitmaps $(TIX_LIBRARY)/pref; \
162
            do \
163
            if [ ! -d $$i ] ; then \
164
                echo "Making directory $$i"; \
165
                mkdir $$i; \
166
                chmod 755 $$i; \
167
                else true; \
168
                fi; \
169
            done;
170
        @for i in $(LIBRARY_DIR)/*.tcl $(LIBRARY_DIR)/tclIndex; \
171
            do \
172
            echo "Installing $$i"; \
173
            $(INSTALL_DATA) $$i $(TIX_LIBRARY); \
174
            done;
175
        @for i in $(LIBRARY_DIR)/bitmaps/* .gif $(LIBRARY_DIR)/bitmaps/*.x*m; \
176
            do \
177
            if [ -f $$i ] ; then \
178
                echo "Installing $$i"; \
179
                $(INSTALL_DATA) $$i $(TIX_LIBRARY)/bitmaps; \
180
                fi; \
181
            done;
182
        @for i in $(LIBRARY_DIR)/pref/*.f* $(LIBRARY_DIR)/pref/*.c* $(LIBRARY_DIR)/pref/tixmkpref; \
183
            do \
184
            if [ -f $$i ] ; then \
185
                echo "Installing $$i"; \
186
                $(INSTALL_DATA) $$i $(TIX_LIBRARY)/pref; \
187
                fi; \
188
            done;
189
        @echo "Installing pkgIndex.tcl"
190
        @cat */pkgIndex.tcl > pkgIndex.tcl
191
        @$(INSTALL_DATA) pkgIndex.tcl $(TIX_LIBRARY)
192
 
193
install-demos:
194
        @for i in $(prefix)/lib $(TIX_LIBRARY) $(TIX_LIBRARY)/demos \
195
                $(TIX_LIBRARY)/demos/bitmaps $(TIX_LIBRARY)/demos/samples ; \
196
            do \
197
            if [ ! -d $$i ] ; then \
198
                echo "Making directory $$i"; \
199
                mkdir $$i; \
200
                chmod 755 $$i; \
201
                else true; \
202
                fi; \
203
            done;
204
        @cd $(DEMOS_DIR); for i in *; \
205
            do \
206
            if [ -f $$i ] ; then \
207
                echo "Installing demos/$$i"; \
208
                sed -e '1 s|/usr/local/bin/tixwish|$(BIN_DIR)/tixwish|' \
209
                        $$i > $(TIX_LIBRARY)/demos/$$i; \
210
            fi; \
211
            done;
212
        @for i in $(DEMO_PROGS); \
213
            do \
214
            chmod 755 $(TIX_LIBRARY)/demos/$$i; \
215
            done;
216
        @for i in $(DEMOS_DIR)/bitmaps/*; \
217
            do \
218
            if [ -f $$i ] ; then \
219
                echo "Installing $$i"; \
220
                $(INSTALL_DATA) $$i $(TIX_LIBRARY)/demos/bitmaps; \
221
                fi; \
222
            done;
223
        @for i in $(DEMOS_DIR)/samples/*; \
224
            do \
225
            if [ -f $$i ] ; then \
226
                echo "Installing $$i"; \
227
                $(INSTALL_DATA) $$i $(TIX_LIBRARY)/demos/samples; \
228
                fi; \
229
            done;
230
 
231
install-man:
232
        @for i in $(MAN_DIR) $(MAN1_DIR) $(MAN3_DIR) $(MANN_DIR) ; \
233
            do \
234
            if [ ! -d $$i ] ; then \
235
                echo "Making directory $$i"; \
236
                mkdir $$i; \
237
                chmod 755 $$i; \
238
                else true; \
239
                fi; \
240
            done;
241
        @cd $(MANUAL_DIR); for i in *.n *.1; \
242
            do \
243
            echo "Installing doc/$$i"; \
244
            rm -f $(MANN_DIR)/$$i; \
245
            sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
246
                    $$i > $(MANN_DIR)/$$i; \
247
            chmod 444 $(MANN_DIR)/$$i; \
248
            done;
249
 
250
# CYGNUS LOCAL: install-minimal target.
251
install-minimal: install-libraries
252
 
253
tests::
254
        @for i in $(BINDIRS); \
255
        do \
256
            if test -r $$i/Makefile; then \
257
                echo "Entering directory $$i"; \
258
                cd $$i; \
259
                $(MAKE) tests; \
260
                cd $(UNIX_DIR); \
261
            fi; \
262
        done;
263
 
264
sa-tests::
265
        @for i in $(BINDIRS); \
266
        do \
267
            if test -r $$i/Makefile; then \
268
                echo "Entering directory $$i"; \
269
                cd $$i; \
270
                $(MAKE) sa-tests; \
271
                cd $(UNIX_DIR); \
272
            fi; \
273
        done;
274
 
275
compile::
276
        @for i in $(BINDIRS); \
277
        do \
278
            if test -r $$i/Makefile; then \
279
                echo "Entering directory $$i"; \
280
                cd $$i; \
281
                $(MAKE) CFLAGS=$(CFLAGS) ; \
282
                cd $(UNIX_DIR); \
283
            fi; \
284
        done;
285
 
286
clean::
287
        @for i in $(BINDIRS); \
288
        do \
289
            if test -r $$i/Makefile; then \
290
                echo "Entering directory $$i"; \
291
                cd $$i; \
292
                $(MAKE) clean; \
293
                cd $(UNIX_DIR); \
294
            fi; \
295
        done;
296
        - rm -f tixSamLib.c tixBitmaps.c
297
 
298
distclean::
299
        @for i in $(BINDIRS); \
300
        do \
301
            if test -r $$i/Makefile; then \
302
                echo "Entering directory $$i"; \
303
                cd $$i; \
304
                $(MAKE) distclean; \
305
                cd $(UNIX_DIR); \
306
            fi; \
307
        done;
308
        - rm -f config.status Makefile.bak config.status \
309
          config.cache config.log tixConfig.tcl *~ Makefile
310
 
311
# CYGNUS LOCAL: Makefile depends upon config.status
312
Makefile:Makefile.in config.status
313
        ./config.status
314
 
315
autoconf::
316
        autoconf
317
 
318
config::
319
        -cd tk4.0; ./configure
320
        -cd tk4.1; ./configure
321
        -cd tk4.2; ./configure
322
        -cd tk4.3; ./configure
323
        -cd tk8.0; ./configure
324
        -cd itcl2.0; ./configure
325
        -cd itcl2.1; ./configure
326
        -cd itcl2.2; ./configure
327
 
328
config-shared::
329
        -cd tk4.0; ./configure
330
        -cd tk4.1; ./configure --enable-shared
331
        -cd tk4.2; ./configure --enable-shared
332
        -cd tk4.3; ./configure --enable-shared
333
        -cd tk8.0; ./configure --enable-shared
334
        -cd itcl2.0; ./configure
335
        -cd itcl2.1; ./configure --enable-shared
336
        -cd itcl2.2; ./configure --enable-shared
337
 
338
config-shared-sam::
339
        -cd tk4.0; ./configure --enable-sam
340
        -cd tk4.1; ./configure --enable-shared --enable-sam
341
        -cd tk4.2; ./configure --enable-shared --enable-sam
342
        -cd tk4.3; ./configure --enable-shared
343
        -cd tk8.0; ./configure --enable-shared
344
        -cd itcl2.0; ./configure
345
        -cd itcl2.1; ./configure --enable-shared
346
        -cd itcl2.2; ./configure --enable-shared
347
 

powered by: WebSVN 2.1.0

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