2 # Visual C++ 4.1 makefile
5 # This is the main Visual C++ makefile for the Windows distribution
6 # of [incr Tcl] version 2.2. To compile the distribution using Visual
7 # C++, copy "makefile.vc" to "makefile". Then set the macros for the
8 # location of the source tree, the target directory, and the Microsoft
9 # Compilers. You may then "make dist" to build the distribution, and
10 # "make dist-install" to install it to the target directory you specify
14 # There are three primary targets for the distribution:
16 # dist: build the entire distribution: Tcl, Tk, Itcl, Itk
18 # dist-install: moves built files to target directory
20 # dist-clean: erases built files in source tree
23 # TOOLS32 = location of VC++ 32-bit development tools. Note that the
24 # VC++ 2.0 header files are broken, so you need to use the
25 # ones that come with the developer network CD's, or later
28 # TOOLS16 = location of VC++ 1.5 16-bit tools, needed to build thunking
29 # library. This information is optional; if the 16-bit compiler
30 # is not available, then the 16-bit code will not be built.
31 # Tcl will still run without the 16-bit code, but...
32 # A. Under Windows 3.X you will any calls to the exec command
33 # will return an error.
34 # B. A 16-bit program to test the behavior of the exec
35 # command under NT and 95 will not be built.
37 # TARGET_ROOT -- Target Directory for installation
39 # SOURCE_ROOT -- Path to root of source tree
44 TARGET_ROOT = c:\Program files\Itcl2.2
45 SOURCE_ROOT = c:\itcl2.2
48 # You should not have to modify anything further in this makefile
55 cc32 = $(TOOLS32)\bin\cl.exe
56 link32 = $(TOOLS32)\bin\link.exe
57 rc32 = $(TOOLS32)\bin\rc.exe
58 include32 = -I$(TOOLS32)\include
60 cc16 = $(TOOLS16)\bin\cl.exe
61 link16 = $(TOOLS16)\bin\link.exe
62 rc16 = $(TOOLS16)\bin\rc.exe
63 include16 = -I$(TOOLS16)\include
64 MAKE = $(TOOLS32)\bin\nmake -fmakefile.vc
75 # Source and Build Paths
78 TCLDIR = $(SOURCE_ROOT)\Tcl7.6
79 TKDIR = $(SOURCE_ROOT)\Tk4.2
80 ITCLDIR = $(SOURCE_ROOT)\Itcl
81 ITKDIR = $(SOURCE_ROOT)\Itk
82 IWIDGETSDIR = $(SOURCE_ROOT)\Iwidgets2.2.0
88 TARGET_BIN = $(TARGET_ROOT)\Bin
89 TARGET_LIB_ROOT = $(TARGET_ROOT)\Lib
90 TARGET_LIB = $(TARGET_LIB_ROOT)\Itcl
91 TARGET_INCLUDE_ROOT = $(TARGET_ROOT)\Include
92 TARGET_INCLUDE = $(TARGET_INCLUDE_ROOT)\Itcl
93 TARGET_DOC = $(TARGET_ROOT)\Html
96 # Shared Target Files:
109 # Paths to Build locations of libraries
111 TCLLIBDIR = $(TCLDIR)\Win
112 TKLIBDIR = $(TKDIR)\Win
113 ITCLLIBDIR = $(ITCLDIR)\Win
114 ITKLIBDIR = $(ITKDIR)\Win
136 cd $(IWIDGETSDIR)\Win