1# Makefile.in -- 2# 3# This file is a Makefile for Sample TEA Extension. If it has the name 4# "Makefile.in" then it is a template for a Makefile; to generate the 5# actual Makefile, run "./configure", which is a configuration script 6# generated by the "autoconf" program (constructs like "@foo@" will get 7# replaced in the actual Makefile. 8# 9# Copyright (c) 1999 Scriptics Corporation. 10# 11# See the file "license.terms" for information on usage and redistribution 12# of this file, and for a DISCLAIMER OF ALL WARRANTIES. 13# 14# RCS: @(#) $Id: Makefile.in,v 1.16 2006/12/21 17:26:53 tkgeomap Exp $ 15 16#======================================================================== 17# Edit the following few lines when writing a new extension 18#======================================================================== 19 20#======================================================================== 21# Change the name of the variable "exampleA_LIB_FILE" to match the one 22# used in the configure script. This is the parameterized name of the 23# library that we are building. 24#======================================================================== 25 26lib_BINARIES=$(tkgeomap_LIB_FILE) 27BINARIES=$(lib_BINARIES) 28 29#======================================================================== 30# Enumerate the names of the source files included in this package. 31# This will be used when a dist target is added to the Makefile. 32#======================================================================== 33 34TOP_DIR = $(srcdir)/.. 35TK_DIR = $(TOP_DIR)/tk 36tkgeomap_SOURCES = $(TK_DIR)/tkgeomap.c $(TK_DIR)/tkgeomapPlace.c \ 37 $(TK_DIR)/tkgeomapLnArr.c $(TK_DIR)/tkTrig.c 38SOURCES = $(tkgeomap_SOURCES) 39 40#======================================================================== 41# Enumerate the names of the object files included in this package. 42# These objects are created and linked into the final library. In 43# most cases these object files will correspond to the source files 44# above. 45# 46#======================================================================== 47 48tkgeomap_OBJECTS = tkgeomap.o tkgeomapPlace.o tkgeomapLnArr.o tkTrig.o 49PKG_OBJECTS = $(tkgeomap_OBJECTS) 50 51#======================================================================== 52# The substitution of "exampleA_LIB_FILE" into the variable name below 53# let's us refer to the objects for the library without knowing the name 54# of the library in advance. It also lets us use the "$@" variable in 55# the rule for building the library, so we can refer to both the list of 56# objects and the library itself in a platform-independent manner. 57#======================================================================== 58 59tkgeomap_LIB_FILE = @tkgeomap_LIB_FILE@ 60$(tkgeomap_LIB_FILE)_OBJECTS = $(tkgeomap_OBJECTS) 61 62#======================================================================== 63# This is a list of header files to be installed 64#======================================================================== 65 66GENERIC_HDRS= $(TK_DIR)/tkgeomap.h $(TK_DIR)/tkgeomapInt.h 67 68#======================================================================== 69# Add additional lines to handle any additional AC_SUBST cases that 70# have been added to the configure script. 71#======================================================================== 72 73SAMPLE_NEW_VAR=@SAMPLE_NEW_VAR@ 74 75#======================================================================== 76# Nothing of the variables below this line need to be changed. Please 77# check the TARGETS section below to make sure the make targets are 78# correct. 79#======================================================================== 80 81SHELL = @SHELL@ 82 83srcdir = @srcdir@ 84top_srcdir = @top_srcdir@ 85prefix = @prefix@ 86exec_prefix = @exec_prefix@ 87 88bindir = @bindir@ 89sbindir = @sbindir@ 90libexecdir = @libexecdir@ 91datadir = @datadir@ 92sysconfdir = @sysconfdir@ 93sharedstatedir = @sharedstatedir@ 94localstatedir = @localstatedir@ 95libdir = @libdir@ 96infodir = @infodir@ 97mandir = @mandir@ 98includedir = @includedir@ 99oldincludedir = /usr/include 100 101# Directory in which to install manual entries for the built-in 102# Tcl commands: 103MANN_INSTALL_DIR = $(mandir)/mann 104 105# Path to use at runtime to refer to LIB_INSTALL_DIR: 106LIB_RUNTIME_DIR = $(libdir) 107 108# support for embedded libraries on Darwin / Mac OS X 109DYLIB_INSTALL_DIR = ${LIB_RUNTIME_DIR} 110 111pkgdatadir = $(datadir)/@PACKAGE_NAME@ 112pkglibdir = $(libdir)/@PACKAGE_NAME@ 113pkgincludedir = $(includedir)/@PACKAGE_NAME@ 114 115top_builddir = . 116 117INSTALL = @INSTALL@ 118INSTALL_PROGRAM = @INSTALL_PROGRAM@ 119INSTALL_DATA = @INSTALL_DATA@ 120INSTALL_SCRIPT = @INSTALL_SCRIPT@ 121INSTALL_STRIP_FLAG = 122transform = @program_transform_name@ 123 124NORMAL_INSTALL = : 125PRE_INSTALL = : 126POST_INSTALL = : 127NORMAL_UNINSTALL = : 128PRE_UNINSTALL = : 129POST_UNINSTALL = : 130 131PACKAGE_NAME = @PACKAGE_NAME@ 132PACKAGE_VERSION = 133CC = @CC@ 134CFLAGS_DEBUG = @CFLAGS_DEBUG@ 135CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 136CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ 137CLEANFILES = @CLEANFILES@ 138EXEEXT = @EXEEXT@ 139LDFLAGS_DEBUG = @LDFLAGS_DEBUG@ 140LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@ 141LDFLAGS_OPTIMIZE = @LDFLAGS_OPTIMIZE@ 142MAKE_LIB = @MAKE_LIB@ 143MAKE_SHARED_LIB = @MAKE_SHARED_LIB@ 144MAKE_STATIC_LIB = @MAKE_STATIC_LIB@ 145OBJEXT = @OBJEXT@ 146RANLIB = @RANLIB@ 147SHLIB_CFLAGS = @SHLIB_CFLAGS@ 148SHLIB_LD = @SHLIB_LD@ 149SHLIB_LDFLAGS = @SHLIB_LDFLAGS@ 150SHLIB_LD_LIBS = @TCLGEOMAP_LIB_SPEC@ @SHLIB_LD_LIBS@ 151TK_SHLIB_LD_EXTRAS = @TK_SHLIB_LD_EXTRAS@ 152STLIB_LD = @STLIB_LD@ 153TCL_BIN_DIR = @TCL_BIN_DIR@ 154TCL_DEFS = @TCL_DEFS@ 155TCL_EXTRA_CFLAGS = @TCL_EXTRA_CFLAGS@ 156TCL_LD_FLAGS = @TCL_LD_FLAGS@ 157TCL_LIBS = @TCL_LIBS@ 158TCL_SHLIB_LD_LIBS = @TCL_SHLIB_LD_LIBS@ 159TCL_SRC_DIR = @TCL_SRC_DIR@ 160TCL_DBGX = @TCL_DBGX@ 161TCL_STUB_LIB_FILE = @TCL_STUB_LIB_FILE@ 162TCL_STUB_LIB_SPEC = @TCL_STUB_LIB_SPEC@ 163TCL_TOOL_DIR_NATIVE = @TCL_TOOL_DIR_NATIVE@ 164TCL_TOP_DIR_NATIVE = @TCL_TOP_DIR_NATIVE@ 165TCL_UNIX_DIR_NATIVE = @TCL_UNIX_DIR_NATIVE@ 166TCL_WIN_DIR_NATIVE = @TCL_WIN_DIR_NATIVE@ 167INCLUDE_DIR_NATIVE = @INCLUDE_DIR_NATIVE@ 168TCL_BMAP_DIR_NATIVE = @TCL_BMAP_DIR_NATIVE@ 169TCL_PLATFORM_DIR_NATIVE = @TCL_PLATFORM_DIR_NATIVE@ 170TCL_GENERIC_DIR_NATIVE = @TCL_GENERIC_DIR_NATIVE@ 171WISH_PROG = @WISH_PROG@ 172 173AUTOCONF = autoconf 174 175LDFLAGS = $(LDFLAGS_DEFAULT) 176 177INCLUDES = @TK_INCLUDES@ @TK_XINCLUDES@ @TCL_INCLUDES@ @TCLGEOMAP_INCLUDES@ -I$(TK_DIR) 178 179EXTRA_CFLAGS = $(TCL_DEFS) $(PROTO_FLAGS) $(SECURITY_FLAGS) $(MEM_DEBUG_FLAGS) $(KEYSYM_FLAGS) $(NO_DEPRECATED_FLAGS) @PACKAGE_CFLAGS@ 180 181DEFS = @DEFS@ $(EXTRA_CFLAGS) 182 183ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 184mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 185CONFIG_CLEAN_FILES = pkgIndex.tcl 186 187CPPFLAGS = @CPPFLAGS@ 188LIBS = @PKG_LIBS@ @LIBS@ 189AR = ar 190CFLAGS = @CFLAGS@ 191COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -DUSE_COMPAT_CONST 192CCLD = $(CC) 193LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ 194 195#======================================================================== 196# Start of user-definable TARGETS section 197#======================================================================== 198 199#======================================================================== 200# TEA TARGETS. Please note that the "libraries:" target refers to platform 201# independent files, and the "binaries:" target inclues executable programs and 202# platform-dependent libraries. Modify these targets so that they install 203# the various pieces of your package. The make and install rules 204# for the BINARIES that you specified above have already been done. 205#======================================================================== 206 207all: libraries binaries doc 208 209#======================================================================== 210# The binaries target builds executable programs, Windows .dll's, unix 211# shared/static libraries, and any other platform-dependent files. 212# The list of targets to build for "binaries:" is specified at the top 213# of the Makefile, in the "BINARIES" variable. 214#======================================================================== 215 216binaries: $(BINARIES) 217 218libraries: 219 220doc: 221 222install: all install-libraries install-binaries install-doc 223 224install-binaries: binaries install-lib-binaries install-bin-binaries 225 226#======================================================================== 227# This rule installs platform-independent files, such as header files. 228#======================================================================== 229 230install-libraries: libraries 231 $(mkinstalldirs) $(includedir) 232 $(mkinstalldirs) $(pkgincludedir) 233 echo "Installing header files in $(pkgincludedir)" 234 @for i in $(GENERIC_HDRS) ; do \ 235 echo "Installing $$i" ; \ 236 $(INSTALL_DATA) $$i $(pkgincludedir) ; \ 237 done; 238 @for i in `ls $(pkgincludedir)` ; do \ 239 rm -f $(includedir)/$$i ; \ 240 done; 241 $(mkinstalldirs) $(pkglibdir) 242 echo "Installing library script files in $(pkglibdir)" 243 $(INSTALL_DATA) $(TOP_DIR)/library/tkgeomap_procs.tcl $(pkglibdir) 244 $(INSTALL_DATA) $(TOP_DIR)/library/wdgeomap.tcl $(pkglibdir) 245 246#======================================================================== 247# Install documentation. Unix manpages should go in the $(mandir) 248# directory. 249#======================================================================== 250 251install-doc: doc 252 @if test ! -x $(srcdir)/mkLinks; then \ 253 chmod +x $(srcdir)/mkLinks; \ 254 fi 255 @for i in $(mandir) $(MANN_INSTALL_DIR) ; \ 256 do \ 257 if [ ! -d $$i ] ; then \ 258 echo "Making directory $$i"; \ 259 mkdir -p $$i; \ 260 chmod 755 $$i; \ 261 else true; \ 262 fi; \ 263 done; 264 @echo "Installing command (.n) docs"; 265 @cd $(TOP_DIR)/doc; for i in *.n; \ 266 do \ 267 rm -f $(MANN_INSTALL_DIR)/$$i; \ 268 sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ 269 $$i > $(MANN_INSTALL_DIR)/$$i; \ 270 chmod 444 $(MANN_INSTALL_DIR)/$$i; \ 271 done; 272 @echo "Cross-linking command (.n) docs"; 273 @$(srcdir)/mkLinks $(MKLINKS_FLAGS) $(MANN_INSTALL_DIR) 274 275test: 276 277depend: 278 279#======================================================================== 280# Enumerate the names of the object files included in this package. 281# These objects are created and linked into the final library. In 282# most cases these object files will correspond to the source files 283# above. 284# 285# $(exampleA_LIB_FILE) should be listed as part of the BINARIES variable 286# at the top of the Makefile. That will ensure that this target is built 287# when you run "make binaries". 288# 289# You shouldn't need to modify this target, except to change the package 290# name from "exampleA" to your package's name. 291#======================================================================== 292 293$(tkgeomap_LIB_FILE): $(tkgeomap_OBJECTS) 294 -rm -f $(tkgeomap_LIB_FILE) 295 @MAKE_LIB@ 296 $(RANLIB) $(tkgeomap_LIB_FILE) 297 298#======================================================================== 299# We need to enumerate the list of .c to .o lines here. 300# Unfortunately, there does not seem to be any other way to do this 301# in a Makefile-independent way. We can't use VPATH because it picks up 302# object files that may be located in the source directory. 303# 304# In the following lines, $(srcdir) refers to the toplevel directory 305# containing your extension. If your sources are in a subdirectory, 306# you will have to modify the paths to reflect this: 307# 308# exampleA.$(OBJEXT): $(srcdir)/src/win/exampleA.c 309# $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/win/exampleA.c` -o $@ 310#======================================================================== 311 312tkgeomap.o : $(TK_DIR)/tkgeomap.c $(TK_DIR)/tkgeomap.h \ 313 $(TK_DIR)/tkgeomapInt.h 314 $(COMPILE) -c `@CYGPATH@ $(TK_DIR)/tkgeomap.c` -o $@ 315 316tkgeomapPlace.o : $(TK_DIR)/tkgeomapPlace.c $(TK_DIR)/tkgeomap.h \ 317 $(TK_DIR)/tkgeomapInt.h 318 $(COMPILE) -c `@CYGPATH@ $(TK_DIR)/tkgeomapPlace.c` -o $@ 319 320tkgeomapLnArr.o : $(TK_DIR)/tkgeomapLnArr.c $(TK_DIR)/tkgeomap.h \ 321 $(TK_DIR)/tkgeomapInt.h 322 $(COMPILE) -c `@CYGPATH@ $(TK_DIR)/tkgeomapLnArr.c` -o $@ 323 324tkTrig.o : $(TK_DIR)/tkTrig.c $(TK_DIR)/tkgeomap.h \ 325 $(TK_DIR)/tkgeomapInt.h 326 $(COMPILE) -c `@CYGPATH@ $(TK_DIR)/tkTrig.c` -o $@ 327 328#======================================================================== 329# End of user-definable section 330#======================================================================== 331 332#======================================================================== 333# Don't modify the file to clean here. Instead, set the "CLEANFILES" 334# variable in configure.in 335#======================================================================== 336 337clean: 338 -test -z "$(BINARIES)" || rm -f $(BINARIES) 339 -rm -f *.o core *.core 340 -rm -f *.$(OBJEXT) 341 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 342 343distclean: clean 344 -rm -f *.tab.c 345 -rm -f Makefile $(CONFIG_CLEAN_FILES) 346 -rm -f config.cache config.log stamp-h stamp-h[0-9]* 347 -rm -f config.status 348 349#======================================================================== 350# Install binary object libraries. On Windows this includes both .dll and 351# .lib files. Because the .lib files are not explicitly listed anywhere, 352# we need to deduce their existence from the .dll file of the same name. 353# Additionally, the .dll files go into the bin directory, but the .lib 354# files go into the lib directory. On Unix platforms, all library files 355# go into the lib directory. In addition, this will generate the pkgIndex.tcl 356# file in the install location (assuming it can find a usable wish shell) 357# 358# You should not have to modify this target. 359#======================================================================== 360 361install-lib-binaries: installdirs 362 @list='$(lib_BINARIES)'; for p in $$list; do \ 363 if test -f $$p; then \ 364 ext=`echo $$p|sed -e "s/.*\.//"`; \ 365 if test "x$$ext" = "xdll"; then \ 366 echo " $(INSTALL_DATA) $$p $(bindir)/$$p"; \ 367 $(INSTALL_DATA) $$p $(bindir)/$$p; \ 368 lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \ 369 if test -f $$lib; then \ 370 echo " $(INSTALL_DATA) $$lib $(libdir)/$$lib"; \ 371 $(INSTALL_DATA) $$lib $(libdir)/$$lib; \ 372 fi; \ 373 else \ 374 echo " $(INSTALL_DATA) $$p $(libdir)/$$p"; \ 375 $(INSTALL_DATA) $$p $(libdir)/$$p; \ 376 fi; \ 377 else :; fi; \ 378 done 379 @list='$(lib_BINARIES)'; for p in $$list; do \ 380 if test -f $$p; then \ 381 echo " $(RANLIB) $(libdir)/$$p"; \ 382 $(RANLIB) $(libdir)/$$p; \ 383 else :; fi; \ 384 done 385 $(INSTALL_DATA) pkgIndex.tcl $(pkglibdir) 386 387#======================================================================== 388# Install binary executables (e.g. .exe files) 389# 390# You should not have to modify this target. 391#======================================================================== 392 393install-bin-binaries: installdirs 394 @list='$(bin_BINARIES)'; for p in $$list; do \ 395 if test -f $$p; then \ 396 echo " $(INSTALL_DATA) $$p $(bindir)/$$p"; \ 397 $(INSTALL_DATA) $$p $(bindir)/$$p; \ 398 else :; fi; \ 399 done 400 401.SUFFIXES: .c .o .obj 402 403Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 404 cd $(top_builddir) \ 405 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 406 407config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 408 $(SHELL) ./config.status --recheck 409$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) 410 cd $(srcdir) && $(AUTOCONF) 411 412 413uninstall-binaries: 414 @$(NORMAL_UNINSTALL) 415 list='$(BINARIES)'; for p in $$list; do \ 416 rm -f $(libdir)/$$p; \ 417 done 418 419installdirs: 420 $(mkinstalldirs) $(libdir) 421 $(mkinstalldirs) $(bindir) 422 $(mkinstalldirs) $(pkglibdir) 423 424.PHONY: all binaries clean depend distclean doc install installdirs \ 425libraries test 426 427# Tell versions [3.59,3.63) of GNU make to not export all variables. 428# Otherwise a system limit (for SysV at least) may be exceeded. 429.NOEXPORT: 430