diff options
| author | 2024-11-05 02:55:37 +0100 | |
|---|---|---|
| committer | 2024-11-05 02:55:37 +0100 | |
| commit | 7a5e6196a8c5fbb8f52c2ccc0d73a5842818b5c1 (patch) | |
| tree | abd8791b6884df1ffb4baf65f60a2ce5d001460d /tools/Makefile.am | |
| parent | 2405a807b6b5e4f33ac77a985aa77ea6ca27b49f (diff) | |
| download | libirecovery-7a5e6196a8c5fbb8f52c2ccc0d73a5842818b5c1.tar.gz libirecovery-7a5e6196a8c5fbb8f52c2ccc0d73a5842818b5c1.tar.bz2  | |
Fix conditional compile for libreadline
Diffstat (limited to 'tools/Makefile.am')
| -rw-r--r-- | tools/Makefile.am | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am index ebb085c..15e2eb9 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am  | |||
| @@ -2,12 +2,15 @@ if BUILD_TOOLS | |||
| 2 | AM_CPPFLAGS = -I$(top_srcdir)/include | 2 | AM_CPPFLAGS = -I$(top_srcdir)/include | 
| 3 | 3 | ||
| 4 | AM_CFLAGS = $(GLOBAL_CFLAGS) $(libusb_CFLAGS) | 4 | AM_CFLAGS = $(GLOBAL_CFLAGS) $(libusb_CFLAGS) | 
| 5 | AM_LDFLAGS = $(libusb_LIBS) -lreadline | 5 | AM_LDFLAGS = $(libusb_LIBS) | 
| 6 | 6 | ||
| 7 | bin_PROGRAMS = irecovery | 7 | bin_PROGRAMS = irecovery | 
| 8 | 8 | ||
| 9 | irecovery_SOURCES = irecovery.c | 9 | irecovery_SOURCES = irecovery.c | 
| 10 | irecovery_CFLAGS = $(AM_CFLAGS) | 10 | irecovery_CFLAGS = $(AM_CFLAGS) | 
| 11 | irecovery_LDFLAGS = $(AM_LDFLAGS) | 11 | irecovery_LDFLAGS = $(AM_LDFLAGS) | 
| 12 | if HAVE_READLINE | ||
| 13 | irecovery_LDFLAGS += -lreadline | ||
| 14 | endif | ||
| 12 | irecovery_LDADD = $(top_builddir)/src/libirecovery-1.0.la | 15 | irecovery_LDADD = $(top_builddir)/src/libirecovery-1.0.la | 
| 13 | endif | 16 | endif | 
