diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-01-23 20:17:42 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-01-23 20:17:42 +0000 |
commit | 78a92f35ea2593b35b1aa1312aeab4999a0811cf (patch) | |
tree | 302edf3b1c571fa11a169ae3d74eb7f2d30a523b /third_party/build/srtp/Makefile | |
parent | 19ab0113d44a93f576eabe71bd966603fc4c81ef (diff) |
Ticket #61: imported libsrtp into third_party directory (backported from srtp branch)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1730 74dad513-b988-da41-8d7b-12977e46ad98
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 00000000..7b4d1b41 --- /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_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \ + $(CFLAGS) $(CC_INC). $(CC_INC)../../srtp/crypto/include \ + $(CC_INC)../../srtp/include \ + $(CC_INC)../../../pjlib/include +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 $@ + echo '$(SRTP_LIB): .libsrtp-$(TARGET_NAME).depend' >> .libsrtp-$(TARGET_NAME).depend; \ + + + |