Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1 | # Makefile for secure rtp |
| 2 | # |
| 3 | # David A. McGrew |
| 4 | # Cisco Systems, Inc. |
| 5 | |
| 6 | # targets: |
| 7 | # |
| 8 | # runtest runs test applications |
| 9 | # test builds test applications |
| 10 | # libcrypt.a static library implementing crypto engine |
| 11 | # libsrtp.a static library implementing srtp |
jfigus | 5004642 | 2013-10-10 08:35:16 -0400 | [diff] [blame] | 12 | # libsrtp.so shared library implementing srtp |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 13 | # clean removes objects, libs, and executables |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 14 | # distribution cleans and builds a .tgz |
| 15 | # tags builds etags file from all .c and .h files |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 16 | |
jfigus | 8c36da2 | 2013-10-01 16:41:19 -0400 | [diff] [blame] | 17 | USE_OPENSSL = @USE_OPENSSL@ |
Saúl Ibarra Corretgé | b86063c | 2014-10-01 11:23:24 +0200 | [diff] [blame^] | 18 | HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@ |
jfigus | 8c36da2 | 2013-10-01 16:41:19 -0400 | [diff] [blame] | 19 | |
David McGrew | 5529f10 | 2005-09-29 11:25:10 +0000 | [diff] [blame] | 20 | .PHONY: all test build_table_apps |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 21 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 22 | all: test |
| 23 | |
David McGrew | 5529f10 | 2005-09-29 11:25:10 +0000 | [diff] [blame] | 24 | runtest: build_table_apps test |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 25 | @echo "running libsrtp test applications..." |
Marcus Sundberg | b0a9311 | 2005-10-02 21:11:33 +0000 | [diff] [blame] | 26 | crypto/test/cipher_driver$(EXE) -v >/dev/null |
| 27 | crypto/test/kernel_driver$(EXE) -v >/dev/null |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 28 | test/rdbx_driver$(EXE) -v >/dev/null |
| 29 | test/srtp_driver$(EXE) -v >/dev/null |
| 30 | test/roc_driver$(EXE) -v >/dev/null |
David McGrew | 11b2e41 | 2006-03-16 19:13:31 +0000 | [diff] [blame] | 31 | test/replay_driver$(EXE) -v >/dev/null |
David McGrew | 0cb86ee | 2006-07-07 15:46:57 +0000 | [diff] [blame] | 32 | test/dtls_srtp_driver$(EXE) >/dev/null |
Rich Rodriguez | 29b152e | 2014-07-01 06:01:33 +0000 | [diff] [blame] | 33 | crypto/test/rand_gen_soak$(EXE) -v >/dev/null |
Jonathan Lennox | f464743 | 2010-05-14 23:17:51 +0000 | [diff] [blame] | 34 | cd test; $(abspath $(srcdir))/test/rtpw_test.sh >/dev/null |
jfigus | 8c36da2 | 2013-10-01 16:41:19 -0400 | [diff] [blame] | 35 | ifeq (1, $(USE_OPENSSL)) |
| 36 | cd test; $(abspath $(srcdir))/test/rtpw_test_gcm.sh >/dev/null |
| 37 | endif |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 38 | @echo "libsrtp test applications passed." |
Marcus Sundberg | 589127e | 2005-09-29 13:34:06 +0000 | [diff] [blame] | 39 | $(MAKE) -C crypto runtest |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 40 | |
| 41 | # makefile variables |
| 42 | |
Marcus Sundberg | 589127e | 2005-09-29 13:34:06 +0000 | [diff] [blame] | 43 | CC = @CC@ |
Marcus Sundberg | 8ebe5ce | 2005-09-29 13:59:56 +0000 | [diff] [blame] | 44 | INCDIR = -Icrypto/include -I$(srcdir)/include -I$(srcdir)/crypto/include |
| 45 | DEFS = @DEFS@ |
| 46 | CPPFLAGS= @CPPFLAGS@ |
Marcus Sundberg | 589127e | 2005-09-29 13:34:06 +0000 | [diff] [blame] | 47 | CFLAGS = @CFLAGS@ |
| 48 | LIBS = @LIBS@ |
| 49 | LDFLAGS = @LDFLAGS@ -L. |
Marcus Sundberg | 8ebe5ce | 2005-09-29 13:59:56 +0000 | [diff] [blame] | 50 | COMPILE = $(CC) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CFLAGS) |
Marcus Sundberg | 589127e | 2005-09-29 13:34:06 +0000 | [diff] [blame] | 51 | SRTPLIB = -lsrtp |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 52 | |
Marcus Sundberg | 589127e | 2005-09-29 13:34:06 +0000 | [diff] [blame] | 53 | RANLIB = @RANLIB@ |
| 54 | INSTALL = @INSTALL@ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 55 | |
Marcus Sundberg | 95e2372 | 2005-10-02 19:44:28 +0000 | [diff] [blame] | 56 | # EXE defines the suffix on executables - it's .exe for Windows, and |
| 57 | # null on linux, bsd, and OS X and other OSes. |
| 58 | EXE = @EXE@ |
Cullen Jennings | ef29a90 | 2013-04-30 12:54:54 -0600 | [diff] [blame] | 59 | |
Marcus Sundberg | 95e2372 | 2005-10-02 19:44:28 +0000 | [diff] [blame] | 60 | # gdoi is the group domain of interpretation for isakmp, a group key |
| 61 | # management system which can provide keys for srtp |
| 62 | gdoi = @GDOI_OBJS@ |
Cullen Jennings | ef29a90 | 2013-04-30 12:54:54 -0600 | [diff] [blame] | 63 | |
Marcus Sundberg | 5c714e4 | 2005-10-03 15:16:06 +0000 | [diff] [blame] | 64 | # Random source. |
| 65 | RNG_OBJS = @RNG_OBJS@ |
jfigus | 0d3a268 | 2013-04-02 15:42:37 -0400 | [diff] [blame] | 66 | HMAC_OBJS = @HMAC_OBJS@ |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 67 | RNG_EXTRA_OBJS = @RNG_EXTRA_OBJS@ |
jfigus | 0d3a268 | 2013-04-02 15:42:37 -0400 | [diff] [blame] | 68 | AES_ICM_OBJS = @AES_ICM_OBJS@ |
Marcus Sundberg | 95e2372 | 2005-10-02 19:44:28 +0000 | [diff] [blame] | 69 | |
Marcus Sundberg | 8ebe5ce | 2005-09-29 13:59:56 +0000 | [diff] [blame] | 70 | srcdir = @srcdir@ |
| 71 | top_srcdir = @top_srcdir@ |
| 72 | top_builddir = @top_builddir@ |
| 73 | VPATH = @srcdir@ |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 74 | prefix = @prefix@ |
| 75 | exec_prefix = @exec_prefix@ |
| 76 | includedir = @includedir@ |
| 77 | libdir = @libdir@ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 78 | |
Saúl Ibarra Corretgé | b86063c | 2014-10-01 11:23:24 +0200 | [diff] [blame^] | 79 | ifeq (1, $(HAVE_PKG_CONFIG)) |
| 80 | pkgconfigdir = $(libdir)/pkgconfig |
| 81 | pkgconfig_DATA = libsrtp.pc |
| 82 | endif |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 83 | |
| 84 | # implicit rules for object files and test apps |
| 85 | |
| 86 | %.o: %.c |
Marcus Sundberg | 8ebe5ce | 2005-09-29 13:59:56 +0000 | [diff] [blame] | 87 | $(COMPILE) -c $< -o $@ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 88 | |
Marcus Sundberg | 1f84c40 | 2005-10-06 13:59:21 +0000 | [diff] [blame] | 89 | %$(EXE): %.c |
Marcus Sundberg | 95e2372 | 2005-10-02 19:44:28 +0000 | [diff] [blame] | 90 | $(COMPILE) $(LDFLAGS) $< -o $@ $(SRTPLIB) $(LIBS) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 91 | |
| 92 | |
| 93 | # libcrypt.a (the crypto engine) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 94 | ciphers = crypto/cipher/cipher.o crypto/cipher/null_cipher.o \ |
jfigus | 0d3a268 | 2013-04-02 15:42:37 -0400 | [diff] [blame] | 95 | $(AES_ICM_OBJS) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 96 | |
jfigus | 0d3a268 | 2013-04-02 15:42:37 -0400 | [diff] [blame] | 97 | hashes = crypto/hash/null_auth.o crypto/hash/auth.o \ |
| 98 | $(HMAC_OBJS) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 99 | |
| 100 | replay = crypto/replay/rdb.o crypto/replay/rdbx.o \ |
| 101 | crypto/replay/ut_sim.o |
| 102 | |
| 103 | math = crypto/math/datatypes.o crypto/math/stat.o |
| 104 | |
| 105 | ust = crypto/ust/ust.o |
| 106 | |
jfigus | a14b5a0 | 2013-03-29 12:24:12 -0400 | [diff] [blame] | 107 | rng = crypto/rng/$(RNG_OBJS) $(RNG_EXTRA_OBJS) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 108 | |
| 109 | err = crypto/kernel/err.o |
| 110 | |
| 111 | kernel = crypto/kernel/crypto_kernel.o crypto/kernel/alloc.o \ |
| 112 | crypto/kernel/key.o $(rng) $(err) # $(ust) |
| 113 | |
| 114 | cryptobj = $(ciphers) $(hashes) $(math) $(stat) $(kernel) $(replay) |
| 115 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 116 | # libsrtp.a (implements srtp processing) |
| 117 | |
David McGrew | 79870d6 | 2007-06-15 18:17:39 +0000 | [diff] [blame] | 118 | srtpobj = srtp/srtp.o srtp/ekt.o |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 119 | |
| 120 | libsrtp.a: $(srtpobj) $(cryptobj) $(gdoi) |
Marcus Sundberg | 8ebe5ce | 2005-09-29 13:59:56 +0000 | [diff] [blame] | 121 | ar cr libsrtp.a $^ |
Marcus Sundberg | 589127e | 2005-09-29 13:34:06 +0000 | [diff] [blame] | 122 | $(RANLIB) libsrtp.a |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 123 | |
jfigus | 5004642 | 2013-10-10 08:35:16 -0400 | [diff] [blame] | 124 | libsrtp.so: $(srtpobj) $(cryptobj) $(gdoi) |
jfigus | 2b48665 | 2014-07-24 15:01:41 -0400 | [diff] [blame] | 125 | $(CC) -shared -Wl,-soname,libsrtp.so \ |
| 126 | -o libsrtp.so $^ $(LDFLAGS) |
jfigus | 5004642 | 2013-10-10 08:35:16 -0400 | [diff] [blame] | 127 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 128 | # libcryptomath.a contains general-purpose routines that are used to |
| 129 | # generate tables and verify cryptoalgorithm implementations - this |
| 130 | # library is not meant to be included in production code |
| 131 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 132 | cryptomath = crypto/math/math.o crypto/math/gf2_8.o |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 133 | |
| 134 | libcryptomath.a: $(cryptomath) |
| 135 | ar cr libcryptomath.a $(cryptomath) |
Marcus Sundberg | 589127e | 2005-09-29 13:34:06 +0000 | [diff] [blame] | 136 | $(RANLIB) libcryptomath.a |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 137 | |
| 138 | |
| 139 | # test applications |
jfigus | 0d3a268 | 2013-04-02 15:42:37 -0400 | [diff] [blame] | 140 | ifneq (1, $(USE_OPENSSL)) |
| 141 | AES_CALC = crypto/test/aes_calc$(EXE) |
| 142 | endif |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 143 | |
jfigus | 0d3a268 | 2013-04-02 15:42:37 -0400 | [diff] [blame] | 144 | crypto_testapp = $(AES_CALC) crypto/test/cipher_driver$(EXE) \ |
Marcus Sundberg | b0a9311 | 2005-10-02 21:11:33 +0000 | [diff] [blame] | 145 | crypto/test/datatypes_driver$(EXE) crypto/test/kernel_driver$(EXE) \ |
| 146 | crypto/test/rand_gen$(EXE) crypto/test/sha1_driver$(EXE) \ |
Rich Rodriguez | 29b152e | 2014-07-01 06:01:33 +0000 | [diff] [blame] | 147 | crypto/test/stat_driver$(EXE) crypto/test/rand_gen_soak$(EXE) |
Marcus Sundberg | b0a9311 | 2005-10-02 21:11:33 +0000 | [diff] [blame] | 148 | |
| 149 | testapp = $(crypto_testapp) test/srtp_driver$(EXE) test/replay_driver$(EXE) \ |
David McGrew | 0cb86ee | 2006-07-07 15:46:57 +0000 | [diff] [blame] | 150 | test/roc_driver$(EXE) test/rdbx_driver$(EXE) test/rtpw$(EXE) \ |
David McGrew | 5506a8b | 2006-07-18 17:42:42 +0000 | [diff] [blame] | 151 | test/dtls_srtp_driver$(EXE) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 152 | |
Marcus Sundberg | 1f84c40 | 2005-10-06 13:59:21 +0000 | [diff] [blame] | 153 | $(testapp): libsrtp.a |
| 154 | |
David McGrew | 79bd301 | 2006-07-17 20:41:21 +0000 | [diff] [blame] | 155 | test/rtpw$(EXE): test/rtpw.c test/rtp.c test/getopt_s.c |
| 156 | $(COMPILE) $(LDFLAGS) -o $@ $^ $(LIBS) $(SRTPLIB) |
| 157 | |
| 158 | test/srtp_driver$(EXE): test/srtp_driver.c test/getopt_s.c |
| 159 | $(COMPILE) $(LDFLAGS) -o $@ $^ $(LIBS) $(SRTPLIB) |
| 160 | |
| 161 | test/rdbx_driver$(EXE): test/rdbx_driver.c test/getopt_s.c |
| 162 | $(COMPILE) $(LDFLAGS) -o $@ $^ $(LIBS) $(SRTPLIB) |
| 163 | |
| 164 | test/dtls_srtp_driver$(EXE): test/dtls_srtp_driver.c test/getopt_s.c |
Marcus Sundberg | 8ebe5ce | 2005-09-29 13:59:56 +0000 | [diff] [blame] | 165 | $(COMPILE) $(LDFLAGS) -o $@ $^ $(LIBS) $(SRTPLIB) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 166 | |
| 167 | test: $(testapp) |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 168 | @echo "Build done. Please run '$(MAKE) runtest' to run self tests." |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 169 | |
| 170 | memtest: test/srtp_driver |
| 171 | @test/srtp_driver -v -d "alloc" > tmp |
| 172 | @grep freed tmp | wc -l > freed |
| 173 | @grep allocated tmp | wc -l > allocated |
| 174 | @echo "checking for memory leaks (only works with --enable-stdout)" |
| 175 | cmp -s allocated freed |
| 176 | @echo "passed (same number of alloc() and dealloc() calls found)" |
| 177 | @rm freed allocated tmp |
| 178 | |
| 179 | # tables_apps are used to generate the tables used in the crypto |
| 180 | # implementations; these need only be generated during porting, not |
| 181 | # for building libsrtp or the test applications |
| 182 | |
David McGrew | 5529f10 | 2005-09-29 11:25:10 +0000 | [diff] [blame] | 183 | table_apps = tables/aes_tables |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 184 | |
David McGrew | 5529f10 | 2005-09-29 11:25:10 +0000 | [diff] [blame] | 185 | build_table_apps: $(table_apps) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 186 | |
| 187 | # in the tables/ subdirectory, we use libcryptomath instead of libsrtp |
| 188 | |
| 189 | tables/%: tables/%.c libcryptomath.a |
Marcus Sundberg | 8ebe5ce | 2005-09-29 13:59:56 +0000 | [diff] [blame] | 190 | $(COMPILE) $(LDFLAGS) $< -o $@ $(LIBS) libcryptomath.a |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 191 | |
| 192 | # the target 'plot' runs the timing test (test/srtp_driver -t) then |
| 193 | # uses gnuplot to produce plots of the results - see the script file |
| 194 | # 'timing' |
| 195 | |
| 196 | plot: test/srtp_driver |
| 197 | test/srtp_driver -t > timing.dat |
| 198 | |
| 199 | |
| 200 | # bookkeeping: tags, clean, and distribution |
| 201 | |
| 202 | tags: |
| 203 | etags */*.[ch] */*/*.[ch] |
| 204 | |
| 205 | |
| 206 | # documentation - the target libsrtpdoc builds a PDF file documenting |
| 207 | # libsrtp |
| 208 | |
| 209 | libsrtpdoc: |
Marcus Sundberg | 589127e | 2005-09-29 13:34:06 +0000 | [diff] [blame] | 210 | $(MAKE) -C doc |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 211 | |
Jonathan Lennox | fc65552 | 2010-05-21 17:45:35 +0000 | [diff] [blame] | 212 | .PHONY: clean superclean distclean install |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 213 | |
| 214 | install: |
Jonathan Lennox | a7897f0 | 2010-05-14 23:34:10 +0000 | [diff] [blame] | 215 | @if [ -r $(DESTDIR)$(includedir)/srtp/srtp.h ]; then \ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 216 | echo "you should run 'make uninstall' first"; exit 1; \ |
| 217 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 218 | $(INSTALL) -d $(DESTDIR)$(includedir)/srtp |
| 219 | $(INSTALL) -d $(DESTDIR)$(libdir) |
Jonathan Lennox | f464743 | 2010-05-14 23:17:51 +0000 | [diff] [blame] | 220 | cp $(srcdir)/include/*.h $(DESTDIR)$(includedir)/srtp |
| 221 | cp $(srcdir)/crypto/include/*.h $(DESTDIR)$(includedir)/srtp |
| 222 | if [ "$(srcdir)" != "." ]; then cp crypto/include/*.h $(DESTDIR)$(includedir)/srtp; fi |
David McGrew | 7c7ff31 | 2006-02-23 14:11:11 +0000 | [diff] [blame] | 223 | if [ -f libsrtp.a ]; then cp libsrtp.a $(DESTDIR)$(libdir)/; fi |
jfigus | 5004642 | 2013-10-10 08:35:16 -0400 | [diff] [blame] | 224 | if [ -f libsrtp.so ]; then cp libsrtp.so $(DESTDIR)$(libdir)/; fi |
Saúl Ibarra Corretgé | b86063c | 2014-10-01 11:23:24 +0200 | [diff] [blame^] | 225 | if [ "$(pkgconfig_DATA)" != "" ]; then \ |
| 226 | $(INSTALL) -d $(DESTDIR)$(pkgconfigdir); \ |
| 227 | cp $(srcdir)/$(pkgconfig_DATA) $(DESTDIR)$(pkgconfigdir)/; \ |
| 228 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 229 | |
| 230 | uninstall: |
Jonathan Lennox | a7897f0 | 2010-05-14 23:34:10 +0000 | [diff] [blame] | 231 | rm -f $(DESTDIR)$(includedir)/srtp/*.h |
| 232 | rm -f $(DESTDIR)$(libdir)/libsrtp.a |
jfigus | 5004642 | 2013-10-10 08:35:16 -0400 | [diff] [blame] | 233 | rm -f $(DESTDIR)$(libdir)/libsrtp.so |
Jonathan Lennox | a7897f0 | 2010-05-14 23:34:10 +0000 | [diff] [blame] | 234 | -rmdir $(DESTDIR)$(includedir)/srtp |
Saúl Ibarra Corretgé | b86063c | 2014-10-01 11:23:24 +0200 | [diff] [blame^] | 235 | if [ "$(pkgconfig_DATA)" != "" ]; then \ |
| 236 | rm -f $(DESTDIR)$(pkgconfigdir)/$(pkgconfig_DATA); \ |
| 237 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 238 | |
| 239 | clean: |
David McGrew | 5506a8b | 2006-07-18 17:42:42 +0000 | [diff] [blame] | 240 | rm -rf $(cryptobj) $(srtpobj) $(cryptomath) TAGS \ |
jfigus | 5004642 | 2013-10-10 08:35:16 -0400 | [diff] [blame] | 241 | libcryptomath.a libsrtp.a libsrtp.so core *.core test/core |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 242 | for a in * */* */*/*; do \ |
| 243 | if [ -f "$$a~" ] ; then rm -f $$a~; fi; \ |
| 244 | done; |
| 245 | for a in $(testapp) $(table_apps); do rm -rf $$a$(EXE); done |
| 246 | rm -rf *.pict *.jpg *.dat |
| 247 | rm -rf freed allocated tmp |
Marcus Sundberg | 589127e | 2005-09-29 13:34:06 +0000 | [diff] [blame] | 248 | $(MAKE) -C doc clean |
| 249 | $(MAKE) -C crypto clean |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 250 | |
| 251 | |
| 252 | superclean: clean |
David McGrew | e11033e | 2005-09-26 20:41:14 +0000 | [diff] [blame] | 253 | rm -rf crypto/include/config.h config.log config.cache config.status \ |
Jonathan Lennox | fc65552 | 2010-05-21 17:45:35 +0000 | [diff] [blame] | 254 | Makefile crypto/Makefile doc/Makefile \ |
| 255 | .gdb_history test/.gdb_history .DS_Store |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 256 | rm -rf autom4te.cache |
| 257 | |
Jonathan Lennox | fc65552 | 2010-05-21 17:45:35 +0000 | [diff] [blame] | 258 | distclean: superclean |
| 259 | |
Cullen Jennings | ef29a90 | 2013-04-30 12:54:54 -0600 | [diff] [blame] | 260 | distname = libsrtp-$(shell cat VERSION) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 261 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame] | 262 | distribution: runtest superclean |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 263 | if ! [ -f VERSION ]; then exit 1; fi |
| 264 | if [ -f ../$(distname).tgz ]; then \ |
| 265 | mv ../$(distname).tgz ../$(distname).tgz.bak; \ |
| 266 | fi |
Cullen Jennings | ef29a90 | 2013-04-30 12:54:54 -0600 | [diff] [blame] | 267 | cd ..; tar cvzf $(distname).tgz libsrtp |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 268 | |
Marcus Sundberg | 8ebe5ce | 2005-09-29 13:59:56 +0000 | [diff] [blame] | 269 | # EOF |