Since libevent.la is not a convenience library, we cannot merge it
into liblldpd.la. Therefore, we link it to lldpd directly (and don't
try to build a convenience library from it).
# No appropriate version, let's use the shipped copy
AC_MSG_NOTICE([using shipped libevent])
LIBEVENT_CFLAGS="-I\$(top_srcdir)/libevent/include -I\$(top_builddir)/libevent/include"
- LIBEVENT_LIBS="\$(top_builddir)/libevent/libevent.la"
LIBEVENT_LDFLAGS="\$(top_builddir)/libevent/libevent.la"
])
## libevent
if LIBEVENT_EMBEDDED
-event.c: $(top_builddir)/libevent/include/event2-config.h $(top_builddir)/libevent/libevent.la
-$(top_builddir)/libevent/include/event2-config.h: $(top_builddir)/libevent/config.h
- (cd $(top_builddir)/libevent && $(MAKE) include/event2/event-config.h)
+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) libevent.la)
+ (cd $(top_builddir)/libevent && $(MAKE))
endif