X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2FMakefile.am;h=4a1046501d0c574de5a87fa38262ad0ea0904849;hb=805fddcf6431e784f9f77114782a90c9d12f9cbe;hp=9310116e8636285a418ac202f6259224d8942769;hpb=a2cb5f1de35a626aa31334597b62da132446a7c9;p=silc.git diff --git a/apps/silcd/Makefile.am b/apps/silcd/Makefile.am index 9310116e..4a104650 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 - 2007 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,25 +17,69 @@ AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign -bin_PROGRAMS = silcd +sbin_PROGRAMS = silcd silcd_SOURCES = \ - protocol.c \ + serverconfig.c \ + silcd.c \ + server_version.c \ + serverid.c \ route.c \ - server.c \ idlist.c \ + server_query.c \ + server.c \ + packet_send.c \ + packet_receive.c \ command.c \ command_reply.c \ - serverconfig.c \ - serverid.c \ - silcd.c \ - server_version.c + server_util.c \ + server_backup.c \ + server_http.c + +LIBS = $(SILC_COMMON_LIBS) +LDADD = + +EXTRA_DIST = silc-server.spec *.h + +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/ -LDADD = -L. -L.. -L../lib -lsilc +generate-server-key: + -@if test '!' -f $(etcdir)/silcd.pub ; then \ + $(sbindir)/silcd -C $(etcdir); \ + fi -EXTRA_DIST = *.h +install-data-hook: \ + install-dirs-server \ + doc-install-server \ + etc-install-server \ + examples-install \ + generate-server-key -INCLUDES = -I. -I.. -I../lib/silccore -I../lib/silccrypt \ - -I../lib/silcmath -I../lib/silcske -I../lib/silcsim \ - -I../includes \ - -I../lib/silcmath/gmp +include $(top_srcdir)/Makefile.defines.in