add axtls embedded ssl/tls library.
[openwrt/svn-archive/archive.git] / openwrt / package / axtls / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=axtls
6 PKG_VERSION:=0.95
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=cd887f379f303dd3ef691d8641307f0e
9
10 PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
11 PKG_SOURCE_URL:=http://www.leroc.com.au/axTLS/
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/axTLS
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,LIBAXTLS,libaxtls,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19 $(eval $(call PKG_template,AWHTTPD,awhttpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 $(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
23 $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
24 touch $@
25
26 $(PKG_BUILD_DIR)/.built:
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 CC=$(TARGET_CC) \
29 OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS=""
30 touch $@
31
32 $(IPKG_LIBAXTLS):
33 install -d -m0755 $(IDIR_LIBAXTLS)/usr/lib
34 install -m0755 $(PKG_BUILD_DIR)/libaxtls.so $(IDIR_LIBAXTLS)/usr/lib/
35 $(RSTRIP) $(IDIR_LIBAXTLS)
36 $(IPKG_BUILD) $(IDIR_LIBAXTLS) $(PACKAGE_DIR)
37
38 $(IPKG_AWHTTPD):
39 install -d -m0755 $(IDIR_AWHTTPD)/usr/sbin
40 install -m0755 $(PKG_BUILD_DIR)/awhttpd $(IDIR_AWHTTPD)/usr/sbin/
41 $(RSTRIP) $(IDIR_AWHTTPD)
42 $(IPKG_BUILD) $(IDIR_AWHTTPD) $(PACKAGE_DIR)