fix rp-l2tp build
authorFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 20:54:50 +0000 (20:54 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 20:54:50 +0000 (20:54 +0000)
SVN-Revision: 6679

net/rp-l2tp/Makefile

index 951cc7b8f6bae4b3b211dae64878ba587f35a297..12eaa616fe624a5056191ffc3a587d783341746d 100644 (file)
@@ -50,13 +50,11 @@ define Package/rp-l2tpd-mod-ppp
 endef
 
 # uses GNU configure
+MAKE_FLAGS += \
+       DESTDIR="$(PKG_INSTALL_DIR)" \
+       all install
 
-define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               $(TARGET_CONFIGURE_OPTS) \
-               DESTDIR="$(PKG_INSTALL_DIR)" \
-               all install
-endef
+TARGET_CFLAGS := -I$(PKG_BUILD_DIR)/libevent $(TARGET_CFLAGS)
 
 define Package/rp-l2tpd/install        
        $(INSTALL_DIR) $(1)/etc