1#
2#  Copyright 2020 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 = libenv.la
25
26libenv_la_SOURCES = \
27	constants.c constants.h \
28	sysinfo.c sysinfo.h sysinfo_priv.h \
29	time_classes.c time_classes.h \
30	zones.c zones.h
31
32if !NT
33libenv_la_SOURCES += \
34	unix_iface.c
35endif
36
37if SOLARIS
38libenv_la_LIBADD = -lkstat
39endif
40
41AM_CPPFLAGS  = -I$(top_srcdir)/libntech/libutils
42AM_CPPFLAGS += $(OPENSSL_CPPFLAGS)         # because libutils needs it
43AM_CPPFLAGS += $(PCRE_CPPFLAGS)
44
45# Those dependencies are ought to go away ASAP
46AM_CPPFLAGS += -I$(top_srcdir)/libcfnet
47AM_CPPFLAGS += -I$(top_srcdir)/libpromises
48
49CLEANFILES = *.gcno *.gcda
50
51#
52# Some basic clean ups
53#
54MOSTLYCLEANFILES = *~ *.orig *.rej
55
56#
57# Get everything removed down to where rebuilding requires:
58# "aclocal; autoconf; autoheader; automake --add-missing"
59# "configure; make; make install"
60#
61MAINTAINERCLEANFILES = config.h.in
62
63# libcompat dependency
64
65.PRECIOUS: ../libntech/libcompat/libcompat.la
66
67../libntech/libcompat/libcompat.la:
68	$(MAKE) -C ../libntech/libcompat $(AM_MAKEFLAGS) libcompat.la
69