# # Makefile for the mpwx module. # # WARNING: This makefile assumes that you are using Gnu make! # # The supported values of MX_ARCH are: # # linux # win32 # MX_ARCH = linux MX_INSTALL_DIR = /opt/mx #MX_INSTALL_DIR = d:/opt/mx-1.5.3-2011_04_06 all: MpWx.pyc ifeq ($(MX_ARCH),win32) MPWX_BUILD_PYC = ./mpwx_build_pyc.bat else MPWX_BUILD_PYC = python ../mp/libMp/MpBuildPyc.pyx endif MpWx.pyc: MpWx.py $(MPWX_BUILD_PYC) MpWx clean: -rm *.pyc distclean: clean install: -mkdir $(MX_INSTALL_DIR)/lib -mkdir $(MX_INSTALL_DIR)/lib/mp install -m 644 *.py $(MX_INSTALL_DIR)/lib/mp install -m 644 *.pyc $(MX_INSTALL_DIR)/lib/mp