summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2003-12-01 18:58:54 +0100
committerMarco d'Itri <md@linux.it>2013-03-30 02:31:30 +0100
commit548793b0a4bb4006db12dc1e4d86b7e7ce2fcd9a (patch)
treeadaf19a08352b1aa28b4e05f1de79257090c4dc6 /Makefile
parent971989c7dff8d815f1f0ddcb614fad00939738b4 (diff)
downloadwhois-548793b0a4bb4006db12dc1e4d86b7e7ce2fcd9a.tar.gz
Imported Debian version 4.6.9v4.6.9
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f6bc87f..7e28a62 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-prefix=/usr/local
+prefix ?= /usr/local
OPTS=-O2
@@ -15,10 +15,15 @@ OPTS=-O2
# OS/2 EMX
#LDFLAGS=-lsocket -Zexe -Dstrncasecmp=strnicmp
+ifdef HAVE_LIBIDN
+LIBIDN += -lidn
+CFLAGS += -DHAVE_LIBIDN
+endif
+
all: whois #pos
whois: whois.c whois.h config.h data.h as_del.h ip_del.h tld_serv.h
- $(CC) $(CFLAGS) $(OPTS) whois.c -o whois $(LDFLAGS)
+ $(CC) $(CFLAGS) $(OPTS) whois.c -o whois $(LDFLAGS) $(LIBIDN)
mkpasswd: mkpasswd.c
$(CC) $(CFLAGS) $(OPTS) mkpasswd.c -o mkpasswd -lcrypt