~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.0.1/third_party/build/srtp/Makefile

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include ../../../build.mak
2
 
include ../../../build/common.mak
3
 
 
4
 
export LIBDIR := ../../lib
5
 
 
6
 
RULES_MAK := $(PJDIR)/build/rules.mak
7
 
 
8
 
export SRTP_LIB := ../../lib/libsrtp-$(TARGET_NAME)$(LIBEXT)
9
 
 
10
 
###############################################################################
11
 
# Gather all flags.
12
 
#
13
 
export _CFLAGS  := $(CC_INC). $(CC_INC)../../srtp/crypto/include \
14
 
                   $(CC_INC)../../srtp/include \
15
 
                   $(CC_INC)../../../pjlib/include \
16
 
                   $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \
17
 
                   $(CFLAGS)
18
 
export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \
19
 
                   $(HOST_CXXFLAGS) $(CXXFLAGS)
20
 
export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \
21
 
                   $(LDFLAGS)
22
 
 
23
 
# libcrypt.a (the crypto engine)
24
 
ciphers = crypto/cipher/cipher.o crypto/cipher/null_cipher.o      \
25
 
          crypto/cipher/aes.o crypto/cipher/aes_icm.o             \
26
 
          crypto/cipher/aes_cbc.o
27
 
 
28
 
hashes  = crypto/hash/null_auth.o crypto/hash/sha1.o \
29
 
          crypto/hash/hmac.o crypto/hash/auth.o # crypto/hash/tmmhv2.o
30
 
 
31
 
replay  = crypto/replay/rdb.o crypto/replay/rdbx.o               \
32
 
          crypto/replay/ut_sim.o
33
 
 
34
 
math    = crypto/math/datatypes.o crypto/math/stat.o
35
 
 
36
 
ust     = crypto/ust/ust.o
37
 
 
38
 
rng     = crypto/rng/rand_source.o crypto/rng/prng.o crypto/rng/ctr_prng.o
39
 
 
40
 
err     = pjlib/srtp_err.o
41
 
 
42
 
kernel  = crypto/kernel/crypto_kernel.o  crypto/kernel/alloc.o   \
43
 
          crypto/kernel/key.o $(rng) $(err) # $(ust)
44
 
 
45
 
srtpobj = srtp/srtp.o
46
 
 
47
 
cryptobj =  $(ciphers) $(hashes) $(math) $(stat) $(kernel) $(replay)
48
 
 
49
 
export SRTP_SRCDIR = ../../srtp
50
 
export SRTP_OBJS = $(cryptobj) $(srtpobj)
51
 
export SRTP_CFLAGS = -DHAVE_CONFIG_H $(_CFLAGS)
52
 
 
53
 
 
54
 
export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
55
 
###############################################################################
56
 
# Main entry
57
 
#
58
 
# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.
59
 
#
60
 
TARGETS := libsrtp
61
 
 
62
 
all: $(TARGETS)
63
 
 
64
 
doc:
65
 
        cd .. && doxygen docs/doxygen.cfg
66
 
 
67
 
dep: depend
68
 
distclean: realclean
69
 
 
70
 
.PHONY: dep depend libsrtp clean realclean distclean
71
 
 
72
 
libsrtp:
73
 
        $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $(SRTP_LIB)
74
 
 
75
 
clean print_lib:
76
 
        $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $@
77
 
 
78
 
realclean:
79
 
        $(subst @@,$(subst /,$(HOST_PSEP),.ilbc-$(TARGET_NAME).depend),$(HOST_RMR))
80
 
 
81
 
        $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $@
82
 
 
83
 
depend:
84
 
        $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $@