clamd/Makefile.am
e3aaff8e
 #
c442ca9c
 #  Copyright (C) 2013-2019 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
 #  Copyright (C) 2007-2013 Sourcefire, Inc.
 #  Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
e3aaff8e
 #
 #  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.
 #
 #  This program is distributed in the hope that it will be useful,
 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 #  GNU General Public License for more details.
 #
 #  You should have received a copy of the GNU General Public License
 #  along with this program; if not, write to the Free Software
48b7b4a7
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 #  MA 02110-1301, USA.
e3aaff8e
 
d71dd823
 if BUILD_CLAMD
e3aaff8e
 
 sbin_PROGRAMS = clamd
 
 clamd_SOURCES = \
60ba0f86
     $(top_srcdir)/shared/output.c \
     $(top_srcdir)/shared/output.h \
f4265a5a
     $(top_srcdir)/shared/idmef_logging.c \
     $(top_srcdir)/shared/idmef_logging.h \
60ba0f86
     $(top_srcdir)/shared/optparser.c \
     $(top_srcdir)/shared/optparser.h \
     $(top_srcdir)/shared/getopt.c \
     $(top_srcdir)/shared/getopt.h \
     $(top_srcdir)/shared/misc.c \
     $(top_srcdir)/shared/misc.h \
e3aaff8e
     clamd.c \
     tcpserver.c \
     tcpserver.h \
     localserver.c \
     localserver.h \
81131381
     session.c \
     session.h \
c238ac42
     thrmgr.c \
     thrmgr.h \
8ac7b1ce
     server-th.c \
e3aaff8e
     server.h \
     scanner.c \
     scanner.h \
     others.c \
     others.h \
de1271a1
     shared.h \
51b69a09
     onaccess_others.c \
     onaccess_others.h \
5ae59b95
     onaccess_fan.c \
     onaccess_fan.h \
     onaccess_ddd.c \
     onaccess_ddd.h \
     onaccess_hash.c \
7ee85372
     onaccess_hash.h \
     onaccess_scth.c \
9a1b6ef5
     onaccess_scth.h \
     priv_fts.h
 
 if !SYSTEM_LFS_FTS
 clamd_SOURCES += fts.c
 endif
e3aaff8e
 
cf8a925f
 AM_CFLAGS=@WERR_CFLAGS@
 
b68375fd
 if INSTALL_SYSTEMD_UNITS
 systemdsystemunit_DATA = clamav-daemon.socket clamav-daemon.service
 endif
 
e3aaff8e
 endif
 
60ba0f86
 LIBS = $(top_builddir)/libclamav/libclamav.la @CLAMD_LIBS@ @THREAD_LIBS@
3b9e9443
 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@
1eb943f3
 
 # it does support --help and --version but with the default config file
 # it outputs an error message which tells us to edit the config files
 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT=clamd$(EXEEXT)
dfc0c031
 CLEANFILES=*.gcda *.gcno