aboutsummaryrefslogtreecommitdiffstats
path: root/plpftp
diff options
context:
space:
mode:
Diffstat (limited to 'plpftp')
-rw-r--r--plpftp/Makefile.am14
1 files changed, 12 insertions, 2 deletions
diff --git a/plpftp/Makefile.am b/plpftp/Makefile.am
index 6eb9df7..4ca89a0 100644
--- a/plpftp/Makefile.am
+++ b/plpftp/Makefile.am
@@ -1,8 +1,18 @@
# $Id$
#
-INCLUDES=-I../lib
+INCLUDES=-I$(top_srcdir)/lib
+
+#if HAVE_LIBREADLINE
+LIBREADLINE=-lreadline
+#endif
+#if HAVE_LIBHISTORY
+LIBHISTORY=-lhistory
+#endif
bin_PROGRAMS = plpftp
-plpftp_LDADD = ../lib/libplp.la
+plpftp_LDADD = $(top_srcdir)/lib/libplp.la $(LIBREADLINE) $(LIBHISTORY)
plpftp_SOURCES = ftp.cc main.cc
EXTRA_DIST = ftp.h
+
+maintainer-clean-local:
+ rm -f Makefile.in