# # Change the value of the MX_ARCH variable below to match the platform you # are compiling MxTcl for. The available platforms are: # # bsd - Compile for FreeBSD 4.8, NetBSD 1.6, or OpenBSD 3.3 # cygwin - Compile for Cygwin 1.5.x # hpux - Compile for HP 9000/7xx under HP-UX 10.20 # irix - Compile for SGI under Irix 6.5 # irix-gcc - Compile for SGI under Irix 6.5 with GCC # linux - Compile for i386 under Linux 2.0, 2.2, or 2.4 # macosx - Compile for PPC Macintosh under MacOS X. # solaris - Compile for Sun Sparc under Solaris 2.5 # solaris-gcc - Compile for Sun Sparc under Solaris 2.6 with GCC # win32 - Compile for Microsoft Win32 with Visual C++ 4, 5, or 6 # # Note that MxTcl is not necessarily available for all the platforms on which # the MX library is available. # # Also note that you must use a version of [incr tcl] that matches the # version of Tcl/Tk that you are using. The following combinations are # known to work: # # Tcl/Tk 8.4.x with [incr tcl] 3.2 # Tcl/Tk 8.3.x with [incr tcl] 3.2 # Tcl/Tk 8.2.x with [incr tcl] 3.1 # # Warning: MxTcl versions newer than 0.60.0 cannot be used with Cygwin # because Cygwin is currently using Tcl/Tk 8.0 which does not support the # new Tcl stubs interface. This can't be fixed as long as Cygwin stays # with such an old version of Tcl/Tk. # # To build the MX Tcl/Tk interface library and applications, you must first # build the MX library itself. Next set the variables MX_ARCH and MX_INSTALL_DIR # below. Then do a "make depend" and finally a "make". # #ifndef MX_ARCH MX_ARCH = linux #endif ifndef MX_INSTALL_DIR MX_INSTALL_DIR = /opt/mx #MX_INSTALL_DIR = $(HOME)/mxtest #MX_INSTALL_DIR = c:/docume~1/lavender/mxtest #MX_INSTALL_DIR = c:/docume~1/lavender/mxtest_cygwin #MX_INSTALL_DIR = c:/opt/mx endif # # TCL_VERSION should be set to the version number at the end of the # Tcl stub library's name. For example, if the Tcl stub library is # called /usr/lib/libtclstub8.3.a, then TCL_VERSION is 8.3. # # If your Tcl stub library does not have a version number in it, # for example, /usr/lib/libtclstub.a, then leave TCL_VERSION blank. # This is necessary on some versions of Redhat Linux. # TCL_VERSION = 8.6 #TCL_VERSION = 8.5 #TCL_VERSION = 8.4 #TCL_VERSION = 8.3 #TCL_VERSION = 84 #TCL_VERSION = 83 #TCL_VERSION = # # If Tcl/Tk did not originally come with your operating system and you # had to install it by hand, then you may need to assign to the variable # TCL_DIR the name of the top level directory into which you installed # Tcl/Tk. # #TCL_DIR = /usr/local/encap/tcl8.4.6 #TCL_DIR = /usr/local/tcl8.4.1 #TCL_DIR = $(HOME)/local/tcl8.3.4 #TCL_DIR = /usr/X11R6 #TCL_DIR = /usr/local TCL_DIR = c:/Tcl #TCL_DIR = c:/progra~1/tcl # #========================================================================= # # Generally, you should not have to modify anything after this point. # # # The following trick with different levels of .. for LIBMXSRC and MAKEHEAD # is only necessary if you are using relative paths. If you are using # absolute paths, just set MAKEHEAD to $(LIBMXSRC)/Makehead.$(MX_ARCH). LIBMX = ..\\\\..\\\\mx\\\\libMx\\\\libMx.lib LIBMXSRC = ../../mx/libMx MAKEHEAD = ../mx/libMx/Makehead.$(MX_ARCH) #LIBMXSRC = $(HOME)/mx/mx/libMx #MAKEHEAD = $(LIBMXSRC)/Makehead.$(MX_ARCH) #LIBMX = c:\\\\users\\\\lavender\\\\mx\\\\mx\\\\libMx\\\\libMx.lib #LIBMXSRC = c:/users/lavender/mx/mx/libMx #MAKEHEAD = $(LIBMXSRC)/Makehead.$(MX_ARCH) all: build include $(MAKEHEAD) MAKECMD = $(MAKE) MX_ARCH=$(MX_ARCH) MX_INSTALL_DIR=$(MX_INSTALL_DIR) \ LIBMX=$(LIBMX) LIBMXSRC=$(LIBMXSRC) \ TCL_VERSION=$(TCL_VERSION) ITCL_VERSION=$(ITCL_VERSION) \ TCL_DIR=$(TCL_DIR) build: depend_files ( cd libMxTcl ; $(MAKECMD) ) ( cd mxgui ; $(MAKECMD) ) clean: depend_files ( cd libMxTcl ; $(MAKECMD) clean ) ( cd mxgui ; $(MAKECMD) clean ) -$(RM) */core distclean: depend_files ( cd libMxTcl ; $(MAKECMD) distclean ) ( cd mxgui ; $(MAKECMD) distclean ) -$(RM) */core depend: depend_files ( cd libMxTcl ; $(MAKECMD) depend ) install: ( cd libMxTcl ; $(MAKECMD) install ) depend_files: libMxTcl/Makefile.depend libMxTcl/Makefile.depend: touch libMxTcl/Makefile.depend