]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - src/Makefile.am
fixedpoint: fix buffer overflow in fixed point computations
[thirdparty/lldpd.git] / src / Makefile.am
index 5107435adebde38796ed9731fccdcde3aa3d9506..19644f3e345dfa578fcb98e59462632d1b55f451 100644 (file)
@@ -1,38 +1,16 @@
-sbin_PROGRAMS = lldpd lldpctl
-noinst_LTLIBRARIES = liblldpd.la libcommon.la
+AM_CFLAGS = -I $(top_srcdir)/include $(LLDP_CFLAGS)
+AM_CPPFLAGS = $(LLDP_CPPFLAGS) -DSYSCONFDIR='"$(sysconfdir)"'
+AM_LDFLAGS = $(LLDP_LDFLAGS)
 
-## Convenience library for lldpd, lldpctl and tests
-libcommon_la_SOURCES = log.c ctl.c marshal.c marshal.h lldpd.h lldp.h cdp.h compat.h sonmp.h edp.h
-libcommon_la_LIBADD = @LTLIBOBJS@ 
+noinst_LTLIBRARIES = libcommon-daemon-lib.la libcommon-daemon-client.la
+include_HEADERS    = lldp-const.h
 
-## Convenience library for lldpd and tests
-liblldpd_la_SOURCES = frame.h frame.c lldpd.c lldp.c cdp.c sonmp.c edp.c \
-       interfaces.c client.c priv.c privsep_fdpass.c dmi.c event.c
-liblldpd_la_CFLAGS = @LIBEVENT_CFLAGS@
-liblldpd_la_LIBADD = libcommon.la @LIBEVENT_LIBS@
-# Add SNMP support if needed
-if USE_SNMP
-liblldpd_la_SOURCES += agent.c agent_priv.c agent.h
-liblldpd_la_CFLAGS += @NETSNMP_CFLAGS@
-liblldpd_la_LIBADD += @NETSNMP_LIBS@
-endif
+libcommon_daemon_lib_la_SOURCES = \
+       log.c log.h version.c \
+       marshal.c marshal.h \
+       ctl.c ctl.h \
+       lldpd-structs.c lldpd-structs.h lldp-const.h
+libcommon_daemon_lib_la_LIBADD  = compat/libcompat.la
 
-## lldpd
-lldpd_SOURCES = main.c
-lldpd_LDADD = liblldpd.la @LIBEVENT_LDFLAGS@
-
-## lldpctl
-lldpctl_SOURCES = lldpctl.h lldpctl.c display.c writer.h text_writer.c kv_writer.c
-lldpctl_LDADD = libcommon.la
-if USE_XML
-lldpctl_SOURCES += xml_writer.c
-lldpctl_CFLAGS = @XML2_CFLAGS@
-lldpctl_LDADD  += @XML2_LIBS@
-endif
-
-## libevent
-if LIBEVENT_EMBEDDED
-event.c: $(top_builddir)/libevent/libevent.la
-$(top_builddir)/libevent/libevent.la: $(top_srcdir)/libevent/*.c $(top_srcdir)/libevent/*.h
-       (cd $(top_builddir)/libevent && $(MAKE))
-endif
+libcommon_daemon_client_la_SOURCES = log.c log.h version.c lldp-const.h
+libcommon_daemon_client_la_LIBADD  = compat/libcompat.la