subagent specific API moved to separate library from libnetxms
[public/netxms.git] / src / agent / subagents / darwin / Makefile.am
CommitLineData
cf52e714
AK
1# Copyright (C) 2012 Alex Kirhenshtein
2#
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program; if not, write to the Free Software
15# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
cf52e714
AK
17SUBAGENT=darwin
18
19pkglib_LTLIBRARIES=darwin.la
64d4cedb 20darwin_la_SOURCES=darwin.cpp net.cpp system.cpp disk.cpp cpu.cpp
56d75a20 21darwin_la_CPPFLAGS=-I@top_srcdir@/include
ce04b278 22darwin_la_LDFLAGS=-module -avoid-version -export-symbols ../subagent.sym
359784de 23darwin_la_LIBADD=../../libnxagent/libnxagent.la ../../../libnetxms/libnetxms.la
cf52e714 24
f91088d0 25EXTRA_DIST=cpu.h darwin.h disk.h net.h system.h
cf52e714
AK
26
27if !STATIC_BUILD
28install-exec-hook:
2b479c92 29 mv -f $(DESTDIR)$(pkglibdir)/$(SUBAGENT)@SHLIB_SUFFIX@ $(DESTDIR)$(pkglibdir)/$(SUBAGENT).nsm
cf52e714 30 rm -f $(DESTDIR)$(pkglibdir)/$(SUBAGENT).la
2b479c92
VK
31 rm -f $(DESTDIR)$(libdir)/libnsm_$(SUBAGENT)@SHLIB_SUFFIX@
32 ln -s netxms/$(SUBAGENT).nsm $(DESTDIR)$(libdir)/libnsm_$(SUBAGENT)@SHLIB_SUFFIX@
cf52e714 33endif