]> git.ipfire.org Git - thirdparty/lldpd.git/blob - src/Makefile.am
Major rewrite: rewrite lldpd/lldpctl communication mechanism
[thirdparty/lldpd.git] / src / Makefile.am
1 sbin_PROGRAMS = lldpd lldpctl
2 noinst_LTLIBRARIES = liblldpd.la libcommon.la
3
4 ## Shared by all executables
5 libcommon_la_SOURCES = log.c ctl.c marshal.c marshal.h lldpd.h lldp.h cdp.h compat.h sonmp.h edp.h
6 libcommon_la_LIBADD = @LTLIBOBJS@
7
8 ## Used for lldpd and tests
9 liblldpd_la_SOURCES = frame.h frame.c lldpd.c lldp.c cdp.c sonmp.c edp.c \
10 interfaces.c client.c priv.c privsep_fdpass.c dmi.c ctl-server.c
11 liblldpd_la_LIBADD = libcommon.la
12
13 ## lldpd
14 lldpd_SOURCES = main.c
15 lldpd_LDADD = liblldpd.la
16
17 ## lldpctl
18 lldpctl_SOURCES = lldpctl.h lldpctl.c display.c writer.h text_writer.c kv_writer.c
19 lldpctl_LDADD = libcommon.la
20
21 ## With SNMP...
22 if USE_SNMP
23 liblldpd_la_SOURCES += agent.c agent_priv.c agent.h
24 liblldpd_la_CFLAGS = @NETSNMP_CFLAGS@
25 lldpd_LDADD += @NETSNMP_LIBS@
26 endif
27
28 if USE_XML
29 lldpctl_SOURCES += xml_writer.c
30 lldpctl_CFLAGS = @XML2_CFLAGS@
31 lldpctl_LDADD += @XML2_LIBS@
32 endif
33
34