Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | Signed-off-by: Ross Burton <ross.burton@arm.com> |
| 3 | |
| 4 | From 3b9d64cf3c33ad235ed444f8715732e509ab023f Mon Sep 17 00:00:00 2001 |
| 5 | From: Ross Burton <ross.burton@arm.com> |
| 6 | Date: Wed, 9 Jun 2021 16:11:25 +0100 |
| 7 | Subject: [PATCH] Build zsyncmake |
| 8 | |
| 9 | No point having the zsync client without the server-side tool. |
| 10 | |
| 11 | Closes #42 |
| 12 | --- |
| 13 | .gitignore | 1 + |
| 14 | src/Makefile.am | 5 ++++- |
| 15 | 2 files changed, 5 insertions(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/.gitignore b/.gitignore |
| 18 | index 36f7bd8..728658e 100644 |
| 19 | --- a/.gitignore |
| 20 | +++ b/.gitignore |
| 21 | @@ -22,3 +22,4 @@ src/librcksum/md4test |
| 22 | src/libzsync/sha1test |
| 23 | stamp-h1 |
| 24 | zsync_curl |
| 25 | +zsyncmake_curl |
| 26 | diff --git a/src/Makefile.am b/src/Makefile.am |
| 27 | index 5f8ff73..ffa2280 100644 |
| 28 | --- a/src/Makefile.am |
| 29 | +++ b/src/Makefile.am |
| 30 | @@ -4,13 +4,16 @@ ACLOCAL_AMFLAGS = -I autotools |
| 31 | |
| 32 | SUBDIRS = librcksum zlib libzsync doc |
| 33 | |
| 34 | -bin_PROGRAMS = zsync_curl |
| 35 | +bin_PROGRAMS = zsync_curl zsyncmake_curl |
| 36 | |
| 37 | zsync_curl_SOURCES = client.c http.c http.h url.c url.h progress.c progress.h base64.c format_string.h zsglobal.h |
| 38 | zsync_curl_LDADD = libzsync/libzsync.a librcksum/librcksum.a zlib/libinflate.a $(LIBOBJS) |
| 39 | |
| 40 | EXTRA_zsync_curl_SOURCES = getaddrinfo.h |
| 41 | |
| 42 | +zsyncmake_curl_SOURCES = make.c makegz.c makegz.h format_string.h |
| 43 | +zsyncmake_curl_LDADD = libzsync/libzsync.a librcksum/librcksum.a zlib/libinflate.a zlib/libdeflate.a -lm |
| 44 | + |
| 45 | # From "GNU autoconf, automake and libtool" Vaughan, Elliston, |
| 46 | # # Tromey and Taylor, publisher New Riders, p.134 |
| 47 | # # They made me do it! :-) |
| 48 | -- |
| 49 | 2.25.1 |
| 50 | |