diff options
author | David M. Lee <dlee@digium.com> | 2013-01-07 14:24:28 -0600 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-01-07 14:24:28 -0600 |
commit | f3ab456a17af1c89a6e3be4d20c5944853df1cb0 (patch) | |
tree | d00e1a332cd038a6d906a1ea0ac91e1a4458e617 /third_party/build/srtp/Makefile |
Import pjproject-2.0.1
Diffstat (limited to 'third_party/build/srtp/Makefile')
-rw-r--r-- | third_party/build/srtp/Makefile | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/third_party/build/srtp/Makefile b/third_party/build/srtp/Makefile new file mode 100644 index 0000000..17cb421 --- /dev/null +++ b/third_party/build/srtp/Makefile @@ -0,0 +1,87 @@ +include ../../../build.mak +include ../../../build/common.mak + +export LIBDIR := ../../lib + +RULES_MAK := $(PJDIR)/build/rules.mak + +export SRTP_LIB := ../../lib/libsrtp-$(TARGET_NAME)$(LIBEXT) + +############################################################################### +# Gather all flags. +# +export _CFLAGS := $(CC_INC). $(CC_INC)../../srtp/crypto/include \ + $(CC_INC)../../srtp/include \ + $(CC_INC)../../../pjlib/include \ + $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \ + $(CFLAGS) +export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ + $(HOST_CXXFLAGS) $(CXXFLAGS) +export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ + $(LDFLAGS) + +# libcrypt.a (the crypto engine) +ciphers = crypto/cipher/cipher.o crypto/cipher/null_cipher.o \ + crypto/cipher/aes.o crypto/cipher/aes_icm.o \ + crypto/cipher/aes_cbc.o + +hashes = crypto/hash/null_auth.o crypto/hash/sha1.o \ + crypto/hash/hmac.o crypto/hash/auth.o # crypto/hash/tmmhv2.o + +replay = crypto/replay/rdb.o crypto/replay/rdbx.o \ + crypto/replay/ut_sim.o + +math = crypto/math/datatypes.o crypto/math/stat.o + +ust = crypto/ust/ust.o + +rng = crypto/rng/rand_source.o crypto/rng/prng.o crypto/rng/ctr_prng.o + +err = pjlib/srtp_err.o + +kernel = crypto/kernel/crypto_kernel.o crypto/kernel/alloc.o \ + crypto/kernel/key.o $(rng) $(err) # $(ust) + +srtpobj = srtp/srtp.o + +cryptobj = $(ciphers) $(hashes) $(math) $(stat) $(kernel) $(replay) + +export SRTP_SRCDIR = ../../srtp +export SRTP_OBJS = $(cryptobj) $(srtpobj) +export SRTP_CFLAGS = -DHAVE_CONFIG_H $(_CFLAGS) + + +export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT +############################################################################### +# Main entry +# +# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. +# +TARGETS := libsrtp + +all: $(TARGETS) + +doc: + cd .. && doxygen docs/doxygen.cfg + +dep: depend +distclean: realclean + +.PHONY: dep depend libsrtp clean realclean distclean + +libsrtp: + $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $(SRTP_LIB) + +clean print_lib: + $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $@ + +realclean: + $(subst @@,$(subst /,$(HOST_PSEP),.ilbc-$(TARGET_NAME).depend),$(HOST_RMR)) + + $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $@ + +depend: + $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $@ + + + |