--- Makefile.orig Mon Nov 28 20:06:56 2005 +++ Makefile Mon Nov 28 20:06:38 2005 @@ -6,23 +6,23 @@ #whois_LDADD += -lnsl -lsocket # FreeBSD -#LDFLAGS=-L/usr/local/lib -lgnugetopt -lintl -#CFLAGS=-I/usr/local/include +LDFLAGS+=-L/usr/local/lib +CFLAGS+=-I/usr/local/include # OS/2 EMX #LDFLAGS=-lsocket -Zexe -Dstrncasecmp=strnicmp -ifdef HAVE_LIBIDN +.ifdef HAVE_LIBIDN whois_LDADD += -lidn whois_CFLAGS += -DHAVE_LIBIDN -endif +.endif -ifdef HAVE_XCRYPT +.ifdef HAVE_XCRYPT mkpasswd_LDADD += -lxcrypt mkpasswd_CFLAGS += -DHAVE_XCRYPT -else +.else mkpasswd_LDADD += -lcrypt -endif +.endif PERL := perl @@ -49,9 +49,8 @@ $(PERL) -w make_tld_serv.pl < tld_serv_list > tld_serv.h install: whois - install -m 0755 whois $(BASEDIR)$(prefix)/bin/ - install -m 0644 whois.1 $(BASEDIR)$(prefix)/share/man/man1/ - cd po && $(MAKE) $@ + install -m 0755 whois ${PREFIX}/bin/mwhois + install -m 0644 whois.1 ${PREFIX}/man/man1/mwhois.1 install-mkpasswd: mkpasswd install -m 0755 mkpasswd $(BASEDIR)$(prefix)/bin/