Changelog update
[public/netxms.git] / src / agent / subagents / hpux / Makefile.am
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
17 SUBAGENT = hpux
18
19 pkglib_LTLIBRARIES = hpux.la
20 hpux_la_SOURCES = disk.cpp iostat.cpp main.cpp net.cpp proc.cpp system.cpp
21 hpux_la_CPPFLAGS = -I@top_srcdir@/include -D_PSTAT64
22 hpux_la_LIBADD = ../../libnxagent/libnxagent.la ../../../libnetxms/libnetxms.la -lnm
23 hpux_la_LDFLAGS = -module -avoid-version -export-symbols ../platform-subagent.sym
24
25 EXTRA_DIST = disk.h hpux.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