Initial agent-side code for agent to server connections
[public/netxms.git] / src / agent / core / Makefile.am
CommitLineData
56d75a20 1AM_CPPFLAGS=-I@top_srcdir@/include
5039dede 2bin_PROGRAMS = nxagentd
a1716ea0 3nxagentd_SOURCES = messages.c actions.cpp appagent.cpp comm.cpp config.cpp \
7f6ecb6d
TD
4 ctrl.cpp datacoll.cpp dcsnmp.cpp dbupgrade.cpp epp.cpp \
5 exec.cpp extagent.cpp getparam.cpp localdb.cpp master.cpp \
296ae03d
VK
6 nxagentd.cpp policy.cpp push.cpp register.cpp sa.cpp \
7 sd.cpp session.cpp snmpproxy.cpp snmptrapproxy.cpp \
685508a7 8 static_subagents.cpp subagent.cpp sysinfo.cpp syslog.cpp \
842378a4 9 tools.cpp trap.cpp tunnel.cpp upgrade.cpp watchdog.cpp
551ec9ca 10if USE_INTERNAL_EXPAT
d8637bab 11nxagentd_LDADD = ../../appagent/libappagent.la ../libnxagent/libnxagent.la @top_srcdir@/src/db/libnxdb/libnxdb.la @top_srcdir@/src/libnetxms/libnetxms.la @top_srcdir@/src/snmp/libnxsnmp/libnxsnmp.la @top_srcdir@/src/libexpat/libexpat/libnxexpat.la @SUBAGENT_LIBS@
551ec9ca 12else
d8637bab 13nxagentd_LDADD = ../../appagent/libappagent.la ../libnxagent/libnxagent.la @top_srcdir@/src/db/libnxdb/libnxdb.la @top_srcdir@/src/libnetxms/libnetxms.la @top_srcdir@/src/snmp/libnxsnmp/libnxsnmp.la @SUBAGENT_LIBS@
551ec9ca 14endif
c1165d33
VK
15if STATIC_BUILD
16if ALL_STATIC
17nxagentd_LDFLAGS = -all-static
18else
19nxagentd_LDFLAGS = -static
20endif
21endif
1aa54f72 22BUILT_SOURCES = messages.h
5039dede
AK
23CLEANFILES = messages.c messages.h static_subagents.cpp
24
25messages.c: messages.h
26
27messages.h: messages.mc
28 $(PERL) @top_builddir@/tools/mc.pl messages.mc
29
30static_subagents.cpp: @top_srcdir@/config.h Makefile
31 @top_builddir@/tools/create_ssa_list.sh "@STATIC_SUBAGENT_LIST@" > static_subagents.cpp
80ce37ac
VK
32
33EXTRA_DIST = \
80ce37ac
VK
34 nxagentd.vcproj \
35 messages.mc messages.h messages.c \
36 nxagentd.rc \
37 win32.cpp resource.h \
38 nxagentd.h \
39 hddinfo.cpp \
7f6ecb6d
TD
40 service.cpp \
41 localdb.h