Skip to content

Commit

Permalink
polarssl will be compiled into acl by typing make build_one polarssl=on
Browse files Browse the repository at this point in the history
  • Loading branch information
ubuntu14 committed Aug 14, 2016
1 parent 46b3669 commit 314076a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ MAKE_ARGS =

SYSLIB = -lpthread -lz
LDFLAGS = -shared
polarssl =

ifeq ($(CC),)
CC = g++
Expand All @@ -43,6 +44,10 @@ ifeq ($(RANLIB),)
RANLIB = ranlib
endif

ifeq ($(findstring on, $(polarssl)), on)
CFLAGS += -DHAS_POLARSSL
endif

ifeq ($(findstring Linux, $(OSNAME)), Linux)
ifeq ($(findstring i686, $(OSTYPE)), i686)
RPATH = linux32
Expand Down Expand Up @@ -81,9 +86,15 @@ VERSION = 3.1.5
help:
@(echo "usage: make help|all|all_lib|all_samples|clean|install|uninstall|uninstall_all|build_bin|build_src|build_one")
all_lib:
@if test "$(polarssl)" = "on"; then \
export ENV_FLAGS=$(ENV_FLAGS):HAS_POLARSSL; \
else \
export ENV_FLAGS=$(ENV_FLAGS); \
fi
@(cd lib_acl; make pch)
@(cd lib_acl; make $(MAKE_ARGS))
@(cd lib_protocol; make $(MAKE_ARGS))
@(cd lib_acl_cpp; make check)
@(cd lib_acl_cpp; make pch)
@(cd lib_acl_cpp; make $(MAKE_ARGS))
@(cd lib_rpc; make $(MAKE_ARGS))
Expand Down
14 changes: 14 additions & 0 deletions lib_acl_cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ SYSLIB =
CHECKSYSRES = @echo "Unknow system type!";exit 1
UNIXNAME = $(shell uname -sm)
UNIXTYPE = LINUX
polarssl =

ifeq ($(CC),)
CC = g++
Expand All @@ -51,6 +52,11 @@ endif

ifeq ($(findstring HAS_POLARSSL, $(FLAGS)), HAS_POLARSSL)
CFLAGS += -DHAS_POLARSSL
polarssl = on
endif

ifeq ($(findstring on, $(polarssl)), on)
CFLAGS += -DHAS_POLARSSL
endif

ifeq ($(findstring clang++, $(CC)), clang++)
Expand Down Expand Up @@ -221,6 +227,14 @@ shared: depends pch $(OBJS_DST)
fi

depends: $(OBJS_DEF)
check:
@if test -n $(polarssl) && test "$(polarssl)" = "on"; then \
rm -f Debug/polarssl_io.o; \
rm -f Debug/polarssl_conf.o; \
rm -f Debug/polarssl_io.inc; \
rm -f Debug/polarssl_conf.inc; \
fi

pch: src/acl_stdafx.hpp
rm -f $(PCH)
@if test "$(UNIXTYPE)" = "LINUX" || test "$(UNIXTYPE)" = "FREEBSD" \
Expand Down
4 changes: 4 additions & 0 deletions lib_acl_cpp/changes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
�޸���ʷ�б���

-----------------------------------------------------------------------
433) 2016.8.14
433.1) feature: Makefile ������������ѡ������ڱ���ʱ�� make polarssl=on
��ʽ�� POLARSSL �����ȥ

432) 2016.7.29
432.1) feature: mime �������������� get_plain_body/get_html_body ������ȡ��ͬ���͵�
432.2) feature: json ���Ӷ� double ���͵�֧��
Expand Down

0 comments on commit 314076a

Please sign in to comment.