From: Florian Fainelli Date: Tue, 28 Aug 2007 12:41:39 +0000 (+0000) Subject: Add a PyMod template for python related modules X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=39cbeec7b212bb977bd5943c02bca5e38ff02f01;p=openwrt%2Fstaging%2Fkaloz.git Add a PyMod template for python related modules SVN-Revision: 8522 --- diff --git a/include/package.mk b/include/package.mk index 1e18f8cd81..4b811f8af6 100644 --- a/include/package.mk +++ b/include/package.mk @@ -128,6 +128,15 @@ define Build/Compile $(call Build/Compile/Default,) endef +define Build/Compile/PyMod + cd $(PKG_BUILD_DIR); \ + $(1) \ + CFLAGS='-I$(STAGING_DIR)/usr/include' \ + LDFLAGS='$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib' \ + $(STAGING_DIR)/usr/bin/hostpython ./setup.py $(2) \ + --prefix=$(PKG_INSTALL_DIR)/usr +endef + $(PACKAGE_DIR): mkdir -p $@