libzmq/src/Makefile.am

294 lines
8.0 KiB
Makefile
Raw Normal View History

2009-08-03 11:30:13 +02:00
lib_LTLIBRARIES = libzmq.la
2009-07-29 12:07:54 +02:00
2009-09-08 15:06:08 +02:00
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libzmq.pc
if BUILD_CPP
include_HEADERS = ../bindings/cpp/zmq.hpp ../bindings/c/zmq.h
endif
if BUILD_C
if BUILD_CPP
else
include_HEADERS = ../bindings/c/zmq.h
endif
endif
2009-09-04 09:51:42 +02:00
2009-09-24 12:43:35 +02:00
if BUILD_PGM1
2009-10-05 12:28:34 +02:00
pgm_sources = ../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/timer.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/if.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/gsi.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/signal.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/txwi.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/rxwi.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/transport.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/rate_control.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/async.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/checksum.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/reed_solomon.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/version.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_tables.c
endif
2009-09-24 12:43:35 +02:00
if BUILD_PGM2
2009-10-05 12:28:34 +02:00
pgm_sources = ../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c \
2009-09-24 12:43:35 +02:00
../foreign/openpgm/@pgm_basename@/openpgm/pgm/time.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/if.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/getifaddrs.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/getnodeaddr.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/indextoaddr.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/indextoname.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/nametoindex.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/inet_network.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/md5.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/gsi.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/tsi.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/signal.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/txwi.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/rxwi.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/transport.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/source.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/receiver.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/recv.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/pgm.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/timer.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/net.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/rate_control.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/async.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/checksum.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/reed_solomon.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_tables.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/wsastrerror.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/glib-compat.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/backtrace.c \
../foreign/openpgm/@pgm_basename@/openpgm/pgm/log.c
2009-09-24 12:43:35 +02:00
endif
2009-10-05 12:28:34 +02:00
nodist_libzmq_la_SOURCES = $(pgm_sources)
libzmq_la_SOURCES = app_thread.hpp \
2009-07-29 12:07:54 +02:00
atomic_bitmap.hpp \
atomic_counter.hpp \
atomic_ptr.hpp \
command.hpp \
config.hpp \
decoder.hpp \
devpoll.hpp \
dispatcher.hpp \
2009-07-29 12:07:54 +02:00
encoder.hpp \
epoll.hpp \
err.hpp \
fd.hpp \
fd_signaler.hpp \
2009-08-12 09:40:16 +02:00
i_inout.hpp \
io_object.hpp \
2009-07-29 12:07:54 +02:00
io_thread.hpp \
ip.hpp \
2009-08-27 10:54:28 +02:00
i_endpoint.hpp \
i_engine.hpp \
2009-07-29 12:07:54 +02:00
i_poll_events.hpp \
i_signaler.hpp \
kqueue.hpp \
2009-08-21 14:29:22 +02:00
msg_content.hpp \
2009-07-29 12:07:54 +02:00
mutex.hpp \
object.hpp \
2009-08-12 09:40:16 +02:00
options.hpp \
2009-09-04 09:51:42 +02:00
owned.hpp \
2009-09-16 10:11:01 +02:00
pgm_receiver.hpp \
2009-09-11 17:58:37 +02:00
pgm_sender.hpp \
pgm_socket.hpp \
2009-07-29 12:07:54 +02:00
pipe.hpp \
platform.hpp \
poll.hpp \
poller.hpp \
2009-09-21 14:39:59 +02:00
p2p.hpp \
pub.hpp \
2009-09-21 14:39:59 +02:00
rep.hpp \
req.hpp \
2009-07-29 12:07:54 +02:00
select.hpp \
2009-08-12 09:40:16 +02:00
session.hpp \
2009-07-29 12:07:54 +02:00
simple_semaphore.hpp \
socket_base.hpp \
2009-07-29 12:07:54 +02:00
stdint.hpp \
sub.hpp \
2009-07-29 12:07:54 +02:00
tcp_connecter.hpp \
tcp_listener.hpp \
tcp_socket.hpp \
thread.hpp \
uuid.hpp \
windows.hpp \
wire.hpp \
2009-09-21 14:39:59 +02:00
yarray.hpp \
yarray_item.hpp \
2009-07-29 12:07:54 +02:00
ypipe.hpp \
ypollset.hpp \
yqueue.hpp \
2009-08-09 16:12:09 +02:00
zmq_connecter.hpp \
2009-08-21 14:29:22 +02:00
zmq_connecter_init.hpp \
2009-08-12 09:40:16 +02:00
zmq_decoder.hpp \
zmq_encoder.hpp \
zmq_engine.hpp \
zmq_listener.hpp \
2009-08-21 14:29:22 +02:00
zmq_listener_init.hpp \
2009-07-29 12:07:54 +02:00
app_thread.cpp \
devpoll.cpp \
dispatcher.cpp \
2009-07-29 12:07:54 +02:00
epoll.cpp \
err.cpp \
fd_signaler.cpp \
io_object.cpp \
2009-07-29 12:07:54 +02:00
io_thread.cpp \
ip.cpp \
kqueue.cpp \
object.cpp \
2009-08-12 09:40:16 +02:00
options.cpp \
owned.cpp \
2009-09-16 10:11:01 +02:00
pgm_receiver.cpp \
2009-09-11 17:58:37 +02:00
pgm_sender.cpp \
pgm_socket.cpp \
2009-09-21 14:39:59 +02:00
p2p.cpp \
2009-08-27 10:54:28 +02:00
pipe.cpp \
2009-07-29 12:07:54 +02:00
poll.cpp \
pub.cpp \
2009-09-21 14:39:59 +02:00
rep.cpp \
req.cpp \
2009-07-29 12:07:54 +02:00
select.cpp \
2009-08-12 09:40:16 +02:00
session.cpp \
socket_base.cpp \
sub.cpp \
2009-07-29 12:07:54 +02:00
tcp_connecter.cpp \
tcp_listener.cpp \
tcp_socket.cpp \
thread.cpp \
uuid.cpp \
ypollset.cpp \
zmq.cpp \
2009-08-09 16:12:09 +02:00
zmq_connecter.cpp \
2009-08-21 14:29:22 +02:00
zmq_connecter_init.cpp \
2009-08-12 09:40:16 +02:00
zmq_decoder.cpp \
zmq_encoder.cpp \
zmq_engine.cpp \
2009-08-21 14:29:22 +02:00
zmq_listener.cpp \
zmq_listener_init.cpp
2009-07-29 12:07:54 +02:00
2009-09-11 17:58:37 +02:00
libzmq_la_LDFLAGS = -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAFS@
2009-09-24 12:43:35 +02:00
if BUILD_PGM1
libzmq_la_CXXFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ -Wall @LIBZMQ_EXTRA_CXXFLAGS@
libzmq_la_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ @LIBZMQ_EXTRA_CXXFLAGS@ \
-pipe \
-Wall \
-Wextra \
-Wfloat-equal \
-Wshadow \
-Wunsafe-loop-optimizations \
-Wpointer-arith \
-Wbad-function-cast \
-Wcast-qual \
-Wcast-align \
-Wwrite-strings \
-Waggregate-return \
-Wstrict-prototypes \
-Wold-style-definition \
-Wmissing-prototypes \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wmissing-format-attribute \
-Wredundant-decls \
-Wnested-externs \
-Winline \
-pedantic \
-std=gnu99 \
--param max-inline-insns-single=600 \
-D_REENTRANT \
-D_GNU_SOURCE \
-D__need_IOV_MAX \
-DCONFIG_HAVE_EPOLL \
-DCONFIG_HAVE_RTC \
-DCONFIG_HAVE_TSC \
-DCONFIG_HAVE_IFR_NETMASK \
-DCONFIG_HAVE_GETIFADDRS \
-DCONFIG_HAVE_GETHOSTBYNAME2 \
-DCONFIG_HAVE_GETPROTOBYNAME_R \
-DCONFIG_HAVE_SIGHANDLER_T \
-DCONFIG_BIND_INADDR_ANY \
-DCONFIG_GALOIS_MUL_LUT
2009-09-24 12:43:35 +02:00
endif
if BUILD_PGM2
libzmq_la_CXXFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ -Wall @LIBZMQ_EXTRA_CXXFLAGS@
if ON_MINGW
libpgm_diff_flags = \
-D_WIN32_WINNT=0x0501 \
-DCONFIG_HAVE_IFR_NETMASK \
-DCONFIG_BIND_INADDR_ANY \
-DCONFIG_GALOIS_MUL_LUT \
2009-10-12 22:51:41 +02:00
-DIF_NAMESIZE=256 \
-DGETTEXT_PACKAGE='"pgm"' \
-DG_LOG_DOMAIN='"Pgm"'
else
libpgm_diff_flags = \
-D__need_IOV_MAX \
-DCONFIG_HAVE_PSELECT \
-DCONFIG_HAVE_POLL \
-DCONFIG_HAVE_PPOLL \
-DCONFIG_HAVE_EPOLL \
-DCONFIG_HAVE_CLOCK_GETTIME \
-DCONFIG_HAVE_CLOCK_NANOSLEEP \
-DCONFIG_HAVE_NANOSLEEP \
-DCONFIG_HAVE_USLEEP \
-DCONFIG_HAVE_RTC \
-DCONFIG_HAVE_TSC \
-DCONFIG_HAVE_IFR_NETMASK \
-DCONFIG_HAVE_GETIFADDRS \
-DCONFIG_HAVE_GETHOSTBYNAME2 \
-DCONFIG_HAVE_GETPROTOBYNAME_R \
-DCONFIG_BIND_INADDR_ANY \
-DCONFIG_GALOIS_MUL_LUT \
-DGETTEXT_PACKAGE='"pgm"' \
-DG_LOG_DOMAIN='"Pgm"'
endif
2009-09-24 12:43:35 +02:00
libzmq_la_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ @LIBZMQ_EXTRA_CXXFLAGS@ \
-pipe \
-Wall \
-Wextra \
-Wfloat-equal \
-Wshadow \
-Wunsafe-loop-optimizations \
-Wpointer-arith \
-Wbad-function-cast \
-Wcast-qual \
-Wcast-align \
-Wwrite-strings \
-Waggregate-return \
-Wstrict-prototypes \
-Wold-style-definition \
-Wmissing-prototypes \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wmissing-format-attribute \
-Wredundant-decls \
-Wnested-externs \
-Winline \
-pedantic \
-std=gnu99 \
--param max-inline-insns-single=600 \
-D_REENTRANT \
-D_GNU_SOURCE \
${libpgm_diff_flags}
2009-09-24 12:43:35 +02:00
endif
if BUILD_NO_PGM
libzmq_la_CXXFLAGS = -Wall @LIBZMQ_EXTRA_CXXFLAGS@
endif
2009-07-29 12:07:54 +02:00
dist-hook:
2009-10-05 12:28:34 +02:00
-rm $(distdir)/platform.hpp
2009-07-29 12:07:54 +02:00