1# 2# Copyright 2021 Northern.tech AS 3# 4# This file is part of CFEngine 3 - written and maintained by Northern.tech AS. 5# 6# This program is free software; you can redistribute it and/or modify it 7# under the terms of the GNU General Public License as published by the 8# Free Software Foundation; version 3. 9# 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14# 15# You should have received a copy of the GNU General Public License 16# along with this program; if not, write to the Free Software 17# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 18# 19# To the extent this program is licensed as part of the Enterprise 20# versions of CFEngine, the applicable Commercial Open Source License 21# (COSL) may apply to this file if you as a licensee so wish it. See 22# included file COSL.txt. 23# 24noinst_LTLIBRARIES = libcf-execd.la libcf-execd-test.la 25 26AM_CPPFLAGS = \ 27 -I$(srcdir)/../libpromises \ 28 -I$(srcdir)/../libntech/libutils \ 29 -I$(srcdir)/../libcfnet \ 30 -I$(srcdir)/../libenv \ 31 -I$(srcdir)/../cf-check \ 32 $(PCRE_CPPFLAGS) \ 33 $(OPENSSL_CPPFLAGS) \ 34 $(ENTERPRISE_CPPFLAGS) 35 36AM_CFLAGS = \ 37 $(PCRE_CFLAGS) \ 38 $(OPENSSL_CFLAGS) \ 39 $(PTHREAD_CFLAGS) \ 40 $(ENTERPRISE_CFLAGS) 41 42libcf_execd_la_LIBADD = ../libpromises/libpromises.la 43 44libcf_execd_la_SOURCES = \ 45 cf-execd.c cf-execd.h \ 46 cf-execd-runner.c cf-execd-runner.h \ 47 exec-config.c exec-config.h \ 48 execd-config.c execd-config.h 49 50if !WINDOWS 51libcf_execd_la_SOURCES += cf-execd-runagent.c cf-execd-runagent.h 52endif 53 54libcf_execd_test_la_SOURCES = $(libcf_execd_la_SOURCES) 55libcf_execd_test_la_LIBADD = $(libcf_execd_la_LIBADD) 56libcf_execd_test_la_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_CF_EXECD 57 58if !BUILTIN_EXTENSIONS 59bin_PROGRAMS = cf-execd 60# Workaround for automake madness (try removing it if you want to know why). 61cf_execd_CFLAGS = $(AM_CFLAGS) 62cf_execd_LDADD = libcf-execd.la 63endif 64 65CLEANFILES = *.gcno *.gcda 66 67# 68# Some basic clean ups 69# 70MOSTLYCLEANFILES = *~ *.orig *.rej 71