# # Change the value of the MX_ARCH variable below to match the platform you # are compiling the MX Python interface for. The available platforms are: # # bsd - Compile for FreeBSD 4.8, NetBSD 1.6, and 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 or 2.2 # macosx - Compile for PPC Macintosh under MacOS X # qnx - Compile for i386 under QNX Neutrino 6.2 # 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.0, 5.0, or 6.0 # # Note that the MX Python interface is not necessarily available for all # the platforms on which the MX library is available. # # To build the MX Python interface library and applications, you must first # build the MX library itself. Next set the variables MX_ARCH and LIBMXSRC # below. Then do a "make depend" and finally a "make". # MX_ARCH = linux MX_INSTALL_DIR = /opt/mx #MX_INSTALL_DIR = c:/opt/mx #MX_INSTALL_DIR = $(HOME)/mxtest #MX_INSTALL_DIR = c:/docume~1/lavender/mxtest #MX_INSTALL_DIR = c:/docume~1/lavender/mxtest_cygwin # 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) all: build include $(MAKEHEAD) MAKECMD = $(MAKE) MX_ARCH=$(MX_ARCH) MX_INSTALL_DIR=$(MX_INSTALL_DIR) \ LIBMX=$(LIBMX) LIBMXSRC=$(LIBMXSRC) build: depend_files ( cd libMp ; $(MAKECMD) ) clean: depend_files cleanmisc ( cd libMp ; $(MAKECMD) clean ) distclean: depend_files cleanmisc ( cd libMp ; $(MAKECMD) distclean ) cleanmisc: -$(RM) */*.lib -$(RM) */*.exp -$(RM) */*.ilk -$(RM) */*.pdb -$(RM) */*.bak -$(RM) */core depend: depend_files ( cd libMp ; $(MAKECMD) depend ) install: depend_files ( cd libMp ; $(MAKECMD) install ) depend_files: libMp/Makefile.depend libMp/Makefile.depend: touch libMp/Makefile.depend