summaryrefslogtreecommitdiff
path: root/ftp/ncftp1/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/ncftp1/files/patch-Makefile')
-rw-r--r--ftp/ncftp1/files/patch-Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/ftp/ncftp1/files/patch-Makefile b/ftp/ncftp1/files/patch-Makefile
new file mode 100644
index 000000000000..7b5e57335254
--- /dev/null
+++ b/ftp/ncftp1/files/patch-Makefile
@@ -0,0 +1,35 @@
+--- Makefile.orig Sun Oct 1 17:50:58 1995
++++ Makefile Sun Oct 19 02:18:45 2003
+@@ -13,7 +13,7 @@
+
+ # Program definitions. See the README, part C.
+ #--------------------------------------------------------------------------
+-PDEFS =
++PDEFS = -DREADLINE
+ #PDEFS = -DGETLINE
+ #PDEFS = -DREADLINE -DCURSES
+ #PDEFS = -DSOCKS
+@@ -24,11 +24,12 @@
+ # Choose your compiler and flags below. Make sure you use an ANSI compiler
+ # that handles new style function declarations and prototypes (gcc should).
+ #--------------------------------------------------------------------------
+-CC = cc
++CC ?= cc
+ #CC = gcc
+
++CFLAGS ?= -O -pipe
+ #CFLAGS = $(TERM_INC) -O
+-CFLAGS = $(TERM_INC) -O2
++CFLAGS += $(TERM_INC)
+ #CFLAGS = $(TERM_INC) -g
+
+ LFLAGS = -s
+@@ -53,7 +54,7 @@
+ # You'll need to know where the Rconnect.o object file is if you want
+ # to use Socks.
+ #--------------------------------------------------------------------------
+-LIBS =
++LIBS = -lreadline
+ #LIBS = -ldbmalloc
+ #LIBS = -lgetline
+ #LIBS = -lreadline -lcurses