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

Subversion Repositories or1k

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

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 Tk].  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:48 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 Tcl
41
# scripts (note: you can set the ITK_LIBRARY environment variable at
42
# run-time to override the compiled-in location):
43
# CYGNUS LOCAL: we use "share" rather than "lib" as the prefix for our
44
# Tcl files
45
ITK_LIBRARY = $(prefix)/share/itk$(VERSION)
46
# END CYGNUS LOCAL
47
 
48
# Path name to use when installing library scripts:
49
SCRIPT_INSTALL_DIR =    $(INSTALL_ROOT)$(ITK_LIBRARY)
50
 
51
# Directory in which to install the archive libitk.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 wish:
58
BIN_INSTALL_DIR =       $(INSTALL_ROOT)$(exec_prefix)/bin
59
 
60
# Directory in which to install the include file itk.h:
61
INCLUDE_INSTALL_DIR =   $(INSTALL_ROOT)$(prefix)/include
62
 
63
# Top-level directory for manual entries:
64
MAN_INSTALL_DIR =       $(INSTALL_ROOT)$(prefix)/man
65
 
66
# Directory in which to install manual entry for wish:
67
MAN1_INSTALL_DIR =      $(MAN_INSTALL_DIR)/man1
68
 
69
# Directory in which to install manual entries for Tk's C library
70
# procedures:
71
MAN3_INSTALL_DIR =      $(MAN_INSTALL_DIR)/man3
72
 
73
# Directory in which to install manual entries for the built-in
74
# Tcl commands implemented by Tk:
75
MANN_INSTALL_DIR =      $(MAN_INSTALL_DIR)/mann
76
 
77
# The directory containing the Tcl sources and headers appropriate
78
# for this version of [incr Tk]:
79
TCL_SRC_DIR =           @TCL_SRC_DIR@
80
 
81
# The directory containing the Tcl library archive file appropriate
82
# for this version of [incr 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
# The directory containing the Tk sources and headers appropriate
92
# for this version of [incr Tk]:
93
TK_SRC_DIR =            @TK_SRC_DIR@
94
 
95
# The directory containing the Tk library archive file appropriate
96
# for this version of [incr Tk]:
97
TK_LIB_DIR =            @TK_LIB_DIR@
98
 
99
# Library flags for Tk library
100
TK_LIB_FLAG =           @TK_LIB_FLAG@
101
 
102
# The directory containing the [incr Tcl] sources and headers appropriate
103
# for this version of [incr Tk]:
104
ITCL_SRC_DIR =          @ITCL_SRC_DIR@
105
 
106
# The directory containing the [incr Tcl] library archive file appropriate
107
# for this version of [incr Tk]:
108
ITCL_LIB_DIR =          @ITCL_LIB_DIR@
109
 
110
# A "-I" switch that can be used when compiling to make all of the
111
# X11 include files accessible (the configure script will try to
112
# set this value, and will cause it to be an empty string if the
113
# include files are accessible via /usr/include).
114
X11_INCLUDES =          @TK_XINCLUDES@
115
 
116
# Linker switch(es) to use to link with the X11 library archive (the
117
# configure script will try to set this value automatically, but you
118
# can override it).
119
X11_LIB_SWITCHES =      @TK_XLIBSW@
120
 
121
# Libraries to use when linking:  must include at least Tk, Tcl, Xlib,
122
# and the math library (in that order).  The "LIBS" part will be
123
# replaced (or has already been replaced) with relevant libraries as
124
# determined by the configure script.
125
# CYGNUS LOCAL: Replace TCL_LIB_SPEC with TCL_BUILD_LIB_SPEC since we
126
# seldom build from an installed tree.
127
 
128
LIBS = @TK_BUILD_LIB_SPEC@ $(X11_LIB_SWITCHES) \
129
        @ITCL_BUILD_LIB_SPEC@ @TCL_BUILD_LIB_SPEC@ \
130
        @TCL_LIBS@ @DL_LIBS@ -lc
131
# END CYGNUS LOCAL
132
 
133
# To change the compiler switches, for example to change from -O
134
# to -g, change the following line:
135
CFLAGS = @CFLAGS@
136
 
137
# To disable ANSI-C procedure prototypes reverse the comment characters
138
# on the following lines:
139
PROTO_FLAGS =
140
#PROTO_FLAGS = -DNO_PROTOTYPE
141
 
142
# To enable memory debugging reverse the comment characters on the following
143
# lines.  Warning:  if you enable memory debugging, you must do it
144
# *everywhere*, including all the code that calls Tcl, and you must use
145
# ckalloc and ckfree everywhere instead of malloc and free.
146
MEM_DEBUG_FLAGS =
147
#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
148
 
149
# If your X server is X11R4 or earlier, then you may wish to reverse
150
# the comment characters on the following two lines.  This will enable
151
# extra code to speed up XStringToKeysym.  In X11R5 and later releases
152
# XStringToKeysym is plenty fast, so you needn't define REDO_KEYSYM_LOOKUP.
153
KEYSYM_FLAGS =
154
#KEYSYM_FLAGS = -DREDO_KEYSYM_LOOKUP
155
 
156
# Some versions of make, like SGI's, use the following variable to
157
# determine which shell to use for executing commands:
158
SHELL =         /bin/sh
159
 
160
# Tk used to let the configure script choose which program to use
161
# for installing, but there are just too many different versions of
162
# "install" around;  better to use the install-sh script that comes
163
# with the distribution, which is slower but guaranteed to work.
164
 
165
INSTALL = $(TOP_DIR)/../config/install-sh -c
166
INSTALL_PROGRAM =       ${INSTALL}
167
INSTALL_DATA =          ${INSTALL} -m 644
168
MKINSTALLDIRS =         $(TOP_DIR)/../config/mkinstalldirs
169
 
170
# The symbols below provide support for dynamic loading and shared
171
# libraries.  The values of the symbols are normally set by the
172
# configure script.  You shouldn't normally need to modify any of
173
# these definitions by hand.
174
 
175
SHLIB_CFLAGS = @SHLIB_CFLAGS@
176
TCL_CFLAGS = @TCL_CFLAGS@
177
 
178
LD_SEARCH_FLAGS = @LD_SEARCH_FLAGS@
179
 
180
ITK_LIB_FILE = @ITK_LIB_FILE@
181
#ITK_LIB_FILE = libitk.a
182
 
183
# The symbol below provides support for dynamic loading and shared
184
# libraries.  See configure.in for a description of what it means.
185
# The values of the symbolis normally set by the configure script.
186
 
187
SHLIB_LD = @SHLIB_LD@
188
 
189
#----------------------------------------------------------------
190
# The information below is modified by the configure script when
191
# Makefile is generated from Makefile.in.  You shouldn't normally
192
# modify any of this stuff by hand.
193
#----------------------------------------------------------------
194
 
195
AC_FLAGS =              @TCL_DEFS@
196
RANLIB =                @RANLIB@
197
TOP_DIR =               @ITK_SRC_DIR@
198
GENERIC_DIR =           $(TOP_DIR)/generic
199
UNIX_DIR =              $(TOP_DIR)/unix
200
 
201
#----------------------------------------------------------------
202
# The information below should be usable as is.  The configure
203
# script won't modify it and you shouldn't need to modify it
204
# either.
205
#----------------------------------------------------------------
206
 
207
 
208
CC = @CC@
209
CC_SWITCHES = $(CFLAGS) $(TCL_CFLAGS) $(SHLIB_CFLAGS) \
210
-I$(UNIX_DIR) -I$(GENERIC_DIR) \
211
-I$(TCL_SRC_DIR)/generic -I$(ITCL_SRC_DIR)/generic \
212
-I$(TK_SRC_DIR)/generic $(X11_INCLUDES) \
213
$(AC_FLAGS) $(PROTO_FLAGS) $(MEM_DEBUG_FLAGS) $(KEYSYM_FLAGS) \
214
-DITK_LIBRARY=\"$(ITK_LIBRARY)\"
215
 
216
OBJS = itk_cmds.o itk_option.o itk_archetype.o itk_util.o
217
 
218
SRCS = $(GENERIC_DIR)/itk_cmds.c $(GENERIC_DIR)/itk_option.c \
219
        $(GENERIC_DIR)/itk_archetype.c $(GENERIC_DIR)/itk_util.c
220
 
221
all: itkwish
222
 
223
# The following target is configured by autoconf to generate either
224
# a shared library or non-shared library for [incr Tk].
225
 
226
@ITK_LIB_FILE@: ${OBJS}
227
        rm -f $(ITK_LIB_FILE)
228
        @MAKE_LIB@
229
        $(RANLIB) $(ITK_LIB_FILE)
230
 
231
itkwish: tkAppInit.o $(ITK_LIB_FILE) @TCL_LIB_FULL_PATH@ @TK_LIB_FULL_PATH@ \
232
                @ITCL_LIB_FULL_PATH@
233
        $(CC) @LD_FLAGS@ tkAppInit.o @ITK_BUILD_LIB_SPEC@ \
234
                $(LIBS) $(LD_SEARCH_FLAGS) -o itkwish
235
 
236
# Note, in the target below TCL_LIBRARY needs to be set or else
237
# "make test" won't work in the case where the compilation directory
238
# isn't the same as the source directory.
239
 
240
test: itkwish
241
        TCLLIBPATH="`pwd` $(TK_LIB_DIR) $(ITCL_LIB_DIR) $(TCL_LIB_DIR)"; export TCLLIBPATH; \
242
        LD_LIBRARY_PATH=`pwd`:$(ITCL_LIB_DIR):$(TK_LIB_DIR):$(TCL_LIB_DIR):$(LD_LIBRARY_PATH); export LD_LIBRARY_PATH; \
243
        TCL_LIBRARY=$(TCL_SRC_DIR)/library; export TCL_LIBRARY; \
244
        TK_LIBRARY=$(TK_SRC_DIR)/library; export TK_LIBRARY; \
245
        ITCL_LIBRARY=$(ITCL_SRC_DIR)/library; export ITCL_LIBRARY; \
246
        ITK_LIBRARY=$(TOP_DIR)/library; export ITK_LIBRARY; \
247
        ( echo cd $(TOP_DIR)/tests\; source all\; exit ) \
248
        | ./itkwish -geometry +0+0
249
 
250
install: install-binaries install-libraries install-man
251
 
252
install-binaries: $(ITK_LIB_FILE) itkwish
253
        @$(MKINSTALLDIRS) $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR)
254
        @echo "Installing $(ITK_LIB_FILE)"
255
        @$(INSTALL_DATA) $(ITK_LIB_FILE) $(LIB_INSTALL_DIR)
256
        @(cd $(LIB_INSTALL_DIR); $(RANLIB) $(ITK_LIB_FILE))
257
        @chmod 555 $(LIB_INSTALL_DIR)/$(ITK_LIB_FILE)
258
        @echo "Installing itkwish"
259
        $(INSTALL_PROGRAM) itkwish $(BIN_INSTALL_DIR)/itkwish$(VERSION)
260
        @echo "Installing itkConfig.sh"
261
        @$(INSTALL_DATA) ../itkConfig.sh $(LIB_INSTALL_DIR)/itkConfig.sh
262
 
263
install-libraries:
264
        @$(MKINSTALLDIRS) $(INCLUDE_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)
265
        @echo "Installing itk.h"
266
        @$(INSTALL_DATA) $(GENERIC_DIR)/itk.h $(INCLUDE_INSTALL_DIR)
267
        @for i in $(TOP_DIR)/library/*.* $(TOP_DIR)/library/tclIndex $(UNIX_DIR)/tkAppInit.c; \
268
            do \
269
            echo "Installing $$i"; \
270
            $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
271
            done;
272
        @echo "Installing pkgIndex.tcl"
273
        @$(INSTALL_DATA) pkgIndex.tcl $(SCRIPT_INSTALL_DIR)
274
 
275
install-man:
276
        @$(MKINSTALLDIRS) $(MAN1_INSTALL_DIR) $(MANN_INSTALL_DIR)
277
        @cd $(TOP_DIR)/doc; for i in *.1; \
278
            do \
279
            echo "Installing doc/$$i"; \
280
            rm -f $(MAN1_INSTALL_DIR)/$$i; \
281
            sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
282
                    $$i > $(MAN1_INSTALL_DIR)/$$i; \
283
            chmod 444 $(MAN1_INSTALL_DIR)/$$i; \
284
            done;
285
        @cd $(TOP_DIR)/doc; for i in *.n; \
286
            do \
287
            echo "Installing doc/$$i"; \
288
            rm -f $(MANN_INSTALL_DIR)/$$i; \
289
            sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
290
                    $$i > $(MANN_INSTALL_DIR)/$$i; \
291
            chmod 444 $(MANN_INSTALL_DIR)/$$i; \
292
            done;
293
 
294
Makefile: $(UNIX_DIR)/Makefile.in
295
        $(SHELL) config.status
296
 
297
clean:
298
        rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors \
299
        rm -f itkwish* libitk* *pure* *% ../tests/core
300
 
301
distclean: clean
302
        rm -f Makefile config.status config.log config.cache pkgIndex.tcl
303
 
304
pure: tkAppInit.o $(ITK_LIB_FILE) @TCL_LIB_FULL_PATH@ @TK_LIB_FULL_PATH@
305
        purify $(CC) @LD_FLAGS@ tkAppInit.o @ITK_BUILD_LIB_SPEC@ \
306
                $(LIBS) $(LD_SEARCH_FLAGS) -o itkwish.pure
307
 
308
profile: tkAppInit.o $(ITK_LIB_FILE) @TCL_LIB_FULL_PATH@ @TK_LIB_FULL_PATH@
309
        quantify $(CC) @LD_FLAGS@ tkAppInit.o @ITK_BUILD_LIB_SPEC@ \
310
                $(LIBS) $(LD_SEARCH_FLAGS) -o itkwish.pure
311
 
312
depend:
313
        makedepend -- $(CC_SWITCHES) -- $(SRCS)
314
 
315
configure: configure.in
316
        autoconf
317
 
318
.c.o:
319
        $(CC) -c $(CC_SWITCHES) $<
320
 
321
tkAppInit.o:    $(UNIX_DIR)/tkAppInit.c Makefile
322
        $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkAppInit.c
323
 
324
itk_cmds.o:     $(GENERIC_DIR)/itk_cmds.c Makefile
325
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itk_cmds.c
326
 
327
itk_option.o:   $(GENERIC_DIR)/itk_option.c
328
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itk_option.c
329
 
330
itk_archetype.o:        $(GENERIC_DIR)/itk_archetype.c
331
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itk_archetype.c
332
 
333
itk_util.o:     $(GENERIC_DIR)/itk_util.c
334
        $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/itk_util.c
335
 
336
# 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.