summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2008-12-22 01:40:57 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2008-12-22 01:40:57 (GMT)
commitd8c0b8c3cb13319e54c3f8deda3a7e2eef753451 (patch)
tree565be9d49bb7cb523e04a4ccf3a351b07f4efcb3
parent515219150ace1210cd7e4cfa05e5fb44849978c9 (diff)
downloadtcl-d8c0b8c3cb13319e54c3f8deda3a7e2eef753451.zip
tcl-d8c0b8c3cb13319e54c3f8deda3a7e2eef753451.tar.gz
tcl-d8c0b8c3cb13319e54c3f8deda3a7e2eef753451.tar.bz2
Support the pkgs tree
-rw-r--r--ChangeLog4
-rw-r--r--win/makefile.vc35
2 files changed, 29 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 3385d0b..aa1457a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-22 Pat Thoyts <patthoyts@users.sourceforge.net>
+
+ * win/makefile.vc: Support the pkgs tree in the NMAKE builds.
+
2008-12-21 Daniel Steffen <das@users.sourceforge.net>
* unix/Makefile.in: Fix broken build of bundled packages when path
diff --git a/win/makefile.vc b/win/makefile.vc
index 9a29dde..93b7254 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -13,7 +13,7 @@
# Copyright (c) 2003-2008 Pat Thoyts.
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: makefile.vc,v 1.193 2008/12/19 01:34:51 patthoyts Exp $
+# RCS: @(#) $Id: makefile.vc,v 1.194 2008/12/22 01:40:57 patthoyts Exp $
#------------------------------------------------------------------------------
# Check to see we are configured to build with MSVC (MSDEVDIR or MSVCDIR)
@@ -196,8 +196,8 @@ DDEVERSION = $(DDEDOTVERSION:.=)
REGDOTVERSION = 1.2
REGVERSION = $(REGDOTVERSION:.=)
-BINROOT = .
-ROOT = ..
+BINROOT = $(MAKEDIR) # originally .
+ROOT = $(MAKEDIR)\.. # originally ..
TCLIMPLIB = $(OUT_DIR)\$(PROJECT)$(VERSION)$(SUFX).lib
TCLLIBNAME = $(PROJECT)$(VERSION)$(SUFX).$(EXT)
@@ -425,7 +425,7 @@ GENERICDIR = $(ROOT)\generic
TOMMATHDIR = $(ROOT)\libtommath
TOOLSDIR = $(ROOT)\tools
WINDIR = $(ROOT)\win
-
+PKGSDIR = $(ROOT)\pkgs
#---------------------------------------------------------------------
# Compile flags
@@ -534,17 +534,17 @@ TESTFLAGS = $(TESTFLAGS) -file $(TESTPAT)
# Project specific targets
#---------------------------------------------------------------------
-release: setup $(TCLSH) $(TCLSTUBLIB) dlls
+release: setup $(TCLSH) $(TCLSTUBLIB) dlls pkgs
core: setup $(TCLLIB) $(TCLSTUBLIB)
shell: setup $(TCLSH)
dlls: setup $(TCLPIPEDLL) $(TCLREGLIB) $(TCLDDELIB)
-all: setup $(TCLSH) $(TCLSTUBLIB) dlls $(CAT32)
+all: setup $(TCLSH) $(TCLSTUBLIB) dlls $(CAT32) pkgs
tcltest: setup $(TCLTEST) dlls $(CAT32)
-install: install-binaries install-libraries install-docs
-
+install: install-binaries install-libraries install-docs install-pkgs
-test: setup $(TCLTEST) dlls $(CAT32)
- set TCL_LIBRARY=$(ROOT)/library
+test: test-core test-pkgs
+test-core: setup $(TCLTEST) dlls $(CAT32)
+ set TCL_LIBRARY=$(ROOT:\=/)/../library
!if "$(OS)" == "Windows_NT" || "$(MSVCDIR)" == "IDE"
$(DEBUGGER) $(TCLTEST) "$(ROOT)/tests/all.tcl" $(TESTFLAGS) -loadfile <<
set ::ddelib [file normalize $(TCLDDELIB:\=/)]
@@ -633,6 +633,21 @@ $(TCLREGLIB): $(TMP_DIR)\tclWinReg.obj $(TCLSTUBLIB)
-@del $*.lib
!endif
+pkgs:
+ @for /d %d in ($(PKGSDIR)\*) do \
+ @pushd %~fd\win & \
+ $(MAKE) -nologo -f makefile.vc TCLDIR=$(ROOT)
+
+test-pkgs:
+ @for /d %d in ($(PKGSDIR)\*) do \
+ @pushd %~fd\win & \
+ $(MAKE) -nologo -f makefile.vc TCLDIR=$(ROOT) test
+
+install-pkgs:
+ @for /d %d in ($(PKGSDIR)\*) do \
+ @pushd %~fd\win & \
+ $(MAKE) -nologo -f makefile.vc TCLDIR=$(ROOT) install
+
$(CAT32): $(WINDIR)\cat.c
$(cc32) $(CON_CFLAGS) -Fo$(TMP_DIR)\ $?
$(link32) $(conlflags) -out:$@ -stack:16384 $(TMP_DIR)\cat.obj \