summarylogtreecommitdiffstats
path: root/build.patch
blob: b0b954ee315f7a7c8ebdd71b3a6e1e72e77feec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/Makefile b/Makefile
index 35191af..1d4492b 100644
--- a/Makefile
+++ b/Makefile
@@ -34,8 +34,9 @@ version.c
 TARGETS=socklab
 OBJS	= $(SOURCES:.c=.o)
 
-LDFLAGS	= -lreadline -lhistory
-CFLAGS	= -Wall
+# Let packagers define LDFLAGS and CFLAGS if they want to
+LDFLAGS := -lreadline -lhistory $(LDFLAGS)
+CFLAGS  := -Wall $(CFLAGS)
 
 # Adaptation a Darwin / MacOS X
 ifeq ($(shell uname), Darwin)
@@ -51,11 +52,6 @@ LDFLAGS	= -lreadline
 endif
 endif
 
-# Adaptation a Linux
-ifeq ($(shell uname), Linux)
-LDFLAGS	+= -ltermcap
-endif
-
 # Adaptation a FreeBSD
 # Attention : il faut utiliser gmake...
 ifeq ($(shell uname),FreeBSD)