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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itcl/] [unix/] [Makefile.in] - Blame information for rev 1773

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

Line No. Rev Author Line
1 578 markom
#
2
# This file is a Makefile for [incr Tcl].  If it has the name
3
# "Makefile.in" then it is a template for a Makefile; to generate
4
# the actual Makefile, run "./configure", which is a configuration
5
# script generated by the "autoconf" program (constructs like
6
# "@foo@" will get replaced in the actual Makefile.
7
#
8
# RCS: $Id: Makefile.in,v 1.1.1.1 2002-01-16 10:24:47 markom Exp $
9
 
10
# Current [incr Tcl] version;  used in various names.
11
 
12
MAJOR_VERSION = @ITCL_MAJOR_VERSION@
13
MINOR_VERSION = @ITCL_MINOR_VERSION@
14
RELEASE_LEVEL = @ITCL_RELEASE_LEVEL@
15
VERSION = @ITCL_VERSION@
16
 
17
#----------------------------------------------------------------
18
# Things you can change to personalize the Makefile for your own
19
# site (you can make these changes in either Makefile.in or
20
# Makefile, but changes to Makefile will get lost if you re-run
21
# the configuration script).
22
#----------------------------------------------------------------
23
 
24
# Default top-level directories in which to install architecture-
25
# specific files (exec_prefix) and machine-independent files such
26
# as scripts (prefix).  The values specified here may be overridden
27
# at configure-time with the --exec-prefix and --prefix options
28
# to the "configure" script.
29
 
30
prefix =        @prefix@
31
exec_prefix =   @exec_prefix@
32
 
33
# The following definition can be set to non-null for special systems
34
# like AFS with replication.  It allows the pathnames used for installation
35
# to be different than those used for actually reference files at
36
# run-time.  INSTALL_ROOT is prepended to $prefix and $exec_prefix
37
# when installing files.
38
INSTALL_ROOT =
39
 
40
# Directory from which applications will reference the library of
41
# [incr Tcl] scripts (note: you can set the ITCL_LIBRARY environment
42
# variable at run-time to override this value):
43
# CYGNUS LOCAL: we use "share" rather than "lib" as the prefix for our
44
# Tcl files
45
ITCL_LIBRARY = $(prefix)/share/itcl$(VERSION)
46
# END  CYGNUS LOCAL
47
 
48
# Path name to use when installing library scripts:
49
SCRIPT_INSTALL_DIR =    $(INSTALL_ROOT)$(ITCL_LIBRARY)
50
 
51
# Directory in which to install the archive libtcl.a:
52
LIB_INSTALL_DIR =       $(INSTALL_ROOT)$(exec_prefix)/lib
53
 
54
# Path to use at runtime to refer to LIB_INSTALL_DIR:
55
LIB_RUNTIME_DIR =       $(exec_prefix)/lib
56
 
57
# Directory in which to install the program tclsh:
58
BIN_INSTALL_DIR =       $(INSTALL_ROOT)$(exec_prefix)/bin
59
 
60
# Directory in which to install the include file itcl.h:
61
INCLUDE_INSTALL_DIR =   $(INSTALL_ROOT)$(prefix)/include
62
 
63
# Top-level directory in which to install manual entries:
64
MAN_INSTALL_DIR =       $(INSTALL_ROOT)$(prefix)/man
65
 
66
# Directory in which to install manual entry for itclsh:
67
MAN1_INSTALL_DIR =      $(MAN_INSTALL_DIR)/man1
68
 
69
# Directory in which to install manual entries for [incr Tcl]'s
70
# C library procedures:
71
MAN3_INSTALL_DIR =      $(MAN_INSTALL_DIR)/man3
72
 
73
# Directory in which to install manual entries for the built-in
74
# [incr Tcl] commands:
75
MANN_INSTALL_DIR =      $(MAN_INSTALL_DIR)/mann
76
 
77
# Tcl source directory is included in this distribution. Use this to
78
# get the correct path:
79
TCL_SRC_DIR = @TCL_SRC_DIR@
80
 
81
# The directory containing the Tcl library archive file appropriate
82
# for this version of Tk:
83
TCL_LIB_DIR =   @TCL_LIB_DIR@
84
 
85
# Library flags for Tcl library
86
TCL_LIB_FLAG =  @TCL_LIB_FLAG@
87
 
88
# Tcl libraries built with optimization switches have this additional extension
89
DBGX =          @TCL_DBGX@
90
 
91
# Additional libraries to use when linking.  The "LIBS" part will be
92
# replaced (or has already been replaced) with relevant libraries as
93
# determined by the configure script.
94
LIBS = @TCL_BUILD_LIB_SPEC@ @TCL_LIBS@ @DL_LIBS@ -lc
95
 
96
# To change the compiler switches, for example to change from -O
97
# to -g, change the following line:
98
CFLAGS = @CFLAGS@
99
 
100
# To disable ANSI-C procedure prototypes reverse the comment characters
101
# on the following lines:
102
PROTO_FLAGS =
103
#PROTO_FLAGS = -DNO_PROTOTYPE
104
 
105
# To enable memory debugging reverse the comment characters on the following
106
# lines.  Warning:  if you enable memory debugging, you must do it
107
# *everywhere*, including all the code that calls Tcl, and you must use
108
# ckalloc and ckfree everywhere instead of malloc and free.
109
MEM_DEBUG_FLAGS =
110
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
111
 
112
# Some versions of make, like SGI's, use the following variable to
113
# determine which shell to use for executing commands:
114
SHELL =         /bin/sh
115
 
116
# Tcl used to let the configure script choose which program to use
117
# for installing, but there are just too many different versions of
118
# "install" around;  better to use the install-sh script that comes
119
# with the distribution, which is slower but guaranteed to work.
120
 
121
INSTALL = $(TOP_DIR)/../config/install-sh -c
122
INSTALL_PROGRAM =       ${INSTALL}
123
INSTALL_DATA =          ${INSTALL} -m 644
124
MKINSTALLDIRS =         $(TOP_DIR)/../config/mkinstalldirs
125
 
126
# The symbols below provide support for dynamic loading and shared
127
# libraries.  The values of the symbols are normally set by the
128
# configure script.  You shouldn't normally need to modify any of
129
# these definitions by hand.
130
 
131
SHLIB_CFLAGS = @SHLIB_CFLAGS@
132
TCL_CFLAGS = @TCL_CFLAGS@
133
 
134
LD_SEARCH_FLAGS = @LD_SEARCH_FLAGS@
135
 
136
ITCL_LIB_FILE = @ITCL_LIB_FILE@
137
#ITCL_LIB_FILE = libitcl.a
138
 
139
# The symbol below provides support for dynamic loading and shared
140
# libraries.  See configure.in for a description of what it means.
141
# The values of the symbolis normally set by the configure script.
142
 
143
SHLIB_LD = @SHLIB_LD@
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
AC_FLAGS =              @TCL_DEFS@
152
RANLIB =                @RANLIB@
153
TOP_DIR =               @ITCL_SRC_DIR@
154
GENERIC_DIR =           $(TOP_DIR)/generic
155
UNIX_DIR =              $(TOP_DIR)/unix
156
VPATH =                 @srcdir@
157
 
158
#----------------------------------------------------------------
159
# The information below should be usable as is.  The configure
160
# script won't modify it and you shouldn't need to modify it
161
# either.
162
#----------------------------------------------------------------
163
 
164
CC = @CC@
165
CC_SWITCHES = $(CFLAGS) $(TCL_CFLAGS) $(SHLIB_CFLAGS) \
166
-I$(UNIX_DIR) -I$(GENERIC_DIR) \
167
-I$(TCL_SRC_DIR)/generic $(AC_FLAGS) $(PROTO_FLAGS) $(MEM_DEBUG_FLAGS) \
168
-DITCL_LIBRARY=\"$(ITCL_LIBRARY)\"
169
 
170
SRCS =  $(GENERIC_DIR)/itcl_bicmds.c \
171
        $(GENERIC_DIR)/itcl_class.c \
172
        $(GENERIC_DIR)/itcl_cmds.c \
173
        $(GENERIC_DIR)/itcl_ensemble.c \
174
        $(GENERIC_DIR)/itcl_linkage.c \
175
        $(GENERIC_DIR)/itcl_methods.c \
176
        $(GENERIC_DIR)/itcl_migrate.c \
177
        $(GENERIC_DIR)/itcl_objects.c \
178
        $(GENERIC_DIR)/itcl_obsolete.c \
179
        $(GENERIC_DIR)/itcl_parse.c \
180
        $(GENERIC_DIR)/itcl_util.c \
181
        $(GENERIC_DIR)/tclAppInit.c
182
 
183
OBJS = itcl_bicmds.o itcl_class.o itcl_cmds.o itcl_ensemble.o \
184
        itcl_linkage.o itcl_methods.o itcl_migrate.o itcl_objects.o \
185
        itcl_obsolete.o itcl_parse.o itcl_util.o
186
 
187
SOBJS = itcl_bicmds.so itcl_class.so itcl_cmds.so itcl_ensemble.so \
188
        itcl_linkage.so itcl_methods.so itcl_migrate.so itcl_objects.so \
189
        itcl_obsolete.so itcl_parse.so itcl_util.so
190
 
191
all: $(ITCL_LIB_FILE) itclsh
192
 
193
@ITCL_LIB_FILE@:  $(OBJS)
194
        rm -f $(ITCL_LIB_FILE)
195
        @MAKE_LIB@
196
        $(RANLIB) $(ITCL_LIB_FILE)
197
 
198
itclsh: tclAppInit.o $(ITCL_LIB_FILE) @TCL_LIB_FULL_PATH@
199
        $(CC) @LD_FLAGS@ tclAppInit.o @ITCL_BUILD_LIB_SPEC@ \
200
                $(LIBS) $(LD_SEARCH_FLAGS) -o itclsh
201
 
202
test: itclsh
203
        LD_LIBRARY_PATH="$(TCL_LIB_DIR):`pwd`:$(LD_LIBRARY_PATH)"; \
204
        export LD_LIBRARY_PATH; \
205
        TCL_LIBRARY="$(TCL_SRC_DIR)/library"; export TCL_LIBRARY; \
206
        ITCL_LIBRARY=$(TOP_DIR)/library; export ITCL_LIBRARY; \
207
        TCLLIBPATH=$(TOP_DIR)/unix; export TCLLIBPATH; \
208
        ( echo cd $(TOP_DIR)/tests\; source all ) | ./itclsh
209
 
210
install: install-binaries install-libraries install-man
211
 
212
install-binaries: $(ITCL_LIB_FILE) itclsh
213
        @$(MKINSTALLDIRS) $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR)
214
        @echo "Installing $(ITCL_LIB_FILE)"
215
        @$(INSTALL_DATA) $(ITCL_LIB_FILE) $(LIB_INSTALL_DIR)/$(ITCL_LIB_FILE)
216
        @(cd $(LIB_INSTALL_DIR); $(RANLIB) $(ITCL_LIB_FILE))
217
        chmod 555 $(LIB_INSTALL_DIR)/$(ITCL_LIB_FILE)
218
        @echo "Installing itclsh"
219
        $(INSTALL_PROGRAM) itclsh $(BIN_INSTALL_DIR)/itclsh$(VERSION)
220
        @echo "Installing itclConfig.sh"
221
        @$(INSTALL_DATA) ../itclConfig.sh $(LIB_INSTALL_DIR)/itclConfig.sh
222
 
223
install-libraries:
224
        @$(MKINSTALLDIRS) $(INCLUDE_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)
225
        @echo "Installing itcl.h"
226
        @$(INSTALL_DATA) $(GENERIC_DIR)/itcl.h $(INCLUDE_INSTALL_DIR)
227
        @for i in $(TOP_DIR)/library/*.* $(UNIX_DIR)/tclAppInit.c; \
228
            do \
229
            echo "Installing $$i"; \
230
            $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
231
            done;
232
        @echo "Installing pkgIndex.tcl"
233
        @$(INSTALL_DATA) pkgIndex.tcl $(SCRIPT_INSTALL_DIR)
234
 
235
install-man:
236
        @$(MKINSTALLDIRS) $(MAN1_INSTALL_DIR) $(MANN_INSTALL_DIR)
237
        @cd $(TOP_DIR)/doc; for i in *.1; \
238
            do \
239
            echo "Installing doc/$$i"; \
240
            rm -f $(MAN1_INSTALL_DIR)/$$i; \
241
            sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
242
                    $$i > $(MAN1_INSTALL_DIR)/$$i; \
243
            chmod 444 $(MAN1_INSTALL_DIR)/$$i; \
244
            done;
245
        @cd $(TOP_DIR)/doc; for i in *.n; \
246
            do \
247
            echo "Installing doc/$$i"; \
248
            rm -f $(MANN_INSTALL_DIR)/$$i; \
249
            sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
250
                    $$i > $(MANN_INSTALL_DIR)/$$i; \
251
            chmod 444 $(MANN_INSTALL_DIR)/$$i; \
252
            done;
253
 
254
# CYGNUS LOCAL: install-minimal target.
255
install-minimal:
256
 
257
Makefile: $(UNIX_DIR)/Makefile.in
258
        $(SHELL) config.status
259
 
260
clean:
261
        rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors \
262
        rm -f itclsh* libitcl* *pure* *% ../tests/core
263
 
264
distclean: clean
265
        rm -f Makefile config.status config.cache config.log
266
        rm -f ../itclConfig.sh pkgIndex.tcl
267
 
268
pure: tclAppInit.o $(ITCL_LIB_FILE) @TCL_LIB_FULL_PATH@
269
        purify $(CC) @LD_FLAGS@ tclAppInit.o @ITCL_BUILD_LIB_SPEC@ \
270
                $(LIBS) $(LD_SEARCH_FLAGS) -o itclsh.pure
271
 
272
profile: tclAppInit.o $(ITCL_LIB_FILE) @TCL_LIB_FULL_PATH@
273
        quantify $(CC) @LD_FLAGS@ tclAppInit.o @ITCL_BUILD_LIB_SPEC@ \
274
                $(LIBS) $(LD_SEARCH_FLAGS) -o itclsh.pure
275
 
276
depend:
277
        makedepend -- $(CC_SWITCHES) -- $(SRCS)
278
 
279
configure: configure.in
280
        autoconf
281
 
282
.c.o:
283
        $(CC) -c $(CC_SWITCHES) $<
284
 
285
tclAppInit.o: $(UNIX_DIR)/tclAppInit.c
286
        $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tclAppInit.c
287
 
288
itcl_bicmds.o: $(GENERIC_DIR)/itcl_bicmds.c
289
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_bicmds.c
290
 
291
itcl_class.o: $(GENERIC_DIR)/itcl_class.c
292
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_class.c
293
 
294
itcl_cmds.o: $(GENERIC_DIR)/itcl_cmds.c Makefile
295
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_cmds.c
296
 
297
itcl_ensemble.o: $(GENERIC_DIR)/itcl_ensemble.c Makefile
298
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_ensemble.c
299
 
300
itcl_linkage.o: $(GENERIC_DIR)/itcl_linkage.c
301
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_linkage.c
302
 
303
itcl_methods.o: $(GENERIC_DIR)/itcl_methods.c
304
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_methods.c
305
 
306
itcl_migrate.o: $(GENERIC_DIR)/itcl_migrate.c
307
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_migrate.c
308
 
309
itcl_objects.o: $(GENERIC_DIR)/itcl_objects.c
310
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_objects.c
311
 
312
itcl_obsolete.o: $(GENERIC_DIR)/itcl_obsolete.c
313
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_obsolete.c
314
 
315
itcl_parse.o: $(GENERIC_DIR)/itcl_parse.c
316
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_parse.c
317
 
318
itcl_util.o: $(GENERIC_DIR)/itcl_util.c
319
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itcl_util.c
320
 
321
# DO NOT DELETE THIS LINE -- make depend depends on it.

powered by: WebSVN 2.1.0

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