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
36 TITLE
:=axTLS embedded http
/https server
39 define Build
/Configure
40 $(INSTALL_DIR
) $(PKG_BUILD_DIR
)/config
41 $(CP
) .
/files
/axtls-config
$(PKG_BUILD_DIR
)/config
/.config
42 $(CP
) .
/files
/axtls-config.h
$(PKG_BUILD_DIR
)/config
/config.h
45 TARGET_CFLAGS
+= $(FPIC
)
48 # $(MAKE) -C $(PKG_BUILD_DIR)
51 define Package
/libaxtls
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
53 $(CP
) $(PKG_BUILD_DIR
)/_stage
/libaxtls.so
* $(1)/usr
/lib
/
56 define Package
/axhttpd
/install
57 $(INSTALL_DIR
) $(1)/usr
/sbin
58 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/_stage
/axhttpd
$(1)/usr
/sbin
/
61 $(eval
$(call BuildPackage
,libaxtls
))
62 $(eval
$(call BuildPackage
,axhttpd
))