summaryrefslogtreecommitdiffstats
path: root/win/Makefile.in
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-06-05 11:11:21 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-06-05 11:11:21 (GMT)
commit4d20f665946c27cd45eb210ffd754af25bc4688f (patch)
treee3143d6043d82311b6be00703e45ee0e7f8067dd /win/Makefile.in
parent01005ac615a6454ce1868948bf3757b1b45548c5 (diff)
downloadtk-4d20f665946c27cd45eb210ffd754af25bc4688f.zip
tk-4d20f665946c27cd45eb210ffd754af25bc4688f.tar.gz
tk-4d20f665946c27cd45eb210ffd754af25bc4688f.tar.bz2
Generate same pkgIndex.tcl file for win32 and cygwin, one that is equally useable for both
Diffstat (limited to 'win/Makefile.in')
-rw-r--r--win/Makefile.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/win/Makefile.in b/win/Makefile.in
index 89b61cd..6bfa4ad 100644
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -478,8 +478,12 @@ install-binaries: binaries
@$(RM) $(PKG_INDEX);
@(\
echo "if {[catch {package present Tcl 8.5.0}]} { return }";\
- echo "package ifneeded Tk $(VERSION)$(PATCH_LEVEL)\
- [list load [file join \$$dir .. .. bin $(TK_DLL_FILE)] Tk]";\
+ echo "if {(\$$::tcl_platform(platform) eq \"unix\")";\
+ echo " && ([info exists ::env(DISPLAY)] || [lsearch -exact \$$::argv -display] > -1)} {";\
+ echo " package ifneeded Tk $(VERSION)$(PATCH_LEVEL) [list load [file join \$$dir .. .. bin libtk$(VERSION).dll] Tk]";\
+ echo "} else {";\
+ echo " package ifneeded Tk $(VERSION)$(PATCH_LEVEL) [list load [file join \$$dir .. .. bin $(TK_DLL_FILE)] Tk]";\
+ echo "}";\
) > $(PKG_INDEX);
@for i in tkConfig.sh $(TK_LIB_FILE) $(TK_STUB_LIB_FILE); \
do \
@@ -669,7 +673,7 @@ tkWindow.$(OBJEXT): configure Makefile
.SUFFIXES: .$(RES)
.SUFFIXES: .rc
-# Implicit rule for all object files that will end up in the Tcl library
+# Implicit rule for all object files that will end up in the Tk library
%.$(OBJEXT): %.c
$(CC) -c $(STUB_CC_SWITCHES) -DBUILD_tk -DBUILD_ttk @DEPARG@ $(CC_OBJNAME)