Initial agent-side code for agent to server connections
[public/netxms.git] / src / agent / core / Makefile.am
1 AM_CPPFLAGS=-I@top_srcdir@/include
2 bin_PROGRAMS = nxagentd
3 nxagentd_SOURCES = messages.c actions.cpp appagent.cpp comm.cpp config.cpp \
4 ctrl.cpp datacoll.cpp dcsnmp.cpp dbupgrade.cpp epp.cpp \
5 exec.cpp extagent.cpp getparam.cpp localdb.cpp master.cpp \
6 nxagentd.cpp policy.cpp push.cpp register.cpp sa.cpp \
7 sd.cpp session.cpp snmpproxy.cpp snmptrapproxy.cpp \
8 static_subagents.cpp subagent.cpp sysinfo.cpp syslog.cpp \
9 tools.cpp trap.cpp tunnel.cpp upgrade.cpp watchdog.cpp
10 if USE_INTERNAL_EXPAT
11 nxagentd_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@
12 else
13 nxagentd_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@
14 endif
15 if STATIC_BUILD
16 if ALL_STATIC
17 nxagentd_LDFLAGS = -all-static
18 else
19 nxagentd_LDFLAGS = -static
20 endif
21 endif
22 BUILT_SOURCES = messages.h
23 CLEANFILES = messages.c messages.h static_subagents.cpp
24
25 messages.c: messages.h
26
27 messages.h: messages.mc
28 $(PERL) @top_builddir@/tools/mc.pl messages.mc
29
30 static_subagents.cpp: @top_srcdir@/config.h Makefile
31 @top_builddir@/tools/create_ssa_list.sh "@STATIC_SUBAGENT_LIST@" > static_subagents.cpp
32
33 EXTRA_DIST = \
34 nxagentd.vcproj \
35 messages.mc messages.h messages.c \
36 nxagentd.rc \
37 win32.cpp resource.h \
38 nxagentd.h \
39 hddinfo.cpp \
40 service.cpp \
41 localdb.h