]>
Commit | Line | Data |
---|---|---|
2516cfb1 VB |
1 | AM_CFLAGS = -I $(top_srcdir)/include |
2 | ||
4b292b55 | 3 | sbin_PROGRAMS = lldpd |
a5cf540c | 4 | dist_man_MANS = lldpd.8 |
4b292b55 VB |
5 | |
6 | noinst_LTLIBRARIES = liblldpd.la | |
7 | ||
8 | ## Convenience library for lldpd and tests | |
01135553 VB |
9 | liblldpd_la_SOURCES = \ |
10 | frame.h frame.c \ | |
11 | lldp.c lldp-tlv.h \ | |
12 | cdp.c cdp.h \ | |
13 | sonmp.c sonmp.h \ | |
14 | edp.c edp.h \ | |
e12c2365 VB |
15 | client.c \ |
16 | priv.c privsep_fdpass.c \ | |
17 | dmi.c \ | |
adbb6e54 | 18 | interfaces.c \ |
01135553 | 19 | event.c lldpd.c |
2516cfb1 | 20 | liblldpd_la_CFLAGS = $(AM_CFLAGS) @LIBEVENT_CFLAGS@ |
01135553 VB |
21 | liblldpd_la_LIBADD = \ |
22 | $(top_builddir)/src/libcommon-daemon-client.la \ | |
23 | $(top_builddir)/src/libcommon-daemon-lib.la @LIBEVENT_LIBS@ | |
4b292b55 | 24 | |
e12c2365 VB |
25 | if HOST_OS_LINUX |
26 | liblldpd_la_SOURCES += \ | |
27 | interfaces-linux.c \ | |
28 | netlink.c | |
29 | endif | |
fda729fd | 30 | if HOST_OS_FREEBSD |
690b944c VB |
31 | liblldpd_la_SOURCES += interfaces-bsd.c |
32 | endif | |
33 | if HOST_OS_OPENBSD | |
34 | liblldpd_la_SOURCES += interfaces-bsd.c | |
fda729fd | 35 | endif |
e12c2365 | 36 | |
4b292b55 VB |
37 | # Add SNMP support if needed |
38 | if USE_SNMP | |
39 | liblldpd_la_SOURCES += agent.c agent_priv.c agent.h | |
40 | liblldpd_la_CFLAGS += @NETSNMP_CFLAGS@ | |
41 | liblldpd_la_LIBADD += @NETSNMP_LIBS@ | |
42 | endif | |
43 | ||
44 | ## lldpd | |
45 | lldpd_SOURCES = main.c | |
46 | lldpd_LDADD = liblldpd.la @LIBEVENT_LDFLAGS@ | |
47 | ||
48 | ## libevent | |
49 | if LIBEVENT_EMBEDDED | |
50 | event.c: $(top_builddir)/libevent/libevent.la | |
51 | $(top_builddir)/libevent/libevent.la: $(top_srcdir)/libevent/*.c $(top_srcdir)/libevent/*.h | |
52 | (cd $(top_builddir)/libevent && $(MAKE)) | |
53 | endif |