openh323: cleanup, fix cflags
authorFelix Fietkau <nbd@openwrt.org>
Tue, 31 Jul 2007 11:22:44 +0000 (11:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 31 Jul 2007 11:22:44 +0000 (11:22 +0000)
SVN-Revision: 8274

libs/openh323/Makefile

index d6700bafa190481b34af2a4ef2303883fd80a4b0..de55816cb22803287c32947b4a46125f5593df67 100644 (file)
@@ -29,21 +29,18 @@ define Package/libopenh323
   URL:=http://www.openh323.org/
 endef
 
-define Build/Configure
-       $(call Build/Configure/Default, \
-               --enable-minsize \
-               --enable-audio \
-               --disable-video \
-               , \
-               CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti"  \
-       )
-endef
-
-define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               $(TARGET_CONFIGURE_OPTS) \
-               optnoshared
-endef
+CONFIGURE_ARGS += \
+       --enable-minsize \
+       --enable-audio \
+       --disable-video
+
+CONFIGURE_VARS += \
+       CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
+
+MAKE_FLAGS += \
+       CFLAGS="$(TARGET_CFLAGS)" \
+       CCFLAGS="$(TARGET_CFLAGS)" \
+       optnoshared
 
 define Build/InstallDev
        ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)