X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2FMakefile.am;h=0352ea8729b15aef7dc618bea0f9931ac142a9c0;hb=d1e71f42379e8b5cd0748a7aeae8561b02cfe53d;hp=b3ca5ab1399f5f3a8d13eb0a4440ae5355c9c50c;hpb=1ab9694452bf0eca4423a1242935efb36ba64ee0;p=silc.git diff --git a/apps/silcd/Makefile.am b/apps/silcd/Makefile.am index b3ca5ab1..0352ea87 100644 --- a/apps/silcd/Makefile.am +++ b/apps/silcd/Makefile.am @@ -1,14 +1,13 @@ # # Makefile.am # -# Author: Pekka Riikonen +# Author: Pekka Riikonen # -# Copyright (C) 2000 Pekka Riikonen +# Copyright (C) 2000 - 2005 Pekka Riikonen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. +# the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -18,33 +17,69 @@ AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign -bin_PROGRAMS = silcd +sbin_PROGRAMS = silcd silcd_SOURCES = \ protocol.c \ route.c \ - server.c \ packet_send.c \ packet_receive.c \ idlist.c \ command.c \ command_reply.c \ + silcd.c \ + server.c \ + server_util.c \ + server_backup.c \ serverconfig.c \ + server_query.c \ serverid.c \ - silcd.c \ server_version.c -silcd_DEPENDENCIES = ../lib/libsilc.a - -if SILC_BUILD_GMP -LDADD = -L. -L.. -L../lib -lsilc -else -LDADD = -L. -L.. -L../lib -lsilc -L/usr/lib -L/usr/local/lib -lgmp -endif +LIBS = $(SILC_COMMON_LIBS) +LDADD = EXTRA_DIST = *.h -INCLUDES = -I. -I.. -I../lib/silccore -I../lib/silccrypt \ - -I../lib/silcmath -I../lib/silcske -I../lib/silcsim \ - -I../includes -I../lib/silcutil \ - -I../lib/silcmath/gmp -I../lib/trq +install-dirs-server: + -mkdir -p $(docdir) + -mkdir -p $(etcdir) + -mkdir -p $(logsdir) + -mkdir -p $(mandir)/man5 + -mkdir -p $(mandir)/man8 + +doc-install-server: + -$(INSTALL_DATA) $(top_srcdir)/doc/example_silcd.conf $(docdir)/ + -@if test -f $(top_srcdir)/doc/silcd.8 ; then \ + $(INSTALL_DATA) $(top_srcdir)/doc/silcd.8 $(mandir)/man8; \ + fi + -@if test -f $(top_srcdir)/doc/silcd.conf.5 ; then \ + $(INSTALL_DATA) $(top_srcdir)/doc/silcd.conf.5 $(mandir)/man5; \ + fi + +etc-install-server: + -@if test '!' -f $(etcdir)/silcd.conf ; then \ + $(INSTALL_DATA) $(top_srcdir)/doc/example_silcd.conf \ + $(etcdir)/silcd.conf; \ + $(INSTALL_DATA) $(top_srcdir)/doc/silcalgs.conf \ + $(etcdir)/silcalgs.conf; \ + chmod go= $(etcdir)/silcd.conf; \ + fi + +examples-install: + -mkdir -p $(docdir)/examples/ + -$(INSTALL_DATA) $(top_srcdir)/doc/examples/* $(docdir)/examples/ + +generate-server-key: + -@if test '!' -f $(etcdir)/silcd.pub ; then \ + $(sbindir)/silcd -C $(etcdir); \ + fi + +install-data-hook: \ + install-dirs-server \ + doc-install-server \ + etc-install-server \ + examples-install \ + generate-server-key + +include $(top_srcdir)/Makefile.defines.in