| OLD | NEW |
| 1 # Makefile for secure rtp | 1 # Makefile for secure rtp |
| 2 # | 2 # |
| 3 # David A. McGrew | 3 # David A. McGrew |
| 4 # Cisco Systems, Inc. | 4 # Cisco Systems, Inc. |
| 5 | 5 |
| 6 # targets: | 6 # targets: |
| 7 # | 7 # |
| 8 # runtest runs test applications | 8 # runtest runs test applications |
| 9 # test builds test applications | 9 # test builds test applications |
| 10 # libcrypt.a static library implementing crypto engine | 10 # libcrypt.a static library implementing crypto engine |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 CC = @CC@ | 44 CC = @CC@ |
| 45 INCDIR = -Icrypto/include -I$(srcdir)/include -I$(srcdir)/crypto/include | 45 INCDIR = -Icrypto/include -I$(srcdir)/include -I$(srcdir)/crypto/include |
| 46 DEFS = @DEFS@ | 46 DEFS = @DEFS@ |
| 47 CPPFLAGS= -fPIC @CPPFLAGS@ | 47 CPPFLAGS= -fPIC @CPPFLAGS@ |
| 48 CFLAGS = @CFLAGS@ | 48 CFLAGS = @CFLAGS@ |
| 49 LIBS = @LIBS@ | 49 LIBS = @LIBS@ |
| 50 LDFLAGS = -L. @LDFLAGS@ | 50 LDFLAGS = -L. @LDFLAGS@ |
| 51 COMPILE = $(CC) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CFLAGS) | 51 COMPILE = $(CC) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CFLAGS) |
| 52 SRTPLIB = -lsrtp | 52 SRTPLIB = -lsrtp |
| 53 | 53 |
| 54 AR = @AR@ |
| 54 RANLIB = @RANLIB@ | 55 RANLIB = @RANLIB@ |
| 55 INSTALL = @INSTALL@ | 56 INSTALL = @INSTALL@ |
| 56 | 57 |
| 57 # EXE defines the suffix on executables - it's .exe for Windows, and | 58 # EXE defines the suffix on executables - it's .exe for Windows, and |
| 58 # null on linux, bsd, and OS X and other OSes. | 59 # null on linux, bsd, and OS X and other OSes. |
| 59 EXE = @EXE@ | 60 EXE = @EXE@ |
| 60 | 61 |
| 61 # gdoi is the group domain of interpretation for isakmp, a group key | 62 # gdoi is the group domain of interpretation for isakmp, a group key |
| 62 # management system which can provide keys for srtp | 63 # management system which can provide keys for srtp |
| 63 gdoi = @GDOI_OBJS@ | 64 gdoi = @GDOI_OBJS@ |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 kernel = crypto/kernel/crypto_kernel.o crypto/kernel/alloc.o \ | 134 kernel = crypto/kernel/crypto_kernel.o crypto/kernel/alloc.o \ |
| 134 crypto/kernel/key.o $(rng) $(err) # $(ust) | 135 crypto/kernel/key.o $(rng) $(err) # $(ust) |
| 135 | 136 |
| 136 cryptobj = $(ciphers) $(hashes) $(math) $(stat) $(kernel) $(replay) | 137 cryptobj = $(ciphers) $(hashes) $(math) $(stat) $(kernel) $(replay) |
| 137 | 138 |
| 138 # libsrtp.a (implements srtp processing) | 139 # libsrtp.a (implements srtp processing) |
| 139 | 140 |
| 140 srtpobj = srtp/srtp.o srtp/ekt.o | 141 srtpobj = srtp/srtp.o srtp/ekt.o |
| 141 | 142 |
| 142 libsrtp.a: $(srtpobj) $(cryptobj) $(gdoi) | 143 libsrtp.a: $(srtpobj) $(cryptobj) $(gdoi) |
| 143 » ar cr libsrtp.a $^ | 144 » $(AR) cr libsrtp.a $^ |
| 144 $(RANLIB) libsrtp.a | 145 $(RANLIB) libsrtp.a |
| 145 | 146 |
| 146 libsrtp.$(SHAREDLIBSUFFIX): $(srtpobj) $(cryptobj) $(gdoi) | 147 libsrtp.$(SHAREDLIBSUFFIX): $(srtpobj) $(cryptobj) $(gdoi) |
| 147 $(CC) -shared -o $@ $(SHAREDLIB_LDFLAGS) \ | 148 $(CC) -shared -o $@ $(SHAREDLIB_LDFLAGS) \ |
| 148 $^ $(LDFLAGS) $(LIBS) | 149 $^ $(LDFLAGS) $(LIBS) |
| 149 if [ -n "$(SHAREDLIBVERSION)" ]; then \ | 150 if [ -n "$(SHAREDLIBVERSION)" ]; then \ |
| 150 ln -sfn $@ libsrtp.$(SHAREDLIBSUFFIXNOVER); \ | 151 ln -sfn $@ libsrtp.$(SHAREDLIBSUFFIXNOVER); \ |
| 151 fi | 152 fi |
| 152 | 153 |
| 153 shared_library: libsrtp.$(SHAREDLIBSUFFIX) | 154 shared_library: libsrtp.$(SHAREDLIBSUFFIX) |
| 154 | 155 |
| 155 # libcryptomath.a contains general-purpose routines that are used to | 156 # libcryptomath.a contains general-purpose routines that are used to |
| 156 # generate tables and verify cryptoalgorithm implementations - this | 157 # generate tables and verify cryptoalgorithm implementations - this |
| 157 # library is not meant to be included in production code | 158 # library is not meant to be included in production code |
| 158 | 159 |
| 159 cryptomath = crypto/math/math.o crypto/math/gf2_8.o | 160 cryptomath = crypto/math/math.o crypto/math/gf2_8.o |
| 160 | 161 |
| 161 libcryptomath.a: $(cryptomath) | 162 libcryptomath.a: $(cryptomath) |
| 162 » ar cr libcryptomath.a $(cryptomath) | 163 » $(AR) cr libcryptomath.a $(cryptomath) |
| 163 $(RANLIB) libcryptomath.a | 164 $(RANLIB) libcryptomath.a |
| 164 | 165 |
| 165 | 166 |
| 166 # test applications | 167 # test applications |
| 167 ifneq (1, $(USE_OPENSSL)) | 168 ifneq (1, $(USE_OPENSSL)) |
| 168 AES_CALC = crypto/test/aes_calc$(EXE) | 169 AES_CALC = crypto/test/aes_calc$(EXE) |
| 169 endif | 170 endif |
| 170 | 171 |
| 171 crypto_testapp = $(AES_CALC) crypto/test/cipher_driver$(EXE) \ | 172 crypto_testapp = $(AES_CALC) crypto/test/cipher_driver$(EXE) \ |
| 172 crypto/test/datatypes_driver$(EXE) crypto/test/kernel_driver$(EXE) \ | 173 crypto/test/datatypes_driver$(EXE) crypto/test/kernel_driver$(EXE) \ |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 distname = libsrtp-$(shell cat VERSION) | 312 distname = libsrtp-$(shell cat VERSION) |
| 312 | 313 |
| 313 distribution: runtest superclean | 314 distribution: runtest superclean |
| 314 if ! [ -f VERSION ]; then exit 1; fi | 315 if ! [ -f VERSION ]; then exit 1; fi |
| 315 if [ -f ../$(distname).tgz ]; then \ | 316 if [ -f ../$(distname).tgz ]; then \ |
| 316 mv ../$(distname).tgz ../$(distname).tgz.bak; \ | 317 mv ../$(distname).tgz ../$(distname).tgz.bak; \ |
| 317 fi | 318 fi |
| 318 cd ..; tar cvzf $(distname).tgz libsrtp | 319 cd ..; tar cvzf $(distname).tgz libsrtp |
| 319 | 320 |
| 320 # EOF | 321 # EOF |
| OLD | NEW |