subagent specific API moved to separate library from libnetxms
[public/netxms.git] / src / agent / subagents / hpux / Makefile.am
CommitLineData
5039dede
AK
1# Copyright (C) 2006 NetXMS Team <bugs@netxms.org>
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
11ce9a66
VK
17SUBAGENT = hpux
18
19pkglib_LTLIBRARIES = hpux.la
b49e3e7c 20hpux_la_SOURCES = disk.cpp iostat.cpp main.cpp net.cpp proc.cpp system.cpp
56d75a20 21hpux_la_CPPFLAGS = -I@top_srcdir@/include -D_PSTAT64
359784de 22hpux_la_LIBADD = ../../libnxagent/libnxagent.la ../../../libnetxms/libnetxms.la -lnm
ce04b278 23hpux_la_LDFLAGS = -module -avoid-version -export-symbols ../subagent.sym
5039dede
AK
24
25EXTRA_DIST = disk.h hpux.h net.h system.h
11ce9a66 26
c1165d33 27if !STATIC_BUILD
11ce9a66 28install-exec-hook:
2b479c92 29 mv -f $(DESTDIR)$(pkglibdir)/$(SUBAGENT)@SHLIB_SUFFIX@ $(DESTDIR)$(pkglibdir)/$(SUBAGENT).nsm
7f02e18a 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@
c1165d33 33endif