summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>1999-10-28 22:21:55 +0200
committerMarco d'Itri <md@linux.it>2013-03-30 02:31:26 +0100
commitbc68e8c4a6448126476c373fd67a76fb2b657835 (patch)
tree3ad57a9c35ffcf6e0c90045341ed9c321048f75b /Makefile
downloadwhois-bc68e8c4a6448126476c373fd67a76fb2b657835.tar.gz
Imported Debian version 4.3.1v4.3.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..35bccca
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+OPTS=-O2
+
+all: whois #pos
+
+whois: whois.c whois.h config.h data.h ip_del.h tld_serv.h
+ $(CC) $(OPTS) whois.c -o whois
+
+mkpasswd:
+ $(CC) $(OPTS) mkpasswd.c -o mkpasswd -lcrypt
+
+ip_del.h: ip_del_list make_ip_del.pl
+ ./make_ip_del.pl < ip_del_list > ip_del.h
+
+tld_serv.h: tld_serv_list make_tld_serv.pl
+ ./make_tld_serv.pl < tld_serv_list > tld_serv.h
+
+distclean: clean
+ rm -f po/whois.pot
+
+clean:
+ rm -f tld_serv.h ip_del.h whois mkpasswd
+ rm -f po/*.mo
+
+test:
+ open -- sh -c "while nc -l -p 43 127.0.0.1; do echo END; done"
+
+pos:
+ cd po && $(MAKE)
+