Files
emacs/lisp/zmq/src/Makefile.am

20 lines
655 B
Makefile

SUBDIRS = $(MAYBE_LIBZMQ)
ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = emacs-zmq.la
emacs_zmq_la_CFLAGS =
emacs_zmq_la_LDFLAGS = -module -avoid-version -shrext $(MODULE_EXT)
if WINDOWS
emacs_zmq_la_LDFLAGS += -no-undefined
endif
if ZMQ_BUILD_LOCALLY
# Its necessary to pass static libraries directly to the linker since libtool
# won't build emacs-zmq as a dynamic module on Windows otherwise.
emacs_zmq_la_LDFLAGS += -Wl,libzmq/src/.libs/libzmq.a
emacs_zmq_la_CFLAGS += -Ilibzmq/include -fvisibility=hidden
emacs_zmq_la_CPPFLAGS = -DZMQ_BUILD_DRAFT_API=1
endif
emacs_zmq_la_SOURCES = socket.c context.c msg.c constants.c util.c core.c poll.c emacs-zmq.c