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-check.la 25 26AM_CPPFLAGS = -I$(srcdir)/../libntech/libutils \ 27 -I$(srcdir)/../libntech/libcompat \ 28 @CPPFLAGS@ \ 29 $(PCRE_CPPFLAGS) \ 30 $(LIBYAML_CPPFLAGS) \ 31 $(LMDB_CPPFLAGS) \ 32 $(OPENSSL_CPPFLAGS) 33 34AM_CFLAGS = \ 35 @CFLAGS@ \ 36 $(LMDB_CFLAGS) \ 37 $(PCRE_CFLAGS) \ 38 $(LIBYAML_CFLAGS) \ 39 $(PTHREAD_CFLAGS) 40 41AM_LDFLAGS = \ 42 @LDFLAGS@ \ 43 $(PCRE_LDFLAGS) \ 44 $(LIBYAML_LDFLAGS) \ 45 $(LMDB_LDFLAGS) 46 47libcf_check_la_LIBADD = ../libntech/libutils/libutils.la \ 48 $(LMDB_LIBS) \ 49 $(PCRE_LIBS) \ 50 $(LIBYAML_LIBS) \ 51 $(PTHREAD_LIBS) \ 52 $(OPENSSL_LIBS) 53 54libcf_check_la_SOURCES = \ 55 backup.c backup.h \ 56 cf-check.c \ 57 diagnose.c diagnose.h \ 58 lmdump.c lmdump.h \ 59 db_structs.h \ 60 dump.c dump.h \ 61 utilities.c utilities.h \ 62 repair.c repair.h \ 63 replicate_lmdb.c replicate_lmdb.h \ 64 validate.c validate.h \ 65 observables.c observables.h 66 67if !BUILTIN_EXTENSIONS 68bin_PROGRAMS = cf-check 69 70# Workaround for automake madness (try removing it if you want to know why). 71cf_check_CFLAGS = $(AM_CFLAGS) 72 73# Build both a libcf-check.la library, and a cf-check executable 74cf_check_LDADD = libcf-check.la 75endif 76 77CLEANFILES = *.gcno *.gcda 78 79# 80# Some basic clean ups 81# 82MOSTLYCLEANFILES = *~ *.orig *.rej 83