[package] make zaptel-1.4.x compile again with brcm-2.4
authorFlorian Fainelli <florian@openwrt.org>
Fri, 6 Feb 2009 16:41:03 +0000 (16:41 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 6 Feb 2009 16:41:03 +0000 (16:41 +0000)
SVN-Revision: 14425

libs/zaptel-1.4.x/Makefile

index 2e502431f09c8da87e46b8bcbed6a54367cd1177..bd920e0e536c03b83ea806dd707e06f9a20361ce 100644 (file)
@@ -61,14 +61,19 @@ define Package/zaptel14-libtonezone/description
  This package contains the libraries for accessing zaptel/dummy drivers.
 endef
 
+MAKE_FLAGS:= \
+       ARCH="$(LINUX_KARCH)" \
+       CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
+       LD="$(TARGET_CROSS)ld" \
+       CROSS_COMPILE="$(TARGET_CROSS)" \
+       KVERS="$(LINUX_VERSION)" \
+       KSRC="$(LINUX_DIR)" \
+       TOPDIR_MODULES="zaptel ztdummy" \
+       SUBDIR_MODULES=""
+
 define Build/Compile/kmod
        $(MAKE) -C $(PKG_BUILD_DIR) \
-               ARCH="$(LINUX_KARCH)" \
-               CROSS_COMPILE="$(TARGET_CROSS)" \
-               KVERS="$(LINUX_VERSION)" \
-               KSRC="$(LINUX_DIR)" \
-               TOPDIR_MODULES="zaptel ztdummy" \
-               SUBDIR_MODULES="" \
+               $(MAKE_FLAGS) \
                modules
 endef