Changelog update
[public/netxms.git] / src / agent / subagents / darwin / Makefile.am
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
17 SUBAGENT=darwin
18
19 pkglib_LTLIBRARIES=darwin.la
20 darwin_la_SOURCES=darwin.cpp net.cpp system.cpp disk.cpp cpu.cpp
21 darwin_la_CPPFLAGS=-I@top_srcdir@/include
22 darwin_la_LDFLAGS=-module -avoid-version -export-symbols ../platform-subagent.sym
23 darwin_la_LIBADD=../../libnxagent/libnxagent.la ../../../libnetxms/libnetxms.la
24
25 EXTRA_DIST=cpu.h darwin.h disk.h net.h system.h
26
27 if !STATIC_BUILD
28 install-exec-hook:
29 mv -f $(DESTDIR)$(pkglibdir)/$(SUBAGENT)@SHLIB_SUFFIX@ $(DESTDIR)$(pkglibdir)/$(SUBAGENT).nsm
30 rm -f $(DESTDIR)$(pkglibdir)/$(SUBAGENT).la
31 rm -f $(DESTDIR)$(libdir)/libnsm_$(SUBAGENT)@SHLIB_SUFFIX@
32 ln -s netxms/$(SUBAGENT).nsm $(DESTDIR)$(libdir)/libnsm_$(SUBAGENT)@SHLIB_SUFFIX@
33 endif