diff options
author | Marco d'Itri <md@linux.it> | 2009-12-20 03:01:40 +0100 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2013-03-30 02:31:38 +0100 |
commit | 15c8d523f76befe5128f2147c98730fd03b44dab (patch) | |
tree | f8edf6cbd2424ca8d2c0bd2c9190dfdd63ac53ed /Makefile | |
parent | e8806bc5090585fb90ca0f6a299ca013e4d61d11 (diff) | |
download | whois-15c8d523f76befe5128f2147c98730fd03b44dab.tar.gz |
Imported Debian version 5.0.0v5.0.0
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 23 insertions, 9 deletions
@@ -5,10 +5,15 @@ CFLAGS = -g -O2 PERL = perl INSTALL = install +whois_OBJECTS := whois.o utils.o +mkpasswd_OBJECTS := mkpasswd.o utils.o + +############################################################################## # Solaris -#whois_LDADD += -lnsl -lsocket +#whois_LDADD += -lnsl -lsocket -liconv # FreeBSD +#whois_LDADD += -liconv #LIBS += -L/usr/local/lib -lintl #INCLUDES += -I/usr/local/include @@ -16,6 +21,9 @@ INSTALL = install #whois_LDADD += -lsocket #LDFLAGS += -Zexe -Dstrncasecmp=strnicmp +# OS X +#whois_LDADD += -liconv + ifdef CONFIG_FILE DEFS += -DCONFIG_FILE=\"$(CONFIG_FILE)\" endif @@ -29,6 +37,11 @@ whois_LDADD += -lidn DEFS += -DHAVE_LIBIDN endif +ifdef HAVE_ICONV +whois_OBJECTS += simple_recode.o +DEFS += -DHAVE_ICONV +endif + ifdef HAVE_XCRYPT mkpasswd_LDADD += -lxcrypt DEFS += -DHAVE_XCRYPT @@ -36,11 +49,9 @@ else mkpasswd_LDADD += -lcrypt endif +############################################################################## all: Makefile.depend whois mkpasswd #pos -whois_OBJECTS := whois.o utils.o -mkpasswd_OBJECTS := mkpasswd.o utils.o - ############################################################################## %.o: %.c $(CC) $(DEFS) $(INCLUDES) $(CFLAGS) -c $< @@ -53,19 +64,22 @@ mkpasswd: $(mkpasswd_OBJECTS) ############################################################################## as_del.h: as_del_list make_as_del.pl - $(PERL) -w make_as_del.pl < as_del_list > $@ + $(PERL) -w make_as_del.pl < $< > $@ as32_del.h: as32_del_list make_as32_del.pl - $(PERL) -w make_as32_del.pl < as32_del_list > $@ + $(PERL) -w make_as32_del.pl < $< > $@ ip_del.h: ip_del_list make_ip_del.pl - $(PERL) -w make_ip_del.pl < ip_del_list > $@ + $(PERL) -w make_ip_del.pl < $< > $@ ip6_del.h: ip6_del_list make_ip6_del.pl - $(PERL) -w make_ip6_del.pl < ip6_del_list > $@ + $(PERL) -w make_ip6_del.pl < $< > $@ tld_serv.h: tld_serv_list make_tld_serv.pl - $(PERL) -w make_tld_serv.pl < tld_serv_list > $@ + $(PERL) -w make_tld_serv.pl < $< > $@ + +servers_charset.h: servers_charset_list make_servers_charset.pl + $(PERL) -w make_servers_charset.pl < $< > $@ ############################################################################## install: install-whois install-mkpasswd #install-pos |