2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_BUILD_DIR=$(BUILD_DIR)/axTLS
16 PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/axtls
18 PKG_MD5SUM:=af805c76c0da1dbfc0c5e6b8dbd6706a
20 include $(INCLUDE_DIR)/package.mk
22 # set to 1 to enable debugging
25 define Package/libaxtls
28 TITLE:=axTLS embedded SSL library
31 define Package/axhttpd
35 TITLE:=axTLS embedded http/https server
38 define Build/Configure
39 $(INSTALL_DIR) $(PKG_BUILD_DIR)/config
40 $(CP) ./files/axtls-config $(PKG_BUILD_DIR)/config/.config
41 $(CP) ./files/axtls-config.h $(PKG_BUILD_DIR)/config/config.h
44 TARGET_CFLAGS += $(FPIC)
47 # $(MAKE) -C $(PKG_BUILD_DIR)
50 define Package/libaxtls/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_BUILD_DIR)/_stage/libaxtls.so* $(1)/usr/lib/
55 define Package/axhttpd/install
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/_stage/axhttpd $(1)/usr/sbin/
60 $(eval $(call BuildPackage,libaxtls))
61 $(eval $(call BuildPackage,axhttpd))