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/
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
LUA_TARGET:=source
+LUCI_CFLAGS:=
PKG_SELECTED_MODULES:=
ifneq ($(CONFIG_PACKAGE_luci-nixio_cyassl),)
NIXIO_TLS:=cyassl
+ LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
endif
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"