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