# # mxidl is an MX interface to the IDL programming language from # ITT Visual Information Solutions. # # Change the value of the MX_ARCH variable below to match the platform you # are compiling the MX IDL interface for. The available platforms are: # # linux # win32 # # To build the MX IDL 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-1.5.5-2012_08_16 #MX_INSTALL_DIR = c:/opt/mx_32-1.5.5-2012_09_05 # 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 libMxIdl ; $(MAKECMD) ) clean: depend_files cleanmisc ( cd libMxIdl ; $(MAKECMD) clean ) distclean: depend_files cleanmisc ( cd libMxIdl ; $(MAKECMD) distclean ) cleanmisc: -$(RM) */*.lib -$(RM) */*.exp -$(RM) */*.ilk -$(RM) */*.pdb -$(RM) */*.bak -$(RM) */core depend: depend_files ( cd libMxIdl ; $(MAKECMD) depend ) install: depend_files ( cd libMxIdl ; $(MAKECMD) install ) depend_files: libMxIdl/Makefile.depend libMxIdl/Makefile.depend: touch libMxIdl/Makefile.depend