diff options
author | stanton <stanton@noemail.net> | 1999-02-04 21:02:58 (GMT) |
---|---|---|
committer | stanton <stanton@noemail.net> | 1999-02-04 21:02:58 (GMT) |
commit | 9f7dc16a2975a57c4f53886e8a60c3856db562f1 (patch) | |
tree | a0711087325c3b3bec597a20bc4a1e9d2409a286 /win | |
parent | 542e385569799507fd0b12d625e5eb244e2d31ed (diff) | |
download | tk-9f7dc16a2975a57c4f53886e8a60c3856db562f1.zip tk-9f7dc16a2975a57c4f53886e8a60c3856db562f1.tar.gz tk-9f7dc16a2975a57c4f53886e8a60c3856db562f1.tar.bz2 |
* win/makefile.vc: First stab at install target. Fixed quoting so
paths with spaces work.
* win/makefile.vc:
* win/makefile.bc: Udpated version numbers
FossilOrigin-Name: 53ebca0fb6ca79495c585c9dc0b2608fee53cc3b
Diffstat (limited to 'win')
-rw-r--r-- | win/makefile.bc | 4 | ||||
-rw-r--r-- | win/makefile.vc | 61 |
2 files changed, 45 insertions, 20 deletions
diff --git a/win/makefile.bc b/win/makefile.bc index 525748e..57642d9 100644 --- a/win/makefile.bc +++ b/win/makefile.bc @@ -5,7 +5,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: makefile.bc,v 1.7 1998/11/25 01:48:54 stanton Exp $ +# RCS: @(#) $Id: makefile.bc,v 1.8 1999/02/04 21:02:58 stanton Exp $ # @@ -19,7 +19,7 @@ ROOT = .. TMPDIR = . TOOLS = c:\bc45 -TCLDIR = ..\..\tcl8.0.4 +TCLDIR = ..\..\tcl8.0.5 # uncomment the following line to compile with symbols #DEBUG=1 diff --git a/win/makefile.vc b/win/makefile.vc index 549cf15..fc002dc 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -4,7 +4,7 @@ # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # Copyright (c) 1995-1996 Sun Microsystems, Inc. -# RCS: @(#) $Id: makefile.vc,v 1.17 1998/11/03 02:04:06 stanton Exp $ +# RCS: @(#) $Id: makefile.vc,v 1.18 1999/02/04 21:02:58 stanton Exp $ # Does not depend on the presence of any environment variables in # order to compile tcl; all needed information is derived from @@ -26,9 +26,10 @@ # ROOT = .. -TOOLS32 = c:\progra~1\devstudio\vc -TOOLS32_rc = c:\progra~1\devstudio\sharedide -TCLDIR = ..\..\tcl8.0.4 +TOOLS32 = c:\program files\devstudio\vc +TOOLS32_rc = c:\program files\devstudio\sharedide +TCLDIR = ..\..\tcl8.0.5 +INSTALLDIR = c:\program files\tcl # Set this to the appropriate value of /MACHINE: for your platform MACHINE = IX86 @@ -47,6 +48,7 @@ TCLNAMEPREFIX = tcl TKNAMEPREFIX = tk WISHNAMEPREFIX = wish VERSION = 80 +DOTVERSION = 8.0 BINROOT = . !IF "$(NODEBUG)" == "1" @@ -74,6 +76,11 @@ WISHP = $(OUTDIR)\$(WISHNAMEPREFIX)p$(VERSION)$(DBGX).exe TKTEST = $(OUTDIR)\$(TKNAMEPREFIX)test.exe DUMPEXTS = $(TMPDIR)\dumpexts.exe +BIN_INSTALL_DIR = $(INSTALLDIR)\bin +INCLUDE_INSTALL_DIR = $(INSTALLDIR)\include +LIB_INSTALL_DIR = $(INSTALLDIR)\lib +SCRIPT_INSTALL_DIR = $(LIB_INSTALL_DIR)\tk$(DOTVERSION) + WISHOBJS = \ $(TMPDIR)\winMain.obj @@ -184,10 +191,10 @@ TKOBJS = \ $(TMPDIR)\tkVisual.obj \ $(TMPDIR)\tkWindow.obj -cc32 = $(TOOLS32)\bin\cl.exe -link32 = $(TOOLS32)\bin\link.exe -rc32 = $(TOOLS32_rc)\bin\rc.exe -include32 = -I$(TOOLS32)\include +cc32 = "$(TOOLS32)\bin\cl.exe" +link32 = "$(TOOLS32)\bin\link.exe" +rc32 = "$(TOOLS32_rc)\bin\rc.exe" +include32 = -I"$(TOOLS32)\include" WINDIR = $(ROOT)\win GENERICDIR = $(ROOT)\generic @@ -219,7 +226,7 @@ lcommon = /NODEFAULTLIB /RELEASE /NOLOGO # declarations for use on Intel i386, i486, and Pentium systems !IF "$(MACHINE)" == "IX86" DLLENTRY = @12 -lflags = $(lcommon) -align:0x1000 /MACHINE:$(MACHINE) +lflags = $(lcommon) /MACHINE:$(MACHINE) !ELSE lflags = $(lcommon) /MACHINE:$(MACHINE) !ENDIF @@ -247,12 +254,7 @@ guilibsdll = $(libcdll) $(winlibs) ###################################################################### !IF "$(NODEBUG)" == "1" -!IF "$(MACHINE)" == "ALPHA" -# MSVC on Alpha doesn't understand -Ot -cdebug = -O2i -Gs -GD -!ELSE -cdebug = -Oti -Gs -GD -!ENDIF +cdebug = -O2 -Gs -GD !ELSE cdebug = -Z7 -Od -WX !ENDIF @@ -294,12 +296,35 @@ CON_CFLAGS = $(cdebug) $(cflags) $(cvars) $(include32) -DCONSOLE all: setup $(WISH) test: setup $(TKTEST) +install: install-binaries install-libraries plugin: setup $(TKPLUGINDLL) $(WISHP) +tktest: setup $(TKTEST) setup: @mkd $(TMPDIR) @mkd $(OUTDIR) +install-binaries: + @mkd "$(BIN_INSTALL_DIR)" + copy $(TKDLL) "$(BIN_INSTALL_DIR)" + copy $(WISH) "$(BIN_INSTALL_DIR)" + @mkd "$(LIB_INSTALL_DIR)" + copy $(TKLIB) "$(LIB_INSTALL_DIR)" + +install-libraries: + @mkd "$(INCLUDE_INSTALL_DIR)" + @mkd "$(INCLUDE_INSTALL_DIR)\X11" + copy "$(ROOT)\generic\tk.h" "$(INCLUDE_INSTALL_DIR)" + xcopy "$(ROOT)\xlib\X11\*.h" "$(INCLUDE_INSTALL_DIR)\X11" + @mkd "$(SCRIPT_INSTALL_DIR)" + @mkd "$(SCRIPT_INSTALL_DIR)\images" + @mkd "$(SCRIPT_INSTALL_DIR)\demos" + @mkd "$(SCRIPT_INSTALL_DIR)\demos\images" + xcopy "$(ROOT)\library" "$(SCRIPT_INSTALL_DIR)" + xcopy "$(ROOT)\library\images" "$(SCRIPT_INSTALL_DIR)\images" + xcopy "$(ROOT)\library\demos" "$(SCRIPT_INSTALL_DIR)\demos" + xcopy "$(ROOT)\library\demos\images" "$(SCRIPT_INSTALL_DIR)\demos\images" + $(TKLIB): $(TKDLL) $(TKDLL): $(TKOBJS) $(TMPDIR)\tk.res $(TMPDIR)\tk.def @@ -360,16 +385,16 @@ $(DUMPEXTS): $(TCLDIR)\win\winDumpExts.c # $(TMPDIR)\testMain.obj: $(ROOT)\win\winMain.c - $(cc32) $(TK_CFLAGS) -DSTATIC_BUILD -DTK_TEST -Fo$@ $? + $(cc32) $(TK_CFLAGS) -DTK_TEST -Fo$@ $? $(TMPDIR)\tkTest.obj: $(ROOT)\generic\tkTest.c - $(cc32) $(TK_CFLAGS) -DSTATIC_BUILD -Fo$@ $? + $(cc32) $(TK_CFLAGS) -Fo$@ $? $(TMPDIR)\tkSquare.obj: $(ROOT)\generic\tkSquare.c $(cc32) $(TK_CFLAGS) -Fo$@ $? $(TMPDIR)\winMain.obj: $(ROOT)\win\winMain.c - $(cc32) $(TK_CFLAGS) -DSTATIC_BUILD -Fo$@ $? + $(cc32) $(TK_CFLAGS) -Fo$@ $? # # Implicit rules |