Posted to tcl by hypnotoad at Mon Sep 09 13:32:01 GMT 2019view raw

  1. #
  2. # This file is a Makefile for Tk. If it has the name "Makefile.in"
  3. # then it is a template for a Makefile; to generate the actual Makefile,
  4. # run "./configure", which is a configuration script generated by the
  5. # "autoconf" program (constructs like "@foo@" will get replaced in the
  6. # actual Makefile.
  7.  
  8. # Current Tk version; used in various names.
  9.  
  10. TCLVERSION = 8.6
  11. TCLPATCHL = .10
  12. VERSION = 8.6
  13. MAJOR_VERSION = 8
  14. MINOR_VERSION = 6
  15. PATCH_LEVEL = .9
  16. LOCALES = cs da de el en en_gb eo es fr hu it nl pl pt ru sv
  17.  
  18. #----------------------------------------------------------------
  19. # Things you can change to personalize the Makefile for your own
  20. # site (you can make these changes in either Makefile.in or
  21. # Makefile, but changes to Makefile will get lost if you re-run
  22. # the configuration script).
  23. #----------------------------------------------------------------
  24.  
  25. # Default top-level directories in which to install architecture-
  26. # specific files (exec_prefix) and machine-independent files such
  27. # as scripts (prefix). The values specified here may be overridden
  28. # at configure-time with the --exec-prefix and --prefix options
  29. # to the "configure" script. The *dir vars are standard configure
  30. # substitutions that are based off prefix and exec_prefix.
  31.  
  32. prefix = /tcl
  33. exec_prefix = /tcl
  34. bindir = ${exec_prefix}/bin
  35. libdir = /tcl/lib
  36. includedir = ${prefix}/include
  37. datarootdir = @datarootdir@
  38. runstatedir = @runstatedir@
  39. mandir = ${prefix}/man
  40.  
  41. # The following definition can be set to non-null for special systems
  42. # like AFS with replication. It allows the pathnames used for installation
  43. # to be different than those used for actually reference files at
  44. # run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
  45. # when installing files.
  46. INSTALL_ROOT = $(DESTDIR)
  47.  
  48. # Directory from which applications will reference the library of Tcl
  49. # scripts (note: you can set the TK_LIBRARY environment variable at
  50. # run-time to override the compiled-in location):
  51. TK_LIBRARY = $(prefix)/lib/tk$(VERSION)
  52.  
  53. # Path to use at runtime to refer to LIB_INSTALL_DIR:
  54. LIB_RUNTIME_DIR = $(libdir)
  55.  
  56. # Directory in which to install the program wish:
  57. BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
  58.  
  59. # Directory in which to install the .a or .so binary for the Tk library:
  60. LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
  61. DLL_INSTALL_DIR = $(LIB_INSTALL_DIR)
  62.  
  63. # Path name to use when installing library scripts.
  64. SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TK_LIBRARY)
  65.  
  66. # Directory in which to install the include file tk.h:
  67. INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
  68.  
  69. # Path to the private tk header dir:
  70. PRIVATE_INCLUDE_DIR = $(includedir)
  71.  
  72. # Directory in which to (optionally) install the private tk headers:
  73. PRIVATE_INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(PRIVATE_INCLUDE_DIR)
  74.  
  75. # Top-level directory in which to install manual entries:
  76. MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir)
  77.  
  78. # Directory in which to install manual entry for wish:
  79. MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1
  80.  
  81. # Directory in which to install manual entries for Tk's C library
  82. # procedures:
  83. MAN3_INSTALL_DIR = $(MAN_INSTALL_DIR)/man3
  84.  
  85. # Directory in which to install manual entries for the built-in
  86. # Tcl commands implemented by Tk:
  87. MANN_INSTALL_DIR = $(MAN_INSTALL_DIR)/mann
  88.  
  89. # Path to the html documentation dir:
  90. HTML_DIR = $(DISTDIR)/html
  91.  
  92. # Directory in which to install html documentation:
  93. HTML_INSTALL_DIR = $(INSTALL_ROOT)$(HTML_DIR)
  94.  
  95. # Directory in which to install the configuration file tkConfig.sh:
  96. CONFIG_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
  97.  
  98. # Directory in which to install the demo files:
  99. DEMO_INSTALL_DIR = $(INSTALL_ROOT)$(TK_LIBRARY)/demos
  100.  
  101. # The directory containing the Tcl sources and headers appropriate
  102. # for this version of Tk ("srcdir" will be replaced or has already
  103. # been replaced by the configure script):
  104. TCL_GENERIC_DIR = /Users/seandeelywoods/build/irm-rage/tcl/generic
  105.  
  106. # The directory containing the platform specific Tcl sources and headers
  107. # appropriate for this version of Tk:
  108. TCL_PLATFORM_DIR = /Users/seandeelywoods/build/irm-rage/tcl/unix
  109.  
  110. # The directory containing the Tcl library archive file appropriate
  111. # for this version of Tk:
  112. TCL_BIN_DIR = /Users/seandeelywoods/build/irm-rage/build-macos/pkg/tcl
  113.  
  114. # The linker flags needed to link in the Tcl library (ex: -ltcl8.2)
  115. TCL_LIB_FLAG = -ltcl8.6
  116.  
  117. # Flag, 1: we're building a shared lib, 0 we're not
  118. TK_SHARED_BUILD = 0
  119.  
  120. # Subdirectory of $(libdir) containing the pkgIndex.tcl file for loadable Tk
  121. TK_PKG_DIR = tk$(VERSION)
  122.  
  123. # Directory in which to install the pkgIndex.tcl file for loadable Tk
  124. PKG_INSTALL_DIR = $(LIB_INSTALL_DIR)/$(TK_PKG_DIR)
  125.  
  126. # Package index file for loadable Tk
  127. PKG_INDEX = $(PKG_INSTALL_DIR)/pkgIndex.tcl
  128.  
  129. # warning flags
  130. CFLAGS_WARNING = -Wall
  131.  
  132. # The default switches for optimization or debugging
  133. CFLAGS_DEBUG = -g
  134. CFLAGS_OPTIMIZE = -Os
  135.  
  136. # To change the compiler switches, for example to change from optimization to
  137. # debugging symbols, change the following line:
  138. #CFLAGS = $(CFLAGS_DEBUG)
  139. #CFLAGS = $(CFLAGS_OPTIMIZE)
  140. #CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE)
  141. CFLAGS = $(CFLAGS_OPTIMIZE) -pipe
  142.  
  143. # Flags to pass to the linker
  144. LDFLAGS_DEBUG =
  145. LDFLAGS_OPTIMIZE =
  146. LDFLAGS = $(LDFLAGS_OPTIMIZE) -prebind -headerpad_max_install_names -Wl,-search_paths_first
  147.  
  148. # A "-I" switch that can be used when compiling to make all of the
  149. # X11 include files accessible (the configure script will try to
  150. # set this value, and will cause it to be an empty string if the
  151. # include files are accessible via /usr/include).
  152. X11_INCLUDES =
  153.  
  154. AQUA_INCLUDES = -I$(MAC_OSX_DIR) -I$(XLIB_DIR)
  155.  
  156. # Linker switch(es) to use to link with the X11 library archive (the
  157. # configure script will try to set this value automatically, but you
  158. # can override it).
  159. X11_LIB_SWITCHES = $(XFT_LIBS)
  160.  
  161.  
  162. # To turn off the security checks that disallow incoming sends when
  163. # the X server appears to be insecure, reverse the comments on the
  164. # following lines:
  165. SECURITY_FLAGS =
  166. #SECURITY_FLAGS = -DTK_NO_SECURITY
  167.  
  168. # To disable ANSI-C procedure prototypes reverse the comment characters
  169. # on the following lines:
  170. PROTO_FLAGS =
  171. #PROTO_FLAGS = -DNO_PROTOTYPE
  172.  
  173. # To enable memory debugging reverse the comment characters on the following
  174. # lines or call configure with --enable-symbols=mem
  175. # Warning: if you enable memory debugging, you must do it *everywhere*,
  176. # including all the code that calls Tcl, and you must use ckalloc and
  177. # ckfree everywhere instead of malloc and free.
  178. MEM_DEBUG_FLAGS =
  179. #MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG
  180.  
  181. # If your X server is X11R4 or earlier, then you may wish to reverse
  182. # the comment characters on the following two lines. This will enable
  183. # extra code to speed up XStringToKeysym. In X11R5 and later releases
  184. # XStringToKeysym is plenty fast, so you needn't define REDO_KEYSYM_LOOKUP.
  185. KEYSYM_FLAGS =
  186. #KEYSYM_FLAGS = -DREDO_KEYSYM_LOOKUP
  187.  
  188. # Tk does not used deprecated Tcl constructs so it should
  189. # compile fine with -DTCL_NO_DEPRECATED. To remove its own
  190. # set of deprecated code uncomment the second line.
  191. NO_DEPRECATED_FLAGS =
  192. #NO_DEPRECATED_FLAGS = -DTK_NO_DEPRECATED
  193.  
  194. # Some versions of make, like SGI's, use the following variable to
  195. # determine which shell to use for executing commands:
  196. SHELL = /bin/sh
  197.  
  198. # BUILD_TCLSH is the fully qualified path name of the tclsh shell
  199. # in the Tcl build directory. Test that need to be run in the
  200. # version of tclsh that we are building against should use this
  201. # path. Targets that need an installed tclsh should not depend
  202. # on this variable.
  203.  
  204. BUILD_TCLSH = /Users/seandeelywoods/build/irm-rage/build-macos/pkg/tcl/tclsh
  205.  
  206. # TCL_EXE is the name of a tclsh executable that is available *BEFORE*
  207. # running make for the first time. Certain build targets (make genstubs)
  208. # need it to be available on the PATH. This executable should *NOT* be
  209. # required just to do a normal build although it can be required to run
  210. # make dist. This variable is set to "" if no tclsh is available.
  211. EXE_SUFFIX =
  212. TCL_EXE = /opt/local/bin/tclsh8.6
  213. WISH_EXE = wish${EXE_SUFFIX}
  214. TKTEST_EXE = tktest${EXE_SUFFIX}
  215.  
  216. # Tk used to let the configure script choose which program to use
  217. # for installing, but there are just too many different versions of
  218. # "install" around; better to use the install-sh script that comes
  219. # with the distribution, which is slower but guaranteed to work.
  220.  
  221. INSTALL_STRIP_PROGRAM = -s
  222. INSTALL_STRIP_LIBRARY = -S -x
  223.  
  224. INSTALL = $(SHELL) $(UNIX_DIR)/install-sh -c
  225. INSTALL_PROGRAM = ${INSTALL}
  226. INSTALL_LIBRARY = ${INSTALL}
  227. INSTALL_DATA = ${INSTALL} -m 644
  228. INSTALL_DATA_DIR = ${INSTALL} -d -m 755
  229.  
  230. # The symbol below provides support for dynamic loading and shared
  231. # libraries. See configure.in for a description of what it means.
  232. # The value of the symbol is normally set by the configure script.
  233.  
  234. SHLIB_CFLAGS = -fno-common -DBUILD_tk
  235.  
  236. # To enable support for stubs in Tcl.
  237. STUB_LIB_FILE = libtkstub8.6.a
  238.  
  239. TK_STUB_LIB_FILE = libtkstub8.6.a
  240. #TK_STUB_LIB_FILE = libtkstub.a
  241.  
  242. # Generic stub lib name used in rules that apply to tcl and tk
  243. STUB_LIB_FILE = ${TK_STUB_LIB_FILE}
  244.  
  245. TK_STUB_LIB_FLAG = -ltkstub8.6
  246. #TK_STUB_LIB_FLAG = -ltkstub
  247.  
  248. TK_LIB_FILE = libtk8.6.a
  249. #TK_LIB_FILE = libtk.a
  250.  
  251. # Generic lib name used in rules that apply to tcl and tk
  252. LIB_FILE = ${TK_LIB_FILE}
  253.  
  254. TK_LIB_FLAG = -ltk8.6
  255. #TK_LIB_FLAG = -ltk
  256.  
  257. TCL_LIB_SPEC = -L/Users/seandeelywoods/build/irm-rage/build-macos/pkg/tcl -ltcl8.6
  258. TCL_STUB_LIB_SPEC = -L/Users/seandeelywoods/build/irm-rage/build-macos/pkg/tcl -ltclstub8.6
  259. TCL_STUB_LIB_FLAG = -ltclstub8.6
  260. TCL_STUB_LIB_FILE = libtclstub8.6.a
  261.  
  262. TCL_STUB_FLAGS =
  263.  
  264. # Libraries to use when linking. This definition is determined by the
  265. # configure script.
  266. LIBS = -lpthread -framework CoreFoundation -framework Cocoa -framework Carbon -framework IOKit $(X11_LIB_SWITCHES) -lz -lpthread -framework CoreFoundation
  267. WISH_LIBS = $(TCL_LIB_SPEC) -lpthread -framework CoreFoundation -framework Cocoa -framework Carbon -framework IOKit $(X11_LIB_SWITCHES) -lz -lpthread -framework CoreFoundation -sectcreate __TEXT __info_plist Wish-Info.plist
  268.  
  269. # The symbols below provide support for dynamic loading and shared
  270. # libraries. See configure.in for a description of what the
  271. # symbols mean. The values of the symbols are normally set by the
  272. # configure script. You shouldn't normally need to modify any of
  273. # these definitions by hand.
  274.  
  275. STLIB_LD = ${AR} cr
  276. SHLIB_LD = ${CC} -dynamiclib ${CFLAGS} ${LDFLAGS} -Wl,-single_module
  277. SHLIB_LD_LIBS = ${LIBS}
  278. TK_SHLIB_LD_EXTRAS = -compatibility_version 8.6 -current_version 8.6.9 -install_name "${DYLIB_INSTALL_DIR}/${TK_LIB_FILE}" -unexported_symbols_list $$(f=$(TK_LIB_FILE).E && nm -gp tkMacOSX*.o 2>/dev/null | awk "/^[0-9a-f]+ . \.objc/ {print \$$3}" > $$f && nm -gjp "$(TCL_BIN_DIR)"/$(TCL_STUB_LIB_FILE) | grep ^_[^_] >> $$f && echo $$f) -seg1addr 0xb000000 -sectcreate __TEXT __info_plist Tk-Info.plist
  279.  
  280. # Additional search flags needed to find the various shared libraries
  281. # at run-time. The first symbol is for use when creating a binary
  282. # with cc, and the second is for use when running ld directly.
  283. CC_SEARCH_FLAGS =
  284. LD_SEARCH_FLAGS =
  285.  
  286. # support for embedded libraries on Darwin / Mac OS X
  287. DYLIB_INSTALL_DIR = ${LIB_RUNTIME_DIR}
  288.  
  289. # support for building the Aqua resource file
  290. TK_RSRC_FILE = tk$(VERSION).rsrc
  291. WISH_RSRC_FILE = wish$(VERSION).rsrc
  292. REZ =
  293. REZ_SWITCHES = -i $(GENERIC_DIR) -i $(TCL_GENERIC_DIR)
  294.  
  295. # support for Xft:
  296. XFT_CFLAGS =
  297. XFT_LIBS =
  298.  
  299. #----------------------------------------------------------------
  300. # The information below is modified by the configure script when
  301. # Makefile is generated from Makefile.in. You shouldn't normally
  302. # modify any of this stuff by hand.
  303. #----------------------------------------------------------------
  304.  
  305. AC_FLAGS = -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.6\" -DPACKAGE_STRING=\"tk\ 8.6\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1 -DSTATIC_BUILD=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DTCL_SHLIB_EXT=\".dylib\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1 -DMAC_OSX_TK=1
  306. AR = ar
  307. RANLIB = ranlib
  308. SRC_DIR = /Users/seandeelywoods/build/irm-rage/tk/unix
  309. TOP_DIR = $(SRC_DIR)/..
  310. GENERIC_DIR = $(TOP_DIR)/generic
  311. TTK_DIR = $(GENERIC_DIR)/ttk
  312. UNIX_DIR = $(TOP_DIR)/unix
  313. BMAP_DIR = $(TOP_DIR)/bitmaps
  314. TOOL_DIR = /Users/seandeelywoods/build/irm-rage/tcl/tools
  315. TEST_DIR = $(TOP_DIR)/tests
  316. MAC_OSX_DIR = $(TOP_DIR)/macosx
  317. XLIB_DIR = $(TOP_DIR)/xlib
  318.  
  319. #----------------------------------------------------------------
  320. # The information below should be usable as is. The configure
  321. # script won't modify it and you shouldn't need to modify it
  322. # either.
  323. #----------------------------------------------------------------
  324.  
  325. # Flags to be passed to installManPage to control how the manpages
  326. # should be installed (symlinks, compression, package name suffix).
  327. MAN_FLAGS =
  328.  
  329. CC = gcc
  330.  
  331. CC_SWITCHES_NO_STUBS = ${CFLAGS} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} \
  332. -I${UNIX_DIR} -I${GENERIC_DIR} -I${BMAP_DIR} -I${TCL_GENERIC_DIR} \
  333. -I${TCL_PLATFORM_DIR} ${AQUA_INCLUDES} ${AC_FLAGS} \
  334. ${PROTO_FLAGS} ${SECURITY_FLAGS} ${MEM_DEBUG_FLAGS} ${KEYSYM_FLAGS} \
  335. ${NO_DEPRECATED_FLAGS} -std=gnu99 -x objective-c
  336.  
  337. CC_SWITCHES = $(CC_SWITCHES_NO_STUBS)
  338.  
  339. APP_CC_SWITCHES = $(CC_SWITCHES_NO_STUBS) -mdynamic-no-pic
  340.  
  341. DEPEND_SWITCHES = ${CFLAGS} -I${UNIX_DIR} -I${GENERIC_DIR} -I${BMAP_DIR} \
  342. -I${TCL_GENERIC_DIR} -I${TCL_PLATFORM_DIR} ${AQUA_INCLUDES} \
  343. ${AC_FLAGS} ${PROTO_FLAGS} ${SECURITY_FLAGS} ${MEM_DEBUG_FLAGS} \
  344. ${KEYSYM_FLAGS} -std=gnu99 -x objective-c
  345.  
  346. WISH_OBJS = tkAppInit.o
  347.  
  348. TKTEST_OBJS = tkTestInit.o tkTest.o tkSquare.o tkOldTest.o \
  349. $(AQUA_TKTEST_OBJS)
  350.  
  351. WIDG_OBJS = tkButton.o tkEntry.o tkFrame.o tkListbox.o \
  352. tkMenu.o tkMenubutton.o tkMenuDraw.o tkMessage.o \
  353. tkPanedWindow.o tkScale.o tkScrollbar.o
  354.  
  355. CANV_OBJS = tkCanvas.o tkCanvArc.o tkCanvBmap.o tkCanvImg.o \
  356. tkCanvLine.o tkCanvPoly.o tkCanvPs.o tkCanvText.o \
  357. tkCanvUtil.o tkCanvWind.o tkRectOval.o tkTrig.o
  358.  
  359. IMAGE_OBJS = tkImage.o tkImgBmap.o tkImgGIF.o tkImgPNG.o tkImgPPM.o \
  360. tkImgPhoto.o tkImgPhInstance.o
  361.  
  362. TEXT_OBJS = tkText.o tkTextBTree.o tkTextDisp.o tkTextImage.o tkTextIndex.o \
  363. tkTextMark.o tkTextTag.o tkTextWind.o
  364.  
  365. # either tkUnixFont.o (default) or tkUnixRFont.o (if --enable-xft)
  366. #
  367. FONT_OBJS =
  368.  
  369. GENERIC_OBJS = tk3d.o tkArgv.o tkAtom.o tkBind.o tkBitmap.o tkBusy.o \
  370. tkClipboard.o \
  371. tkCmds.o tkColor.o tkConfig.o tkConsole.o tkCursor.o tkError.o \
  372. tkEvent.o tkFocus.o tkFont.o tkGet.o tkGC.o tkGeometry.o tkGrab.o \
  373. tkGrid.o tkMain.o tkObj.o tkOldConfig.o tkOption.o tkPack.o tkPlace.o \
  374. tkSelect.o tkStyle.o tkUndo.o tkUtil.o tkVisual.o tkWindow.o
  375.  
  376. TTK_OBJS = \
  377. ttkBlink.o ttkButton.o ttkCache.o ttkClamTheme.o ttkClassicTheme.o \
  378. ttkDefaultTheme.o ttkElements.o ttkEntry.o ttkFrame.o ttkImage.o \
  379. ttkInit.o ttkLabel.o ttkLayout.o ttkManager.o ttkNotebook.o \
  380. ttkPanedwindow.o ttkProgress.o ttkScale.o ttkScrollbar.o ttkScroll.o \
  381. ttkSeparator.o ttkSquare.o ttkState.o \
  382. ttkTagSet.o ttkTheme.o ttkTrace.o ttkTrack.o ttkTreeview.o \
  383. ttkWidget.o ttkStubInit.o
  384.  
  385. STUB_OBJS = tkStubInit.o
  386.  
  387. STUB_LIB_OBJS = tkStubLib.o ttkStubLib.o
  388.  
  389. X11_OBJS = tkUnix.o tkUnix3d.o tkUnixButton.o tkUnixColor.o tkUnixConfig.o \
  390. tkUnixCursor.o tkUnixDraw.o tkUnixEmbed.o tkUnixEvent.o \
  391. tkUnixFocus.o $(FONT_OBJS) tkUnixInit.o tkUnixKey.o tkUnixMenu.o \
  392. tkUnixMenubu.o tkUnixScale.o tkUnixScrlbr.o tkUnixSelect.o \
  393. tkUnixSend.o tkUnixWm.o tkUnixXId.o
  394.  
  395. AQUA_OBJS = tkMacOSXBitmap.o tkMacOSXButton.o tkMacOSXClipboard.o \
  396. tkMacOSXColor.o tkMacOSXConfig.o tkMacOSXCursor.o tkMacOSXDebug.o \
  397. tkMacOSXDialog.o tkMacOSXDraw.o tkMacOSXEmbed.o tkMacOSXEntry.o \
  398. tkMacOSXEvent.o tkMacOSXFont.o tkMacOSXHLEvents.o tkMacOSXImage.o \
  399. tkMacOSXInit.o tkMacOSXKeyboard.o tkMacOSXKeyEvent.o \
  400. tkMacOSXMenu.o \
  401. tkMacOSXMenubutton.o tkMacOSXMenus.o tkMacOSXMouseEvent.o \
  402. tkMacOSXNotify.o tkMacOSXRegion.o tkMacOSXScrlbr.o tkMacOSXSend.o \
  403. tkMacOSXServices.o tkMacOSXSubwindows.o tkMacOSXWindowEvent.o \
  404. tkMacOSXWm.o tkMacOSXXStubs.o \
  405. tkFileFilter.o tkMacWinMenu.o tkPointer.o tkUnix3d.o tkUnixScale.o \
  406. xcolors.o xdraw.o xgc.o ximage.o xutil.o \
  407. ttkMacOSXTheme.o
  408.  
  409. AQUA_TKTEST_OBJS = tkMacOSXTest.o
  410.  
  411. OBJS = $(GENERIC_OBJS) $(WIDG_OBJS) $(CANV_OBJS) $(IMAGE_OBJS) $(TEXT_OBJS) \
  412. $(STUB_OBJS) $(TTK_OBJS) \
  413. $(AQUA_OBJS) ${MAC_OSX_OBJS}
  414.  
  415. TK_DECLS = \
  416. $(GENERIC_DIR)/tk.decls \
  417. $(GENERIC_DIR)/tkInt.decls
  418.  
  419. TTK_DECLS = \
  420. $(TTK_DIR)/ttk.decls
  421.  
  422. GENERIC_SRCS = \
  423. $(GENERIC_DIR)/tk3d.c $(GENERIC_DIR)/tkArgv.c \
  424. $(GENERIC_DIR)/tkAtom.c $(GENERIC_DIR)/tkBind.c \
  425. $(GENERIC_DIR)/tkBitmap.c $(GENERIC_DIR)/tkBusy.c \
  426. $(GENERIC_DIR)/tkClipboard.c \
  427. $(GENERIC_DIR)/tkCmds.c $(GENERIC_DIR)/tkColor.c \
  428. $(GENERIC_DIR)/tkConfig.c $(GENERIC_DIR)/tkCursor.c \
  429. $(GENERIC_DIR)/tkError.c $(GENERIC_DIR)/tkEvent.c \
  430. $(GENERIC_DIR)/tkFocus.c $(GENERIC_DIR)/tkFont.c \
  431. $(GENERIC_DIR)/tkGet.c $(GENERIC_DIR)/tkGC.c \
  432. $(GENERIC_DIR)/tkGeometry.c $(GENERIC_DIR)/tkGrab.c \
  433. $(GENERIC_DIR)/tkGrid.c $(GENERIC_DIR)/tkConsole.c \
  434. $(GENERIC_DIR)/tkMain.c $(GENERIC_DIR)/tkOption.c \
  435. $(GENERIC_DIR)/tkPack.c $(GENERIC_DIR)/tkPlace.c \
  436. $(GENERIC_DIR)/tkSelect.c $(GENERIC_DIR)/tkStyle.c \
  437. $(GENERIC_DIR)/tkUndo.c $(GENERIC_DIR)/tkUtil.c \
  438. $(GENERIC_DIR)/tkVisual.c $(GENERIC_DIR)/tkWindow.c \
  439. $(GENERIC_DIR)/tkButton.c $(GENERIC_DIR)/tkObj.c \
  440. $(GENERIC_DIR)/tkEntry.c $(GENERIC_DIR)/tkFrame.c \
  441. $(GENERIC_DIR)/tkListbox.c $(GENERIC_DIR)/tkMenu.c \
  442. $(GENERIC_DIR)/tkMenubutton.c $(GENERIC_DIR)/tkMenuDraw.c \
  443. $(GENERIC_DIR)/tkMessage.c $(GENERIC_DIR)/tkPanedWindow.c \
  444. $(GENERIC_DIR)/tkScale.c $(GENERIC_DIR)/tkScrollbar.c \
  445. $(GENERIC_DIR)/tkCanvas.c $(GENERIC_DIR)/tkCanvArc.c \
  446. $(GENERIC_DIR)/tkCanvBmap.c $(GENERIC_DIR)/tkCanvImg.c \
  447. $(GENERIC_DIR)/tkCanvLine.c $(GENERIC_DIR)/tkCanvPoly.c \
  448. $(GENERIC_DIR)/tkCanvPs.c $(GENERIC_DIR)/tkCanvText.c \
  449. $(GENERIC_DIR)/tkCanvUtil.c \
  450. $(GENERIC_DIR)/tkCanvWind.c $(GENERIC_DIR)/tkRectOval.c \
  451. $(GENERIC_DIR)/tkTrig.c $(GENERIC_DIR)/tkImage.c \
  452. $(GENERIC_DIR)/tkImgBmap.c $(GENERIC_DIR)/tkImgGIF.c \
  453. $(GENERIC_DIR)/tkImgPNG.c $(GENERIC_DIR)/tkImgPPM.c \
  454. $(GENERIC_DIR)/tkImgPhoto.c $(GENERIC_DIR)/tkImgPhInstance.c \
  455. $(GENERIC_DIR)/tkText.c \
  456. $(GENERIC_DIR)/tkTextBTree.c $(GENERIC_DIR)/tkTextDisp.c \
  457. $(GENERIC_DIR)/tkTextImage.c \
  458. $(GENERIC_DIR)/tkTextIndex.c $(GENERIC_DIR)/tkTextMark.c \
  459. $(GENERIC_DIR)/tkTextTag.c $(GENERIC_DIR)/tkTextWind.c \
  460. $(GENERIC_DIR)/tkOldConfig.c $(GENERIC_DIR)/tkOldTest.c \
  461. $(GENERIC_DIR)/tkSquare.c $(GENERIC_DIR)/tkTest.c \
  462. $(GENERIC_DIR)/tkStubInit.c
  463.  
  464. TTK_SRCS = \
  465. $(TTK_DIR)/ttkBlink.c \
  466. $(TTK_DIR)/ttkButton.c \
  467. $(TTK_DIR)/ttkCache.c \
  468. $(TTK_DIR)/ttkClamTheme.c \
  469. $(TTK_DIR)/ttkClassicTheme.c \
  470. $(TTK_DIR)/ttkDefaultTheme.c \
  471. $(TTK_DIR)/ttkElements.c \
  472. $(TTK_DIR)/ttkEntry.c \
  473. $(TTK_DIR)/ttkFrame.c \
  474. $(TTK_DIR)/ttkImage.c \
  475. $(TTK_DIR)/ttkInit.c \
  476. $(TTK_DIR)/ttkLabel.c \
  477. $(TTK_DIR)/ttkLayout.c \
  478. $(TTK_DIR)/ttkManager.c \
  479. $(TTK_DIR)/ttkNotebook.c \
  480. $(TTK_DIR)/ttkPanedwindow.c \
  481. $(TTK_DIR)/ttkProgress.c \
  482. $(TTK_DIR)/ttkScale.c \
  483. $(TTK_DIR)/ttkScrollbar.c \
  484. $(TTK_DIR)/ttkScroll.c \
  485. $(TTK_DIR)/ttkSeparator.c \
  486. $(TTK_DIR)/ttkSquare.c \
  487. $(TTK_DIR)/ttkState.c \
  488. $(TTK_DIR)/ttkTagSet.c \
  489. $(TTK_DIR)/ttkTheme.c \
  490. $(TTK_DIR)/ttkTrace.c \
  491. $(TTK_DIR)/ttkTrack.c \
  492. $(TTK_DIR)/ttkTreeview.c \
  493. $(TTK_DIR)/ttkWidget.c
  494.  
  495. TTK_STUB_SRCS = \
  496. $(TTK_DIR)/ttkStubInit.c $(TTK_DIR)/ttkStubLib.c
  497.  
  498. X11_SRCS = \
  499. $(UNIX_DIR)/tkAppInit.c $(UNIX_DIR)/tkUnix.c \
  500. $(UNIX_DIR)/tkUnix3d.c \
  501. $(UNIX_DIR)/tkUnixButton.c $(UNIX_DIR)/tkUnixColor.c \
  502. $(UNIX_DIR)/tkUnixConfig.c \
  503. $(UNIX_DIR)/tkUnixCursor.c \
  504. $(UNIX_DIR)/tkUnixDraw.c \
  505. $(UNIX_DIR)/tkUnixEmbed.c $(UNIX_DIR)/tkUnixEvent.c \
  506. $(UNIX_DIR)/tkUnixFocus.c \
  507. $(UNIX_DIR)/tkUnixRFont.c \
  508. $(UNIX_DIR)/tkUnixFont.c $(UNIX_DIR)/tkUnixInit.c \
  509. $(UNIX_DIR)/tkUnixKey.c \
  510. $(UNIX_DIR)/tkUnixMenu.c $(UNIX_DIR)/tkUnixMenubu.c \
  511. $(UNIX_DIR)/tkUnixScale.c $(UNIX_DIR)/tkUnixScrlbr.c \
  512. $(UNIX_DIR)/tkUnixSelect.c \
  513. $(UNIX_DIR)/tkUnixSend.c $(UNIX_DIR)/tkUnixWm.c \
  514. $(UNIX_DIR)/tkUnixXId.c
  515.  
  516. AQUA_SRCS = \
  517. $(MAC_OSX_DIR)/tkMacOSXBitmap.c $(MAC_OSX_DIR)/tkMacOSXButton.c \
  518. $(MAC_OSX_DIR)/tkMacOSXClipboard.c $(MAC_OSX_DIR)/tkMacOSXColor.c \
  519. $(MAC_OSX_DIR)/tkMacOSXConfig.c $(MAC_OSX_DIR)/tkMacOSXCursor.c \
  520. $(MAC_OSX_DIR)/tkMacOSXDebug.c $(MAC_OSX_DIR)/tkMacOSXDialog.c \
  521. $(MAC_OSX_DIR)/tkMacOSXDraw.c $(MAC_OSX_DIR)/tkMacOSXEmbed.c \
  522. $(MAC_OSX_DIR)/tkMacOSXEntry.c $(MAC_OSX_DIR)/tkMacOSXEvent.c \
  523. $(MAC_OSX_DIR)/tkMacOSXFont.c $(MAC_OSX_DIR)/tkMacOSXHLEvents.c \
  524. $(MAC_OSX_DIR)/tkMacOSXImage.c \
  525. $(MAC_OSX_DIR)/tkMacOSXInit.c $(MAC_OSX_DIR)/tkMacOSXKeyboard.c \
  526. $(MAC_OSX_DIR)/tkMacOSXKeyEvent.c \
  527. $(MAC_OSX_DIR)/tkMacOSXMenu.c \
  528. $(MAC_OSX_DIR)/tkMacOSXMenubutton.c $(MAC_OSX_DIR)/tkMacOSXMenus.c \
  529. $(MAC_OSX_DIR)/tkMacOSXMouseEvent.c $(MAC_OSX_DIR)/tkMacOSXNotify.c \
  530. $(MAC_OSX_DIR)/tkMacOSXRegion.c $(MAC_OSX_DIR)/tkMacOSXScrlbr.c \
  531. $(MAC_OSX_DIR)/tkMacOSXServices.c \
  532. $(MAC_OSX_DIR)/tkMacOSXSend.c $(MAC_OSX_DIR)/tkMacOSXSubwindows.c \
  533. $(MAC_OSX_DIR)/tkMacOSXTest.c $(MAC_OSX_DIR)/tkMacOSXWindowEvent.c \
  534. $(MAC_OSX_DIR)/tkMacOSXWm.c $(MAC_OSX_DIR)/tkMacOSXXStubs.c \
  535. $(GENERIC_DIR)/tkFileFilter.c $(GENERIC_DIR)/tkMacWinMenu.c \
  536. $(GENERIC_DIR)/tkPointer.c $(UNIX_DIR)/tkUnix3d.c \
  537. $(UNIX_DIR)/tkUnixScale.c $(XLIB_DIR)/xcolors.c $(XLIB_DIR)/xdraw.c \
  538. $(XLIB_DIR)/xgc.c $(XLIB_DIR)/ximage.c $(XLIB_DIR)/xutil.c \
  539. $(TTK_DIR)/ttkMacOSXTheme.c
  540.  
  541. SRCS = $(GENERIC_SRCS) $(AQUA_SRCS) ${MAC_OSX_SRCS}
  542.  
  543. AQUA_RESOURCES = \
  544. $(MAC_OSX_DIR)/tkAboutDlg.r $(MAC_OSX_DIR)/tkMacOSXCursors.r \
  545. $(MAC_OSX_DIR)/tkMacOSXXCursors.r
  546.  
  547. AQUA_WISH_RESOURCES = $(MAC_OSX_DIR)/tkMacOSXAETE.r
  548.  
  549. AQUA_HDRS = $(MAC_OSX_DIR)/tkMacOSX.h $(GENERIC_DIR)/tkIntXlibDecls.h
  550.  
  551. AQUA_XLIB_HDRS = $(XLIB_DIR)/X11/*.h $(XLIB_DIR)/xbytes.h
  552.  
  553. AQUA_PRIVATE_HDRS = $(MAC_OSX_DIR)/tkMacOSXPort.h $(MAC_OSX_DIR)/tkMacOSXInt.h
  554.  
  555. X11_PRIVATE_HDRS = $(UNIX_DIR)/tkUnixPort.h $(UNIX_DIR)/tkUnixInt.h $(GENERIC_DIR)/tkIntXlibDecls.h
  556.  
  557. # Currently private, eventually public
  558. TTK_HDRS = $(TTK_DIR)/ttkTheme.h $(TTK_DIR)/ttkDecls.h
  559.  
  560. PUBLIC_HDRS = $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkDecls.h \
  561. $(GENERIC_DIR)/tkPlatDecls.h $(AQUA_HDRS)
  562.  
  563. # The private headers we want installed for install-private-headers
  564. PRIVATE_HDRS = $(GENERIC_DIR)/tkInt.h $(GENERIC_DIR)/tkIntDecls.h \
  565. $(GENERIC_DIR)/tkIntPlatDecls.h $(GENERIC_DIR)/tkPort.h \
  566. $(TTK_HDRS) $(AQUA_PRIVATE_HDRS)
  567.  
  568. DEMOPROGS = browse hello ixset rmt rolodex square tcolor timer widget
  569.  
  570. SHELL_ENV = \
  571. DYLD_LIBRARY_PATH="`pwd`:${TCL_BIN_DIR}:$${DYLD_LIBRARY_PATH}"; \
  572. export DYLD_LIBRARY_PATH; \
  573. TCL_LIBRARY=/Users/seandeelywoods/build/irm-rage/tcl/library; export TCL_LIBRARY; \
  574. TK_LIBRARY=/Users/seandeelywoods/build/irm-rage/tk/library; export TK_LIBRARY;
  575.  
  576. all: binaries libraries doc
  577.  
  578. binaries: ${LIB_FILE} ${WISH_EXE}
  579.  
  580. libraries:
  581.  
  582. $(TOP_DIR)/doc/man.macros:
  583. $(INSTALL_DATA) /Users/seandeelywoods/build/irm-rage/tcl/doc/man.macros $(TOP_DIR)/doc/man.macros
  584.  
  585. doc: $(TOP_DIR)/doc/man.macros
  586.  
  587. # The following target is configured by autoconf to generate either
  588. # a shared library or non-shared library for Tk.
  589. ${LIB_FILE}: ${STUB_LIB_FILE} ${OBJS}
  590. rm -f $@
  591. ${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@
  592.  
  593. ${STUB_LIB_FILE}: ${STUB_LIB_OBJS}
  594. @if test "x${LIB_FILE}" = "xlibtk${MAJOR_VERSION}.${MINOR_VERSION}.dll"; then \
  595. (cd ${TOP_DIR}/win; ${MAKE} tk${MAJOR_VERSION}${MINOR_VERSION}.dll); \
  596. cp "${TOP_DIR}/win/tk${MAJOR_VERSION}${MINOR_VERSION}.dll" .; \
  597. fi
  598. rm -f $@
  599. ${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@
  600.  
  601. # Build Aqua resource files
  602. ${TK_RSRC_FILE}: $(AQUA_RESOURCES)
  603. rm -f $@
  604. if test "$(REZ)" != ""; then \
  605. $(REZ) -o $@ $(REZ_SWITCHES) $(AQUA_RESOURCES); fi
  606.  
  607. ${WISH_RSRC_FILE}: $(AQUA_WISH_RESOURCES)
  608. rm -f $@
  609. if test "$(REZ)" != ""; then \
  610. $(REZ) -o $@ $(REZ_SWITCHES) $(AQUA_WISH_RESOURCES); fi
  611.  
  612. # Make target which outputs the list of the .o contained in the Tk lib
  613. # usefull to build a single big shared library containing Tcl/Tk and other
  614. # extensions. used for the Tcl Plugin. -- dl
  615. tkLibObjs:
  616. @echo ${OBJS}
  617. # This targets actually build the objects needed for the lib in the above
  618. # case
  619. objs: ${OBJS}
  620.  
  621.  
  622. ${WISH_EXE}: $(TK_STUB_LIB_FILE) $(WISH_OBJS) $(TK_LIB_FILE)
  623. ${CC} ${CFLAGS} ${LDFLAGS} $(WISH_OBJS) -L/Users/seandeelywoods/build/irm-rage/build-macos/pkg/tk -ltk8.6 \
  624. $(WISH_LIBS) $(CC_SEARCH_FLAGS) -o ${WISH_EXE}
  625.  
  626. # Resetting the LIB_RUNTIME_DIR below is required so that
  627. # the generated tktest executable gets the build directory
  628. # burned into its ld search path. This keeps tktest from
  629. # picking up an already installed version of the Tcl or
  630. # Tk shared libraries.
  631.  
  632. $(TKTEST_EXE): $(TKTEST_OBJS) $(TK_LIB_FILE)
  633. $(MAKE) tktest-real LIB_RUNTIME_DIR="`pwd`:$(TCL_BIN_DIR)"
  634.  
  635. tktest-real: ${TK_STUB_LIB_FILE}
  636. ${CC} ${CFLAGS} ${LDFLAGS} $(TKTEST_OBJS) ${TK_STUB_LIB_FILE} ${TCL_STUB_LIB_SPEC} -L/Users/seandeelywoods/build/irm-rage/build-macos/pkg/tk -ltk8.6 \
  637. $(WISH_LIBS) $(CC_SEARCH_FLAGS) -o $(TKTEST_EXE)
  638.  
  639. # # FIXME: This xttest rule seems to be broken in a number of ways. It should
  640. # # use CC_SEARCH_FLAGS, it does not include the shared lib location logic from
  641. # # tktest, and it is not clear where this test.o object file comes from.
  642. #
  643. # xttest: test.o tkTest.o tkSquare.o $(TK_LIB_FILE) ${TK_STUB_LIB_FILE}
  644. # ${CC} ${CFLAGS} ${LDFLAGS} test.o tkTest.o tkSquare.o \
  645. # -L/Users/seandeelywoods/build/irm-rage/build-macos/pkg/tk -ltk8.6 ${TK_STUB_LIB_FILE} ${TCL_STUB_LIB_SPEC} \
  646. # $(WISH_LIBS) $(LD_SEARCH_FLAGS) -lXt -o xttest
  647.  
  648. # Note, in the target below TCL_LIBRARY needs to be set or else
  649. # "make test" won't work in the case where the compilation directory
  650. # isn't the same as the source directory.
  651. # Specifying TESTFLAGS on the command line is the standard way to pass
  652. # args to tcltest, ie:
  653. # % make test TESTFLAGS="-verbose bps -file fileName.test"
  654.  
  655. test: test-classic test-ttk
  656.  
  657. test-classic: $(TKTEST_EXE)
  658. $(SHELL_ENV) ./$(TKTEST_EXE) $(TEST_DIR)/all.tcl -geometry +0+0 $(TESTFLAGS)
  659.  
  660. test-ttk: $(TKTEST_EXE)
  661. $(SHELL_ENV) ./$(TKTEST_EXE) $(TEST_DIR)/ttk/all.tcl -geometry +0+0 \
  662. $(TESTFLAGS)
  663.  
  664. # Tests with different languages
  665. testlang: $(TKTEST_EXE)
  666. $(SHELL_ENV) \
  667. for lang in $(LOCALES) ; \
  668. do \
  669. LANG=$(lang); export LANG; \
  670. ./$(TKTEST_EXE) $(TEST_DIR)/all.tcl -geometry +0+0 \
  671. $(TESTFLAGS); \
  672. done
  673.  
  674. # Useful target to launch a built tktest with the proper path,...
  675. runtest: $(TKTEST_EXE)
  676. $(SHELL_ENV) ./$(TKTEST_EXE)
  677.  
  678. # This target can be used to run wish from the build directory
  679. # via `make shell` or `make shell SCRIPT=/tmp/foo.tcl`
  680. shell: ${WISH_EXE}
  681. $(SHELL_ENV) ./${WISH_EXE} $(SCRIPT)
  682.  
  683. demo:
  684. $(SHELL_ENV) ./${WISH_EXE} $(TOP_DIR)/library/demos/widget
  685.  
  686. # This target can be used to run wish inside either gdb or insight
  687. gdb: ${WISH_EXE}
  688. @echo "set env DYLD_LIBRARY_PATH=\"`pwd`:${TCL_BIN_DIR}:$${DYLD_LIBRARY_PATH}\"" > gdb.run
  689. @echo "set env TCL_LIBRARY=/Users/seandeelywoods/build/irm-rage/tcl/library" >> gdb.run
  690. @echo "set env TK_LIBRARY=/Users/seandeelywoods/build/irm-rage/tk/library" >> gdb.run
  691. gdb ./${WISH_EXE} --command=gdb.run
  692. rm gdb.run
  693.  
  694. VALGRINDARGS=--tool=memcheck --num-callers=8 --leak-resolution=high --leak-check=yes --show-reachable=yes -v
  695.  
  696. valgrind: $(TKTEST_EXE)
  697. $(SHELL_ENV) valgrind $(VALGRINDARGS) ./$(TKTEST_EXE) $(TEST_DIR)/all.tcl -geometry +0+0 -singleproc 1 $(TESTFLAGS)
  698.  
  699. valgrindshell: $(TKTEST_EXE)
  700. $(SHELL_ENV) valgrind $(VALGRINDARGS) ./$(TKTEST_EXE) $(SCRIPT)
  701.  
  702. INSTALL_BASE_TARGETS = install-binaries install-libraries
  703. INSTALL_DOC_TARGETS = install-doc
  704. INSTALL_DEV_TARGETS = install-headers
  705. INSTALL_DEMO_TARGETS = install-demos
  706. INSTALL_EXTRA_TARGETS =
  707. INSTALL_TARGETS = $(INSTALL_BASE_TARGETS) $(INSTALL_DOC_TARGETS) $(INSTALL_DEV_TARGETS) \
  708. $(INSTALL_DEMO_TARGETS) $(INSTALL_EXTRA_TARGETS)
  709.  
  710. install: $(INSTALL_TARGETS)
  711.  
  712. install-strip:
  713. $(MAKE) $(INSTALL_TARGETS) \
  714. INSTALL_PROGRAM="$(INSTALL_PROGRAM) ${INSTALL_STRIP_PROGRAM}" \
  715. INSTALL_LIBRARY="$(INSTALL_LIBRARY) ${INSTALL_STRIP_LIBRARY}"
  716.  
  717. install-binaries: $(TK_STUB_LIB_FILE) $(TK_LIB_FILE) ${WISH_EXE}
  718. @for i in "$(LIB_INSTALL_DIR)" "$(BIN_INSTALL_DIR)" \
  719. "$(PKG_INSTALL_DIR)" "$(CONFIG_INSTALL_DIR)" ; \
  720. do \
  721. if [ ! -d "$$i" ] ; then \
  722. echo "Making directory $$i"; \
  723. $(INSTALL_DATA_DIR) "$$i"; \
  724. else true; \
  725. fi; \
  726. done;
  727. @if test "x$(TK_SHARED_BUILD)" = "x1"; then \
  728. echo "Creating package index $(PKG_INDEX)"; \
  729. rm -f "$(PKG_INDEX)"; \
  730. (\
  731. echo "if {[catch {package present Tcl 8.6.0}]} return";\
  732. relative=`echo | awk '{ORS=" "; split("$(TK_PKG_DIR)",a,"/"); for (f in a) {print ".."}}'`;\
  733. if test "x$(DLL_INSTALL_DIR)" != "x$(BIN_INSTALL_DIR)"; then \
  734. echo "package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file normalize [file join \$$dir $${relative}$(TK_LIB_FILE)]] Tk]";\
  735. else \
  736. echo "if {(\$$::tcl_platform(platform) eq \"unix\") && ([info exists ::env(DISPLAY)]";\
  737. echo " || ([info exists ::argv] && (\"-display\" in \$$::argv)))} {";\
  738. echo " package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file normalize [file join \$$dir $${relative}.. bin $(TK_LIB_FILE)]] Tk]";\
  739. echo "} else {";\
  740. echo " package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file normalize [file join \$$dir $${relative}.. bin tk${MAJOR_VERSION}${MINOR_VERSION}.dll]] Tk]";\
  741. echo "}";\
  742. fi \
  743. ) > "$(PKG_INDEX)"; \
  744. fi
  745. @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
  746. @$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"
  747. @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
  748. @if test -f "tk${MAJOR_VERSION}${MINOR_VERSION}.dll"; then \
  749. $(INSTALL_LIBRARY) "tk${MAJOR_VERSION}${MINOR_VERSION}.dll" "$(DLL_INSTALL_DIR)";\
  750. chmod 555 "$(DLL_INSTALL_DIR)/tk${MAJOR_VERSION}${MINOR_VERSION}.dll";\
  751. $(INSTALL_LIBRARY) "../win/libtk${MAJOR_VERSION}${MINOR_VERSION}.a" "$(LIB_INSTALL_DIR)";\
  752. chmod 555 "$(LIB_INSTALL_DIR)/libtk${MAJOR_VERSION}${MINOR_VERSION}.a";\
  753. fi
  754. @echo "Installing ${WISH_EXE} as $(BIN_INSTALL_DIR)/wish$(VERSION)${EXE_SUFFIX}"
  755. @$(INSTALL_PROGRAM) ${WISH_EXE} "$(BIN_INSTALL_DIR)/wish$(VERSION)${EXE_SUFFIX}"
  756. @echo "Installing tkConfig.sh to $(CONFIG_INSTALL_DIR)/"
  757. @$(INSTALL_DATA) tkConfig.sh "$(CONFIG_INSTALL_DIR)/tkConfig.sh"
  758. @if test "$(STUB_LIB_FILE)" != "" ; then \
  759. echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \
  760. $(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)" ; \
  761. fi
  762. @echo "Installing Images to $(LIB_INSTALL_DIR)/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)" && for i in Tk.tiff Tk.icns; do $(INSTALL_DATA) "$(MAC_OSX_DIR)/$$i" "$(LIB_INSTALL_DIR)"; done
  763. @echo "Installing pkg-config file to $(LIB_INSTALL_DIR)/pkgconfig/"
  764. @$(INSTALL_DATA_DIR) $(LIB_INSTALL_DIR)/pkgconfig
  765. @$(INSTALL_DATA) tk.pc $(LIB_INSTALL_DIR)/pkgconfig/tk.pc
  766.  
  767. install-libraries: libraries
  768. @for i in "$(SCRIPT_INSTALL_DIR)" "$(SCRIPT_INSTALL_DIR)/images" \
  769. "$(SCRIPT_INSTALL_DIR)/msgs" "$(SCRIPT_INSTALL_DIR)/ttk"; \
  770. do \
  771. if [ -n "$$i" -a ! -d "$$i" ] ; then \
  772. echo "Making directory $$i"; \
  773. $(INSTALL_DATA_DIR) "$$i"; \
  774. else true; \
  775. fi; \
  776. done;
  777. @echo "Installing Tk library files to $(SCRIPT_INSTALL_DIR)/";
  778. @for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex \
  779. $(UNIX_DIR)/tkAppInit.c; \
  780. do \
  781. $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)"; \
  782. done;
  783. @echo "Installing Ttk library files to $(SCRIPT_INSTALL_DIR)/ttk/";
  784. @for i in $(TOP_DIR)/library/ttk/*.tcl; \
  785. do \
  786. if [ -f $$i ] ; then \
  787. $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)/ttk"; \
  788. fi; \
  789. done;
  790. @echo "Installing library image files to $(SCRIPT_INSTALL_DIR)/images/";
  791. @for i in $(TOP_DIR)/library/images/*; \
  792. do \
  793. if [ -f $$i ] ; then \
  794. $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)/images"; \
  795. fi; \
  796. done;
  797. @echo "Installing message catalog files to $(SCRIPT_INSTALL_DIR)/msgs/";
  798. @for i in $(TOP_DIR)/library/msgs/*.msg; \
  799. do \
  800. if [ -f $$i ] ; then \
  801. $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)/msgs"; \
  802. fi; \
  803. done;
  804.  
  805. install-demos:
  806. @for i in "$(DEMO_INSTALL_DIR)" "$(DEMO_INSTALL_DIR)/images" ; \
  807. do \
  808. if [ ! -d "$$i" ] ; then \
  809. echo "Making directory $$i"; \
  810. $(INSTALL_DATA_DIR) "$$i"; \
  811. else true; \
  812. fi; \
  813. done;
  814. @echo "Installing demo files to $(DEMO_INSTALL_DIR)/";
  815. @for i in $(TOP_DIR)/library/demos/*; \
  816. do \
  817. if [ -f $$i ] ; then \
  818. sed -e '3 s|exec wish|exec wish$(VERSION)|' \
  819. $$i > "$(DEMO_INSTALL_DIR)"/`basename $$i`; \
  820. fi; \
  821. done;
  822. @for i in $(DEMOPROGS); \
  823. do \
  824. if test $$i = "square"; then \
  825. rm -f "$(DEMO_INSTALL_DIR)/$$i"; \
  826. else \
  827. chmod 755 "$(DEMO_INSTALL_DIR)/$$i"; \
  828. fi; \
  829. done;
  830. @echo "Installing demo image files to $(DEMO_INSTALL_DIR)/images/";
  831. @for i in $(TOP_DIR)/library/demos/images/*; \
  832. do \
  833. if [ -f $$i ] ; then \
  834. $(INSTALL_DATA) $$i "$(DEMO_INSTALL_DIR)/images"; \
  835. fi; \
  836. done;
  837.  
  838. install-doc:
  839. @for i in "$(MAN_INSTALL_DIR)" "$(MAN1_INSTALL_DIR)" "$(MAN3_INSTALL_DIR)" "$(MANN_INSTALL_DIR)" ; \
  840. do \
  841. if [ ! -d "$$i" ] ; then \
  842. echo "Making directory $$i"; \
  843. $(INSTALL_DATA_DIR) "$$i"; \
  844. else true; \
  845. fi; \
  846. done;
  847. @echo "Installing and cross-linking top-level (.1) docs to $(MAN1_INSTALL_DIR)/";
  848. @for i in $(TOP_DIR)/doc/*.1; do \
  849. $(SHELL) $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MAN1_INSTALL_DIR)"; \
  850. done
  851. @echo "Installing and cross-linking C API (.3) docs to $(MAN3_INSTALL_DIR)/";
  852. @for i in $(TOP_DIR)/doc/*.3; do \
  853. $(SHELL) $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MAN3_INSTALL_DIR)"; \
  854. done
  855. @echo "Installing and cross-linking command (.n) docs to $(MANN_INSTALL_DIR)/";
  856. @for i in $(TOP_DIR)/doc/*.n; do \
  857. $(SHELL) $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MANN_INSTALL_DIR)"; \
  858. done
  859.  
  860. install-headers:
  861. @if test "$(AQUA_XLIB_HDRS)" != ""; then \
  862. XLIB_INCLUDE_INSTALL_DIR="$(INCLUDE_INSTALL_DIR)"/X11; fi; \
  863. for i in "$(INCLUDE_INSTALL_DIR)" "$${XLIB_INCLUDE_INSTALL_DIR}"; \
  864. do \
  865. if [ -n "$$i" -a ! -d "$$i" ] ; then \
  866. echo "Making directory $$i"; \
  867. $(INSTALL_DATA_DIR) "$$i"; \
  868. else true; \
  869. fi; \
  870. done;
  871. @echo "Installing header files to $(INCLUDE_INSTALL_DIR)/";
  872. @for i in $(PUBLIC_HDRS); \
  873. do \
  874. $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"; \
  875. done;
  876. @list='$(AQUA_XLIB_HDRS)'; for i in $$list ; \
  877. do \
  878. $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)/X11"; \
  879. done;
  880.  
  881. # Optional target to install private headers
  882. install-private-headers:
  883. @for i in "$(PRIVATE_INCLUDE_INSTALL_DIR)"; \
  884. do \
  885. if [ ! -d "$$i" ] ; then \
  886. echo "Making directory $$i"; \
  887. $(INSTALL_DATA_DIR) "$$i"; \
  888. else true; \
  889. fi; \
  890. done;
  891. @echo "Installing private header files to $(PRIVATE_INCLUDE_INSTALL_DIR)/";
  892. @for i in $(PRIVATE_HDRS); \
  893. do \
  894. $(INSTALL_DATA) $$i "$(PRIVATE_INCLUDE_INSTALL_DIR)"; \
  895. done;
  896. @if test -f tkConfig.h; then\
  897. $(INSTALL_DATA) tkConfig.h "$(PRIVATE_INCLUDE_INSTALL_DIR)"; \
  898. fi;
  899.  
  900. Makefile: $(UNIX_DIR)/Makefile.in
  901. $(SHELL) config.status
  902. #tkConfig.h: $(UNIX_DIR)/tkConfig.h.in
  903. # $(SHELL) config.status
  904.  
  905. clean:
  906. rm -f *.a *.o libtk* core errs *~ \#* TAGS *.E a.out \
  907. errors ${WISH_EXE} $(TKTEST_EXE) lib.exp Tk *.rsrc
  908.  
  909. distclean: clean
  910. rm -rf Makefile config.status config.cache config.log tkConfig.sh \
  911. tkConfig.h *.plist Tk.framework tk.pc
  912.  
  913. depend:
  914. makedepend -- $(DEPEND_SWITCHES) -- $(SRCS)
  915.  
  916. # Test binaries. The rule for tkTestInit.o is complicated because
  917. # it is is compiled from tkAppInit.c. Can't use the "-o" option
  918. # because this doesn't work on some strange compilers (e.g. UnixWare).
  919. # To enable concurrent parallel make of wish and tktest, this target has to
  920. # depend on wish, this ensures that linking of wish with tkTestInit.o does not
  921. # execute concurrently with the renaming and recompiling of that same object
  922. # file in the target below.
  923.  
  924. tkTestInit.o: $(UNIX_DIR)/tkAppInit.c ${WISH_EXE}
  925. @if test -f tkAppInit.o ; then \
  926. rm -f tkAppInit.sav; \
  927. mv tkAppInit.o tkAppInit.sav; \
  928. fi;
  929. $(CC) -c $(APP_CC_SWITCHES) -DTK_TEST $(UNIX_DIR)/tkAppInit.c
  930. rm -f tkTestInit.o
  931. mv tkAppInit.o tkTestInit.o
  932. @if test -f tkAppInit.sav ; then \
  933. mv tkAppInit.sav tkAppInit.o; \
  934. fi;
  935.  
  936. tkAppInit.o: $(UNIX_DIR)/tkAppInit.c
  937. $(CC) -c $(APP_CC_SWITCHES) $(UNIX_DIR)/tkAppInit.c
  938.  
  939. tk3d.o: $(GENERIC_DIR)/tk3d.c
  940. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tk3d.c
  941.  
  942. tkArgv.o: $(GENERIC_DIR)/tkArgv.c
  943. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkArgv.c
  944.  
  945. tkAtom.o: $(GENERIC_DIR)/tkAtom.c
  946. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkAtom.c
  947.  
  948. tkBind.o: $(GENERIC_DIR)/tkBind.c
  949. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkBind.c
  950.  
  951. tkBitmap.o: $(GENERIC_DIR)/tkBitmap.c
  952. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkBitmap.c
  953.  
  954. tkBusy.o: $(GENERIC_DIR)/tkBusy.c
  955. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkBusy.c
  956.  
  957. tkClipboard.o: $(GENERIC_DIR)/tkClipboard.c
  958. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkClipboard.c
  959.  
  960. tkCmds.o: $(GENERIC_DIR)/tkCmds.c
  961. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCmds.c
  962.  
  963. tkColor.o: $(GENERIC_DIR)/tkColor.c
  964. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkColor.c
  965.  
  966. tkConfig.o: $(GENERIC_DIR)/tkConfig.c
  967. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkConfig.c
  968.  
  969. tkConsole.o: $(GENERIC_DIR)/tkConsole.c
  970. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkConsole.c
  971.  
  972. tkCursor.o: $(GENERIC_DIR)/tkCursor.c
  973. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCursor.c
  974.  
  975. tkError.o: $(GENERIC_DIR)/tkError.c
  976. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkError.c
  977.  
  978. tkEvent.o: $(GENERIC_DIR)/tkEvent.c
  979. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkEvent.c
  980.  
  981. tkFocus.o: $(GENERIC_DIR)/tkFocus.c
  982. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFocus.c
  983.  
  984. tkFont.o: $(GENERIC_DIR)/tkFont.c
  985. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFont.c
  986.  
  987. tkGet.o: $(GENERIC_DIR)/tkGet.c
  988. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGet.c
  989.  
  990. tkGC.o: $(GENERIC_DIR)/tkGC.c
  991. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGC.c
  992.  
  993. tkGeometry.o: $(GENERIC_DIR)/tkGeometry.c
  994. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGeometry.c
  995.  
  996. tkGrab.o: $(GENERIC_DIR)/tkGrab.c
  997. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGrab.c
  998.  
  999. tkGrid.o: $(GENERIC_DIR)/tkGrid.c
  1000. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkGrid.c
  1001.  
  1002. tkMain.o: $(GENERIC_DIR)/tkMain.c
  1003. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMain.c
  1004.  
  1005. tkObj.o: $(GENERIC_DIR)/tkObj.c
  1006. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkObj.c
  1007.  
  1008. tkOldConfig.o: $(GENERIC_DIR)/tkOldConfig.c
  1009. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkOldConfig.c
  1010.  
  1011. tkOption.o: $(GENERIC_DIR)/tkOption.c
  1012. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkOption.c
  1013.  
  1014. tkPack.o: $(GENERIC_DIR)/tkPack.c
  1015. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkPack.c
  1016.  
  1017. tkPlace.o: $(GENERIC_DIR)/tkPlace.c
  1018. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkPlace.c
  1019.  
  1020. tkSelect.o: $(GENERIC_DIR)/tkSelect.c
  1021. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkSelect.c
  1022.  
  1023. tkStyle.o: $(GENERIC_DIR)/tkStyle.c
  1024. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkStyle.c
  1025.  
  1026. tkUtil.o: $(GENERIC_DIR)/tkUtil.c
  1027. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkUtil.c
  1028.  
  1029. tkVisual.o: $(GENERIC_DIR)/tkVisual.c
  1030. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkVisual.c
  1031.  
  1032. tkWindow.o: $(GENERIC_DIR)/tkWindow.c
  1033. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkWindow.c
  1034.  
  1035. tkButton.o: $(GENERIC_DIR)/tkButton.c
  1036. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkButton.c
  1037.  
  1038. tkEntry.o: $(GENERIC_DIR)/tkEntry.c
  1039. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkEntry.c
  1040.  
  1041. tkFrame.o: $(GENERIC_DIR)/tkFrame.c
  1042. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFrame.c
  1043.  
  1044. tkListbox.o: $(GENERIC_DIR)/tkListbox.c
  1045. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkListbox.c
  1046.  
  1047. tkMenu.o: $(GENERIC_DIR)/tkMenu.c
  1048. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMenu.c
  1049.  
  1050. tkMenubutton.o: $(GENERIC_DIR)/tkMenubutton.c
  1051. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMenubutton.c
  1052.  
  1053. tkMenuDraw.o: $(GENERIC_DIR)/tkMenuDraw.c
  1054. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMenuDraw.c
  1055.  
  1056. tkMessage.o: $(GENERIC_DIR)/tkMessage.c
  1057. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMessage.c
  1058.  
  1059. tkPanedWindow.o: $(GENERIC_DIR)/tkPanedWindow.c
  1060. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkPanedWindow.c
  1061.  
  1062. tkScale.o: $(GENERIC_DIR)/tkScale.c
  1063. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkScale.c
  1064.  
  1065. tkScrollbar.o: $(GENERIC_DIR)/tkScrollbar.c
  1066. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkScrollbar.c
  1067.  
  1068. tkSquare.o: $(GENERIC_DIR)/tkSquare.c
  1069. $(CC) -c $(APP_CC_SWITCHES) $(GENERIC_DIR)/tkSquare.c
  1070.  
  1071. tkCanvas.o: $(GENERIC_DIR)/tkCanvas.c
  1072. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvas.c
  1073.  
  1074. tkCanvArc.o: $(GENERIC_DIR)/tkCanvArc.c
  1075. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvArc.c
  1076.  
  1077. tkCanvBmap.o: $(GENERIC_DIR)/tkCanvBmap.c
  1078. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvBmap.c
  1079.  
  1080. tkCanvImg.o: $(GENERIC_DIR)/tkCanvImg.c
  1081. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvImg.c
  1082.  
  1083. tkCanvLine.o: $(GENERIC_DIR)/tkCanvLine.c
  1084. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvLine.c
  1085.  
  1086. tkCanvPoly.o: $(GENERIC_DIR)/tkCanvPoly.c
  1087. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvPoly.c
  1088.  
  1089. tkCanvPs.o: $(GENERIC_DIR)/tkCanvPs.c
  1090. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvPs.c
  1091.  
  1092. tkCanvText.o: $(GENERIC_DIR)/tkCanvText.c
  1093. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvText.c
  1094.  
  1095. tkCanvUtil.o: $(GENERIC_DIR)/tkCanvUtil.c
  1096. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvUtil.c
  1097.  
  1098. tkCanvWind.o: $(GENERIC_DIR)/tkCanvWind.c
  1099. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkCanvWind.c
  1100.  
  1101. tkRectOval.o: $(GENERIC_DIR)/tkRectOval.c
  1102. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkRectOval.c
  1103.  
  1104. tkTrig.o: $(GENERIC_DIR)/tkTrig.c
  1105. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTrig.c
  1106.  
  1107. tkImage.o: $(GENERIC_DIR)/tkImage.c
  1108. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImage.c
  1109.  
  1110. tkImgBmap.o: $(GENERIC_DIR)/tkImgBmap.c
  1111. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgBmap.c
  1112.  
  1113. tkImgGIF.o: $(GENERIC_DIR)/tkImgGIF.c
  1114. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgGIF.c
  1115.  
  1116. tkImgPNG.o: $(GENERIC_DIR)/tkImgPNG.c
  1117. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgPNG.c
  1118.  
  1119. tkImgPPM.o: $(GENERIC_DIR)/tkImgPPM.c
  1120. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgPPM.c
  1121.  
  1122. tkImgPhoto.o: $(GENERIC_DIR)/tkImgPhoto.c $(GENERIC_DIR)/tkImgPhoto.h
  1123. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgPhoto.c
  1124.  
  1125. tkImgPhInstance.o: $(GENERIC_DIR)/tkImgPhInstance.c $(GENERIC_DIR)/tkImgPhoto.h
  1126. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkImgPhInstance.c
  1127.  
  1128. tkOldTest.o: $(GENERIC_DIR)/tkOldTest.c
  1129. $(CC) -c $(APP_CC_SWITCHES) $(GENERIC_DIR)/tkOldTest.c
  1130.  
  1131. tkTest.o: $(GENERIC_DIR)/tkTest.c
  1132. $(CC) -c $(APP_CC_SWITCHES) $(GENERIC_DIR)/tkTest.c
  1133.  
  1134. tkText.o: $(GENERIC_DIR)/tkText.c
  1135. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkText.c
  1136.  
  1137. tkTextBTree.o: $(GENERIC_DIR)/tkTextBTree.c
  1138. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextBTree.c
  1139.  
  1140. tkTextDisp.o: $(GENERIC_DIR)/tkTextDisp.c
  1141. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextDisp.c
  1142.  
  1143. tkTextImage.o: $(GENERIC_DIR)/tkTextImage.c
  1144. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextImage.c
  1145.  
  1146. tkTextIndex.o: $(GENERIC_DIR)/tkTextIndex.c
  1147. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextIndex.c
  1148.  
  1149. tkTextMark.o: $(GENERIC_DIR)/tkTextMark.c
  1150. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextMark.c
  1151.  
  1152. tkTextTag.o: $(GENERIC_DIR)/tkTextTag.c
  1153. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextTag.c
  1154.  
  1155. tkTextWind.o: $(GENERIC_DIR)/tkTextWind.c
  1156. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkTextWind.c
  1157.  
  1158. tkStubInit.o: $(GENERIC_DIR)/tkStubInit.c
  1159. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkStubInit.c
  1160.  
  1161. # Stub library binaries, these must be compiled for use in a shared library
  1162. # even though they will be placed in a static archive
  1163.  
  1164. tkStubLib.o: $(GENERIC_DIR)/tkStubLib.c
  1165. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkStubLib.c
  1166.  
  1167. tkUndo.o: $(GENERIC_DIR)/tkUndo.c
  1168. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkUndo.c
  1169.  
  1170. tkUnix.o: $(UNIX_DIR)/tkUnix.c
  1171. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnix.c
  1172.  
  1173. tkUnix3d.o: $(UNIX_DIR)/tkUnix3d.c
  1174. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnix3d.c
  1175.  
  1176. tkUnixButton.o: $(UNIX_DIR)/tkUnixButton.c
  1177. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixButton.c
  1178.  
  1179. tkUnixColor.o: $(UNIX_DIR)/tkUnixColor.c
  1180. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixColor.c
  1181.  
  1182. tkUnixConfig.o: $(UNIX_DIR)/tkUnixConfig.c
  1183. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixConfig.c
  1184.  
  1185. tkUnixCursor.o: $(UNIX_DIR)/tkUnixCursor.c
  1186. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixCursor.c
  1187.  
  1188. tkUnixDraw.o: $(UNIX_DIR)/tkUnixDraw.c
  1189. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixDraw.c
  1190.  
  1191. tkUnixEmbed.o: $(UNIX_DIR)/tkUnixEmbed.c
  1192. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixEmbed.c
  1193.  
  1194. tkUnixEvent.o: $(UNIX_DIR)/tkUnixEvent.c
  1195. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixEvent.c
  1196.  
  1197. tkUnixFocus.o: $(UNIX_DIR)/tkUnixFocus.c
  1198. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixFocus.c
  1199.  
  1200. tkUnixFont.o: $(UNIX_DIR)/tkUnixFont.c
  1201. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixFont.c
  1202.  
  1203. # NB: tkUnixRFont.o uses nondefault CFLAGS
  1204. tkUnixRFont.o: $(UNIX_DIR)/tkUnixRFont.c
  1205. $(CC) -c $(CC_SWITCHES) $(XFT_CFLAGS) $(UNIX_DIR)/tkUnixRFont.c
  1206.  
  1207. tkUnixInit.o: $(UNIX_DIR)/tkUnixInit.c tkConfig.sh
  1208. $(CC) -c $(CC_SWITCHES) -DTK_LIBRARY=\"${TK_LIBRARY}\" \
  1209. $(UNIX_DIR)/tkUnixInit.c
  1210.  
  1211. tkUnixKey.o: $(UNIX_DIR)/tkUnixKey.c
  1212. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixKey.c
  1213.  
  1214. tkUnixMenu.o: $(UNIX_DIR)/tkUnixMenu.c
  1215. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixMenu.c
  1216.  
  1217. tkUnixMenubu.o: $(UNIX_DIR)/tkUnixMenubu.c
  1218. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixMenubu.c
  1219.  
  1220. tkUnixScale.o: $(UNIX_DIR)/tkUnixScale.c
  1221. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixScale.c
  1222.  
  1223. tkUnixScrlbr.o: $(UNIX_DIR)/tkUnixScrlbr.c
  1224. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixScrlbr.c
  1225.  
  1226. tkUnixSelect.o: $(UNIX_DIR)/tkUnixSelect.c
  1227. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixSelect.c
  1228.  
  1229. tkUnixSend.o: $(UNIX_DIR)/tkUnixSend.c
  1230. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixSend.c
  1231.  
  1232. tkUnixWm.o: $(UNIX_DIR)/tkUnixWm.c
  1233. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixWm.c
  1234.  
  1235. tkUnixXId.o: $(UNIX_DIR)/tkUnixXId.c
  1236. $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tkUnixXId.c
  1237.  
  1238. tkMacOSXBitmap.o: $(MAC_OSX_DIR)/tkMacOSXBitmap.c
  1239. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXBitmap.c
  1240.  
  1241. tkMacOSXButton.o: $(MAC_OSX_DIR)/tkMacOSXButton.c
  1242. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXButton.c
  1243.  
  1244. tkMacOSXClipboard.o: $(MAC_OSX_DIR)/tkMacOSXClipboard.c
  1245. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXClipboard.c
  1246.  
  1247. tkMacOSXColor.o: $(MAC_OSX_DIR)/tkMacOSXColor.c
  1248. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXColor.c
  1249.  
  1250. tkMacOSXConfig.o: $(MAC_OSX_DIR)/tkMacOSXConfig.c
  1251. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXConfig.c
  1252.  
  1253. tkMacOSXCursor.o: $(MAC_OSX_DIR)/tkMacOSXCursor.c
  1254. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXCursor.c
  1255.  
  1256. tkMacOSXDebug.o: $(MAC_OSX_DIR)/tkMacOSXDebug.c
  1257. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXDebug.c
  1258.  
  1259. tkMacOSXDialog.o: $(MAC_OSX_DIR)/tkMacOSXDialog.c
  1260. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXDialog.c
  1261.  
  1262. tkMacOSXDraw.o: $(MAC_OSX_DIR)/tkMacOSXDraw.c
  1263. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXDraw.c
  1264.  
  1265. tkMacOSXEmbed.o: $(MAC_OSX_DIR)/tkMacOSXEmbed.c
  1266. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXEmbed.c
  1267.  
  1268. tkMacOSXEntry.o: $(MAC_OSX_DIR)/tkMacOSXEntry.c
  1269. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXEntry.c
  1270.  
  1271. tkMacOSXEvent.o: $(MAC_OSX_DIR)/tkMacOSXEvent.c
  1272. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXEvent.c
  1273.  
  1274. tkMacOSXFont.o: $(MAC_OSX_DIR)/tkMacOSXFont.c
  1275. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXFont.c
  1276.  
  1277. tkMacOSXHLEvents.o: $(MAC_OSX_DIR)/tkMacOSXHLEvents.c
  1278. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXHLEvents.c
  1279.  
  1280. tkMacOSXImage.o: $(MAC_OSX_DIR)/tkMacOSXImage.c
  1281. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXImage.c
  1282.  
  1283. tkMacOSXInit.o: $(MAC_OSX_DIR)/tkMacOSXInit.c tkConfig.sh
  1284. $(CC) -c $(CC_SWITCHES) -DTK_LIBRARY=\"${TK_LIBRARY}\" \
  1285. $(MAC_OSX_DIR)/tkMacOSXInit.c
  1286.  
  1287. tkMacOSXKeyboard.o: $(MAC_OSX_DIR)/tkMacOSXKeyboard.c
  1288. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXKeyboard.c
  1289.  
  1290. tkMacOSXKeyEvent.o: $(MAC_OSX_DIR)/tkMacOSXKeyEvent.c
  1291. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXKeyEvent.c
  1292.  
  1293. tkMacOSXMenu.o: $(MAC_OSX_DIR)/tkMacOSXMenu.c
  1294. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXMenu.c
  1295.  
  1296. tkMacOSXMenubutton.o: $(MAC_OSX_DIR)/tkMacOSXMenubutton.c
  1297. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXMenubutton.c
  1298.  
  1299. tkMacOSXMenus.o: $(MAC_OSX_DIR)/tkMacOSXMenus.c
  1300. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXMenus.c
  1301.  
  1302. tkMacOSXMouseEvent.o: $(MAC_OSX_DIR)/tkMacOSXMouseEvent.c
  1303. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXMouseEvent.c
  1304.  
  1305. tkMacOSXNotify.o: $(MAC_OSX_DIR)/tkMacOSXNotify.c
  1306. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXNotify.c
  1307.  
  1308. tkMacOSXRegion.o: $(MAC_OSX_DIR)/tkMacOSXRegion.c
  1309. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXRegion.c
  1310.  
  1311. tkMacOSXScale.o: $(MAC_OSX_DIR)/tkMacOSXScale.c
  1312. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXScale.c
  1313.  
  1314. tkMacOSXScrlbr.o: $(MAC_OSX_DIR)/tkMacOSXScrlbr.c
  1315. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXScrlbr.c
  1316.  
  1317. tkMacOSXSend.o: $(MAC_OSX_DIR)/tkMacOSXSend.c
  1318. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXSend.c
  1319.  
  1320. tkMacOSXServices.o: $(MAC_OSX_DIR)/tkMacOSXServices.c
  1321. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXServices.c
  1322.  
  1323. tkMacOSXSubwindows.o: $(MAC_OSX_DIR)/tkMacOSXSubwindows.c
  1324. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXSubwindows.c
  1325.  
  1326. tkMacOSXTest.o: $(MAC_OSX_DIR)/tkMacOSXTest.c
  1327. $(CC) -c $(APP_CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXTest.c
  1328.  
  1329. tkMacOSXWindowEvent.o: $(MAC_OSX_DIR)/tkMacOSXWindowEvent.c
  1330. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXWindowEvent.c
  1331.  
  1332. tkMacOSXWm.o: $(MAC_OSX_DIR)/tkMacOSXWm.c
  1333. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXWm.c
  1334.  
  1335. tkMacOSXXStubs.o: $(MAC_OSX_DIR)/tkMacOSXXStubs.c
  1336. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/tkMacOSXXStubs.c
  1337.  
  1338. tkFileFilter.o: $(GENERIC_DIR)/tkFileFilter.c
  1339. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkFileFilter.c
  1340.  
  1341. tkMacWinMenu.o: $(GENERIC_DIR)/tkMacWinMenu.c
  1342. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkMacWinMenu.c
  1343.  
  1344. tkPointer.o: $(GENERIC_DIR)/tkPointer.c
  1345. $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tkPointer.c
  1346.  
  1347. xcolors.o: $(XLIB_DIR)/xcolors.c
  1348. $(CC) -c $(CC_SWITCHES) $(XLIB_DIR)/xcolors.c
  1349.  
  1350. xdraw.o: $(XLIB_DIR)/xdraw.c
  1351. $(CC) -c $(CC_SWITCHES) $(XLIB_DIR)/xdraw.c
  1352.  
  1353. xgc.o: $(XLIB_DIR)/xgc.c
  1354. $(CC) -c $(CC_SWITCHES) $(XLIB_DIR)/xgc.c
  1355.  
  1356. ximage.o: $(XLIB_DIR)/ximage.c
  1357. $(CC) -c $(CC_SWITCHES) $(XLIB_DIR)/ximage.c
  1358.  
  1359. xutil.o: $(XLIB_DIR)/xutil.c
  1360. $(CC) -c $(CC_SWITCHES) $(XLIB_DIR)/xutil.c
  1361.  
  1362. ttkBlink.o: $(TTK_DIR)/ttkBlink.c
  1363. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkBlink.c
  1364.  
  1365. ttkButton.o: $(TTK_DIR)/ttkButton.c
  1366. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkButton.c
  1367.  
  1368. ttkCache.o: $(TTK_DIR)/ttkCache.c
  1369. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkCache.c
  1370.  
  1371. ttkClamTheme.o: $(TTK_DIR)/ttkClamTheme.c
  1372. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkClamTheme.c
  1373.  
  1374. ttkClassicTheme.o: $(TTK_DIR)/ttkClassicTheme.c
  1375. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkClassicTheme.c
  1376.  
  1377. ttkDefaultTheme.o: $(TTK_DIR)/ttkDefaultTheme.c
  1378. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkDefaultTheme.c
  1379.  
  1380. ttkElements.o: $(TTK_DIR)/ttkElements.c
  1381. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkElements.c
  1382.  
  1383. ttkEntry.o: $(TTK_DIR)/ttkEntry.c
  1384. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkEntry.c
  1385.  
  1386. ttkFrame.o: $(TTK_DIR)/ttkFrame.c
  1387. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkFrame.c
  1388.  
  1389. ttkImage.o: $(TTK_DIR)/ttkImage.c
  1390. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkImage.c
  1391.  
  1392. ttkInit.o: $(TTK_DIR)/ttkInit.c
  1393. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkInit.c
  1394.  
  1395. ttkLabel.o: $(TTK_DIR)/ttkLabel.c
  1396. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkLabel.c
  1397.  
  1398. ttkLayout.o: $(TTK_DIR)/ttkLayout.c
  1399. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkLayout.c
  1400.  
  1401. ttkManager.o: $(TTK_DIR)/ttkManager.c
  1402. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkManager.c
  1403.  
  1404. ttkNotebook.o: $(TTK_DIR)/ttkNotebook.c
  1405. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkNotebook.c
  1406.  
  1407. ttkPanedwindow.o: $(TTK_DIR)/ttkPanedwindow.c
  1408. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkPanedwindow.c
  1409.  
  1410. ttkProgress.o: $(TTK_DIR)/ttkProgress.c
  1411. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkProgress.c
  1412.  
  1413. ttkScale.o: $(TTK_DIR)/ttkScale.c
  1414. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkScale.c
  1415.  
  1416. ttkScroll.o: $(TTK_DIR)/ttkScroll.c
  1417. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkScroll.c
  1418.  
  1419. ttkScrollbar.o: $(TTK_DIR)/ttkScrollbar.c
  1420. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkScrollbar.c
  1421.  
  1422. ttkSeparator.o: $(TTK_DIR)/ttkSeparator.c
  1423. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkSeparator.c
  1424.  
  1425. ttkSquare.o: $(TTK_DIR)/ttkSquare.c
  1426. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkSquare.c
  1427.  
  1428. ttkState.o: $(TTK_DIR)/ttkState.c
  1429. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkState.c
  1430.  
  1431. ttkStubInit.o: $(TTK_DIR)/ttkStubInit.c
  1432. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkStubInit.c
  1433.  
  1434. ttkStubLib.o: $(TTK_DIR)/ttkStubLib.c
  1435. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkStubLib.c
  1436.  
  1437. ttkTagSet.o: $(TTK_DIR)/ttkTagSet.c
  1438. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkTagSet.c
  1439.  
  1440. ttkTheme.o: $(TTK_DIR)/ttkTheme.c
  1441. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkTheme.c
  1442.  
  1443. ttkTrace.o: $(TTK_DIR)/ttkTrace.c
  1444. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkTrace.c
  1445.  
  1446. ttkTrack.o: $(TTK_DIR)/ttkTrack.c
  1447. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkTrack.c
  1448.  
  1449. ttkTreeview.o: $(TTK_DIR)/ttkTreeview.c
  1450. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkTreeview.c
  1451.  
  1452. ttkWidget.o: $(TTK_DIR)/ttkWidget.c
  1453. $(CC) -c $(CC_SWITCHES) $(TTK_DIR)/ttkWidget.c
  1454.  
  1455. ttkMacOSXTheme.o: $(MAC_OSX_DIR)/ttkMacOSXTheme.c
  1456. $(CC) -c $(CC_SWITCHES) $(MAC_OSX_DIR)/ttkMacOSXTheme.c
  1457.  
  1458. .c.o:
  1459. $(CC) -c $(CC_SWITCHES) $<
  1460.  
  1461. #
  1462. # Target to regenerate header files and stub files from the *.decls tables.
  1463. #
  1464.  
  1465. $(GENERIC_DIR)/tkStubInit.c: $(GENERIC_DIR)/tk.decls \
  1466. $(GENERIC_DIR)/tkInt.decls
  1467. @echo "Warning: tkStubInit.c may be out of date."
  1468. @echo "Developers may want to run \"make genstubs\" to regenerate."
  1469. @echo "This warning can be safely ignored, do not report as a bug!"
  1470.  
  1471. $(TTK_DIR)/ttkStubInit.c: $(TTK_DIR)/ttk.decls
  1472. @echo "Warning: ttkStubInit.c may be out of date."
  1473. @echo "Developers may want to run \"make genstubs\" to regenerate."
  1474. @echo "This warning can be safely ignored, do not report as a bug!"
  1475.  
  1476. genstubs:
  1477. $(TCL_EXE) $(TOOL_DIR)/genStubs.tcl $(GENERIC_DIR) \
  1478. $(GENERIC_DIR)/tk.decls $(GENERIC_DIR)/tkInt.decls
  1479. $(TCL_EXE) $(TTK_DIR)/ttkGenStubs.tcl $(TTK_DIR) $(TTK_DIR)/ttk.decls
  1480.  
  1481. #
  1482. # Target to check that all exported functions have an entry in the stubs
  1483. # tables.
  1484. #
  1485.  
  1486. checkstubs: $(TK_LIB_FILE)
  1487. -@for i in `nm -p $(TK_LIB_FILE) \
  1488. | awk '$$2 ~ /^[TDBCS]$$/ { sub("^_", "", $$3); print $$3 }' \
  1489. | sort -n`; do \
  1490. match=0; \
  1491. for j in $(TK_DECLS) $(TTK_DECLS); do \
  1492. if [ `grep -c "$$i *(" $$j` -gt 0 ]; then \
  1493. match=1; \
  1494. fi; \
  1495. done; \
  1496. if [ $$match -eq 0 ]; then echo $$i; fi \
  1497. done
  1498.  
  1499. #
  1500. # Target to check for proper usage of UCHAR macro.
  1501. #
  1502.  
  1503. checkuchar:
  1504. -egrep isalnum\|isalpha\|iscntrl\|isdigit\|islower\|isprint\|ispunct\|isspace\|isupper\|isxdigit\|toupper\|tolower $(SRCS) | grep -v UCHAR
  1505.  
  1506. #
  1507. # Target to make sure that only symbols with "Tk", "tk", "Ttk", "ttk" or "X"
  1508. # prefixes are exported.
  1509. #
  1510.  
  1511. checkexports: $(TK_LIB_FILE)
  1512. -@nm -p $(TK_LIB_FILE) \
  1513. | awk '$$2 ~ /^[TDBCS]$$/ { sub("^_", "", $$3); print $$3 }' \
  1514. | sort -n | grep -E -v '^([Tt]t?k|_?X)' || true
  1515.  
  1516. #
  1517. # Target to create a Tk RPM for Linux. Requires that you be on a Linux
  1518. # system.
  1519. #
  1520.  
  1521. rpm: all
  1522. rm -f THIS.TCL.SPEC
  1523. echo "%define _builddir `pwd`" > THIS.TK.SPEC
  1524. echo "%define _rpmdir `pwd`/RPMS" >> THIS.TK.SPEC
  1525. cat tk.spec >> THIS.TK.SPEC
  1526. mkdir -p RPMS/i386
  1527. rpmbuild -bb THIS.TK.SPEC
  1528. mv RPMS/i386/*.rpm .
  1529. rm -rf RPMS THIS.TK.SPEC
  1530.  
  1531. #
  1532. # Target to create a proper Tk distribution from information in the
  1533. # master source directory. DISTDIR must be defined to indicate where
  1534. # to put the distribution. DISTDIR must be an absolute path name.
  1535. #
  1536.  
  1537. DISTROOT = /tmp/dist
  1538. DISTNAME = tk${VERSION}${PATCH_LEVEL}
  1539. ZIPNAME = tk${MAJOR_VERSION}${MINOR_VERSION}${PATCH_LEVEL}-src.zip
  1540. DISTDIR = $(DISTROOT)/$(DISTNAME)
  1541. TCLDIR = /Users/seandeelywoods/build/irm-rage/tcl
  1542. $(UNIX_DIR)/configure: $(UNIX_DIR)/configure.in $(UNIX_DIR)/tcl.m4 \
  1543. $(UNIX_DIR)/aclocal.m4
  1544. cd $(UNIX_DIR); autoconf
  1545. $(MAC_OSX_DIR)/configure: $(MAC_OSX_DIR)/configure.ac $(UNIX_DIR)/configure
  1546. cd $(MAC_OSX_DIR); autoconf
  1547. $(UNIX_DIR)/tkConfig.h.in: $(MAC_OSX_DIR)/configure
  1548. cd $(MAC_OSX_DIR); autoheader; touch $@
  1549.  
  1550. dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tkConfig.h.in $(UNIX_DIR)/tk.pc.in $(MAC_OSX_DIR)/configure genstubs
  1551. rm -rf $(DISTDIR)
  1552. mkdir -p $(DISTDIR)/unix
  1553. cp -p $(UNIX_DIR)/*.c $(UNIX_DIR)/*.h $(DISTDIR)/unix
  1554. cp $(TOP_DIR)/license.terms $(UNIX_DIR)/Makefile.in $(DISTDIR)/unix
  1555. chmod 664 $(DISTDIR)/unix/Makefile.in
  1556. cp $(UNIX_DIR)/configure $(UNIX_DIR)/configure.in $(UNIX_DIR)/tk.spec \
  1557. $(UNIX_DIR)/aclocal.m4 $(UNIX_DIR)/tcl.m4 \
  1558. $(UNIX_DIR)/tkConfig.sh.in $(TCLDIR)/unix/install-sh \
  1559. $(UNIX_DIR)/README $(UNIX_DIR)/installManPage \
  1560. $(UNIX_DIR)/tkConfig.h.in $(UNIX_DIR)/tk.pc.in $(DISTDIR)/unix
  1561. chmod 775 $(DISTDIR)/unix/configure $(DISTDIR)/unix/configure.in
  1562. mkdir $(DISTDIR)/bitmaps
  1563. @(cd $(TOP_DIR); for i in bitmaps/* ; do \
  1564. if [ -f $$i ] ; then \
  1565. sed -e 's/static char/static unsigned char/' \
  1566. $$i > $(DISTDIR)/$$i; \
  1567. fi; \
  1568. done;)
  1569. mkdir $(DISTDIR)/generic
  1570. cp -p $(GENERIC_DIR)/*.[ch] $(DISTDIR)/generic
  1571. cp -p $(GENERIC_DIR)/*.decls $(DISTDIR)/generic
  1572. cp -p $(GENERIC_DIR)/README $(DISTDIR)/generic
  1573. cp -p $(TOP_DIR)/changes $(TOP_DIR)/ChangeLog \
  1574. $(TOP_DIR)/ChangeLog.2??? $(TOP_DIR)/README.md \
  1575. $(TOP_DIR)/license.terms $(DISTDIR)
  1576. rm -f $(DISTDIR)/generic/blt*.[ch]
  1577. mkdir $(DISTDIR)/generic/ttk
  1578. cp -p $(TTK_DIR)/*.[ch] $(TTK_DIR)/ttk.decls \
  1579. $(TTK_DIR)/ttkGenStubs.tcl $(DISTDIR)/generic/ttk
  1580. mkdir $(DISTDIR)/win
  1581. cp $(TOP_DIR)/win/Makefile.in $(DISTDIR)/win
  1582. cp $(TOP_DIR)/win/configure.in \
  1583. $(TOP_DIR)/win/configure \
  1584. $(TOP_DIR)/win/tkConfig.sh.in \
  1585. $(TOP_DIR)/win/aclocal.m4 $(TOP_DIR)/win/tcl.m4 \
  1586. $(DISTDIR)/win
  1587. cp -p $(TOP_DIR)/win/*.[ch] $(TOP_DIR)/win/*.bat $(DISTDIR)/win
  1588. cp -p $(TOP_DIR)/win/*.vc $(DISTDIR)/win
  1589. cp -p $(TOP_DIR)/win/README $(DISTDIR)/win
  1590. cp -p $(TOP_DIR)/license.terms $(DISTDIR)/win
  1591. mkdir $(DISTDIR)/win/rc
  1592. cp -p $(TOP_DIR)/win/wish.exe.manifest.in $(DISTDIR)/win/
  1593. cp -p $(TOP_DIR)/win/rc/*.{rc,cur,ico,bmp} $(DISTDIR)/win/rc
  1594. mkdir $(DISTDIR)/macosx
  1595. cp -p $(MAC_OSX_DIR)/GNUmakefile $(MAC_OSX_DIR)/README \
  1596. $(MAC_OSX_DIR)/*.icns $(MAC_OSX_DIR)/*.tiff \
  1597. $(MAC_OSX_DIR)/*.[ch] $(MAC_OSX_DIR)/*.in \
  1598. $(MAC_OSX_DIR)/*.ac $(MAC_OSX_DIR)/*.xcconfig \
  1599. $(MAC_OSX_DIR)/*.sdef $(MAC_OSX_DIR)/configure \
  1600. $(DISTDIR)/macosx
  1601. cp -p $(TOP_DIR)/license.terms $(DISTDIR)/macosx
  1602. mkdir $(DISTDIR)/macosx/Tk.xcode
  1603. cp -p $(MAC_OSX_DIR)/Tk.xcode/project.pbxproj \
  1604. $(MAC_OSX_DIR)/Tk.xcode/default.pbxuser \
  1605. $(DISTDIR)/macosx/Tk.xcode
  1606. mkdir $(DISTDIR)/macosx/Tk.xcodeproj
  1607. cp -p $(MAC_OSX_DIR)/Tk.xcodeproj/project.pbxproj \
  1608. $(MAC_OSX_DIR)/Tk.xcodeproj/default.pbxuser \
  1609. $(DISTDIR)/macosx/Tk.xcodeproj
  1610. mkdir $(DISTDIR)/compat
  1611. cp -p $(TOP_DIR)/license.terms $(TCLDIR)/compat/unistd.h \
  1612. $(TCLDIR)/compat/stdlib.h \
  1613. $(DISTDIR)/compat
  1614. mkdir $(DISTDIR)/xlib
  1615. cp -p $(XLIB_DIR)/*.[ch] $(DISTDIR)/xlib
  1616. cp -p $(TOP_DIR)/license.terms $(DISTDIR)/xlib
  1617. mkdir $(DISTDIR)/xlib/X11
  1618. cp -p $(XLIB_DIR)/X11/*.h $(DISTDIR)/xlib/X11
  1619. cp -p $(TOP_DIR)/license.terms $(DISTDIR)/xlib/X11
  1620. mkdir $(DISTDIR)/library
  1621. cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/library/*.tcl \
  1622. $(TOP_DIR)/library/tclIndex \
  1623. $(DISTDIR)/library
  1624. mkdir $(DISTDIR)/library/ttk
  1625. cp -p $(TOP_DIR)/library/ttk/*.tcl $(DISTDIR)/library/ttk
  1626. mkdir $(DISTDIR)/library/images
  1627. @(cd $(TOP_DIR); for i in library/images/* ; do \
  1628. if [ -f $$i ] ; then \
  1629. cp $$i $(DISTDIR)/$$i; \
  1630. fi; \
  1631. done;)
  1632. mkdir $(DISTDIR)/library/msgs
  1633. @(cd $(TOP_DIR); for i in library/msgs/*.msg ; do \
  1634. if [ -f $$i ] ; then \
  1635. cp $$i $(DISTDIR)/$$i; \
  1636. fi; \
  1637. done;)
  1638. mkdir $(DISTDIR)/library/demos
  1639. cp -pr $(TOP_DIR)/library/demos/*.tcl \
  1640. $(TOP_DIR)/library/demos/*.msg \
  1641. $(TOP_DIR)/library/demos/tclIndex \
  1642. $(TOP_DIR)/library/demos/browse \
  1643. $(TOP_DIR)/library/demos/hello $(TOP_DIR)/library/demos/ixset \
  1644. $(TOP_DIR)/library/demos/rmt $(TOP_DIR)/library/demos/rolodex \
  1645. $(TOP_DIR)/library/demos/square \
  1646. $(TOP_DIR)/library/demos/tcolor \
  1647. $(TOP_DIR)/library/demos/timer \
  1648. $(TOP_DIR)/library/demos/widget \
  1649. $(TOP_DIR)/library/demos/README \
  1650. $(TOP_DIR)/license.terms $(DISTDIR)/library/demos
  1651. mkdir $(DISTDIR)/library/demos/images
  1652. @(cd $(TOP_DIR); for i in library/demos/images/* ; do \
  1653. if [ -f $$i ] ; then \
  1654. cp $$i $(DISTDIR)/$$i; \
  1655. fi; \
  1656. done;)
  1657. mkdir $(DISTDIR)/doc
  1658. cp -p $(TOP_DIR)/license.terms $(TOP_DIR)/doc/*.[13n] \
  1659. $(TCLDIR)/doc/man.macros $(DISTDIR)/doc
  1660. mkdir $(DISTDIR)/tests
  1661. cp -p $(TOP_DIR)/license.terms $(TEST_DIR)/*.{test,tcl} \
  1662. $(TEST_DIR)/README $(TEST_DIR)/*.{gif,png,ppm,xbm} \
  1663. $(TEST_DIR)/option.file* $(DISTDIR)/tests
  1664. mkdir $(DISTDIR)/tests/ttk
  1665. cp -p $(TEST_DIR)/ttk/*.{test,tcl} $(DISTDIR)/tests/ttk
  1666.  
  1667. alldist: dist
  1668. rm -f $(DISTROOT)/$(DISTNAME)-src.tar.gz $(DISTROOT)/$(ZIPNAME)
  1669. cd $(DISTROOT); tar cf $(DISTNAME)-src.tar $(DISTNAME); \
  1670. gzip -9 $(DISTNAME)-src.tar; zip -qr8 $(ZIPNAME) $(DISTNAME)
  1671.  
  1672. #
  1673. # This target creates the HTML folder for Tcl & Tk and places it
  1674. # in DISTDIR/html. It uses the tcltk-man2html.tcl tool from
  1675. # the Tcl group's tool workspace. It depends on the Tcl & Tk being
  1676. # in directories called tcl8.3 & tk8.3 up two directories from the
  1677. # TOOL_DIR.
  1678. #
  1679.  
  1680. html:
  1681. $(BUILD_HTML)
  1682.  
  1683. html-tcl:
  1684. $(BUILD_HTML) --tcl
  1685.  
  1686. html-tk:
  1687. $(BUILD_HTML) --tk
  1688.  
  1689.  
  1690. BUILD_HTML = \
  1691. @if test -f "$(BUILD_TCLSH)"; then \
  1692. $(SHELL_ENV) TCLSH="$(BUILD_TCLSH)"; else \
  1693. TCLSH="$(TCL_EXE)"; fi ;\
  1694. "$${TCLSH}" $(TOOL_DIR)/tcltk-man2html.tcl --htmldir="$(HTML_INSTALL_DIR)" \
  1695. --srcdir=$(TOP_DIR)/.. $(BUILD_HTML_FLAGS)
  1696.  
  1697. #
  1698. # The list of all the targets that do not correspond to real files. This stops
  1699. # 'make' from getting confused when someone makes an error in a rule.
  1700. #
  1701.  
  1702. .PHONY: all binaries libraries objs doc html html-tcl html-tk test runtest
  1703. .PHONY: install install-strip install-binaries install-libraries
  1704. .PHONY: install-headers install-private-headers install-doc
  1705. .PHONY: clean distclean depend genstubs checkstubs checkexports checkuchar
  1706. .PHONY: shell gdb valgrind valgrindshell dist alldist rpm
  1707. .PHONY: tkLibObjs tktest-real test-classic test-ttk testlang
  1708. .PHONY: demo install-demos
  1709.  
  1710. # DO NOT DELETE THIS LINE -- make depend depends on it.
  1711.