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# 24# automake does not support "maude_LIBS" variables. We can only alter 25# the generic LIBS one. In case the functions are mocked in the test 26# implementation, then we are pretty sure that they will be overriden by 27# our local implementation. So we include *everything*... 28LIBS = $(CORE_LIBS) 29AM_LDFLAGS = $(CORE_LDFLAGS) 30 31# Those tests use stub functions interposition which does not work (yet) 32# under OS X. Another way of stubbing functions from libpromises is needed. 33if !XNU 34AM_CPPFLAGS = $(CORE_CPPFLAGS) \ 35 $(ENTERPRISE_CPPFLAGS) \ 36 -I../../libpromises \ 37 -I../../libntech/libutils \ 38 -I../../libcfnet \ 39 -I../../libpromises 40 41EXTRA_DIST = \ 42 run_db_load.sh \ 43 run_lastseen_threaded_load.sh 44 45TESTS = \ 46 run_db_load.sh \ 47 run_lastseen_threaded_load.sh 48 49check_PROGRAMS = db_load lastseen_load lastseen_threaded_load 50 51 52db_load_SOURCES = db_load.c 53db_load_LDADD = ../unit/libdb.la 54 55 56lastseen_load_SOURCES = lastseen_load.c \ 57 $(srcdir)/../../libpromises/lastseen.c \ 58 $(srcdir)/../../libntech/libutils/statistics.c 59lastseen_load_LDADD = ../unit/libdb.la ../../libpromises/libpromises.la 60endif 61 62lastseen_threaded_load_LDADD = \ 63 ../../libpromises/libpromises.la 64