makefile cleanups, make sure that the build system cflags are used

git-svn-id: svn://svn.openwrt.org/openwrt/packages@11328 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2008-06-02 15:50:59 +00:00
parent 075fe11e80
commit 0e20a96603

View File

@ -32,17 +32,8 @@ endef
define Build/Configure
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CROSS)gcc" \
LD="$(TARGET_CROSS)ld" \
AR="$(TARGET_CROSS)ar rcu" \
RANLIB="$(TARGET_CROSS)ranlib" \
INSTALL_ROOT=/usr \
LUAINC=$(STAGING_DIR)/usr/include \
OS=Linux
$(STRIP) $(PKG_BUILD_DIR)/posix.so
endef
MAKE_FLAGS += \
OS=Linux
define Package/luaposix/install
$(INSTALL_DIR) $(1)/usr/lib/lua