libamsel: cleanup, fix cflags
authorFelix Fietkau <nbd@openwrt.org>
Tue, 31 Jul 2007 10:31:53 +0000 (10:31 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 31 Jul 2007 10:31:53 +0000 (10:31 +0000)
SVN-Revision: 8268

libs/libamsel/Makefile

index a0da70ca5d175d459b28ed9d26c429e36f347d72..09291dc0e3db08fcfec2115f5f8e50f4ee6cb24d 100644 (file)
@@ -34,15 +34,11 @@ endef
 define Build/Configure
 endef
 
-define Build/Compile
-       rm -rf $(PKG_INSTALL_DIR)
-       mkdir -p $(PKG_INSTALL_DIR)
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               $(TARGET_CONFIGURE_OPTS) \
-               LDIR=$(PKG_BUILD_DIR) \
-               PREFIX="$(PKG_INSTALL_DIR)/usr" \
-               all install
-endef
+MAKE_FLAGS += \
+       CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \
+       LDIR=$(PKG_BUILD_DIR) \
+       PREFIX="$(PKG_INSTALL_DIR)/usr" \
+       all install
 
 define Build/InstallDev
        mkdir -p $(STAGING_DIR)/usr/include