summaryrefslogtreecommitdiff
path: root/misc/ipbt/files/patch-Makefile
blob: 8e7f9b3fa528b436ad939164f49b0d7f1c956506 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- Makefile.orig	2020-01-02 09:04:45 UTC
+++ Makefile
@@ -1,3 +1,5 @@
+NCURSES_LIB=	-lncursesw
+
 .c.o:
 	$(CC) $(CFLAGS) $(XFLAGS) -c $*.c
 
@@ -7,7 +9,7 @@ IPBT = be_none.o fromucs.o ipbt.o ldiscucs.o localenc.
        wcwidth.o xenc.o
 
 ipbt: $(IPBT)
-	$(CC) $(LFLAGS) -o ipbt $(IPBT) -lm -lncursesw
+	$(CC) $(LFLAGS) -o ipbt $(IPBT) -lm $(NCURSES_LIB)
 
 be_none.o: be_none.c putty.h puttyps.h unix.h charset.h network.h misc.h \
   puttymem.h