Moar Makefile fixes
authorSteven Barth <steven@midlink.org>
Sun, 7 Jun 2009 13:25:25 +0000 (13:25 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 7 Jun 2009 13:25:25 +0000 (13:25 +0000)
contrib/package/cyassl-luci/Makefile
contrib/package/luci/Makefile

index ab78909c06390ea217a40f30c3ec0b06aa80d757..d782f8e21c0c2d2787ac4be349ca4a951e6c93c1 100644 (file)
@@ -43,7 +43,9 @@ CONFIGURE_ARGS += --without-zlib --enable-fastmath
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/ctaocrypt
+       $(INSTALL_DIR) $(1)/usr/include/cyassl
        $(CP) $(PKG_BUILD_DIR)/ctaocrypt/include/*.h $(1)/usr/include/ctaocrypt
+       $(CP) -R $(PKG_BUILD_DIR)/include/* $(1)/usr/include/cyassl/
        
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/src/.libs/libcyassl.{a,so*} $(1)/usr/lib/
index 7303c0302b35ec74a51c9c710f490967a0777296..35a47479d4aab547c15ec086e48c9322c9614513 100644 (file)
@@ -27,6 +27,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 LUA_TARGET:=source
+LUCI_CFLAGS:=
 PKG_SELECTED_MODULES:=
 
 
@@ -281,6 +282,7 @@ endif
 
 ifneq ($(CONFIG_PACKAGE_luci-nixio_cyassl),)
   NIXIO_TLS:=cyassl
+  LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
 endif
 
 
@@ -1077,7 +1079,7 @@ MAKE_FLAGS += \
        MODULES="$(PKG_SELECTED_MODULES)" \
        LUA_TARGET="$(LUA_TARGET)" \
        LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
-       CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
+       CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
        LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
        NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"