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