diff options
author | Marco d'Itri <md@linux.it> | 1999-11-15 00:59:07 +0100 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2013-03-30 02:31:26 +0100 |
commit | 6d3af40a958d3847456488393dc6e614e7c7cb5b (patch) | |
tree | 61324876b0fef138f49ac2c474c00c2886e09b5d /Makefile | |
parent | bc68e8c4a6448126476c373fd67a76fb2b657835 (diff) | |
download | whois-6d3af40a958d3847456488393dc6e614e7c7cb5b.tar.gz |
Imported Debian version 4.4.1v4.4.1
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -1,24 +1,38 @@ +prefix=/usr/local + OPTS=-O2 +# Solaris +#LDFLAGS=-lnsl -lsocket + all: whois #pos -whois: whois.c whois.h config.h data.h ip_del.h tld_serv.h - $(CC) $(OPTS) whois.c -o whois +whois: whois.c whois.h config.h data.h as_del.h ip_del.h tld_serv.h + $(CC) $(OPTS) whois.c -o whois $(LDFLAGS) mkpasswd: $(CC) $(OPTS) mkpasswd.c -o mkpasswd -lcrypt +as_del.h: as_del_list make_as_del.pl + perl make_as_del.pl < as_del_list > as_del.h + ip_del.h: ip_del_list make_ip_del.pl - ./make_ip_del.pl < ip_del_list > ip_del.h + perl 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 + perl make_tld_serv.pl < tld_serv_list > tld_serv.h + +install: whois + install --strip -m 0755 whois $(BASEDIR)$(prefix)/bin/ + install --strip -m 0644 whois.1 $(BASEDIR)$(prefix)/man/man1/ + cd po && $(MAKE) $@ + distclean: clean rm -f po/whois.pot clean: - rm -f tld_serv.h ip_del.h whois mkpasswd + rm -f as_del.h ip_del.h tld_serv.h whois mkpasswd rm -f po/*.mo test: |