Makefile.am 6.11 KB
Newer Older
Martin Sustrik's avatar
Martin Sustrik committed
1
lib_LTLIBRARIES = libzmq.la
Martin Sustrik's avatar
Martin Sustrik committed
2

malosek's avatar
malosek committed
3 4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libzmq.pc
5 6

if BUILD_CPP
7
include_HEADERS = ../bindings/cpp/zmq.hpp ../bindings/c/zmq.h
8 9 10 11 12 13
endif

if BUILD_C
if BUILD_CPP

else
14
include_HEADERS = ../bindings/c/zmq.h
15 16
endif
endif
Martin Sustrik's avatar
Martin Sustrik committed
17

18
if BUILD_PGM2
19
pgm_sources = ../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c \
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
    ../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 \
47 48 49
    ../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
50 51
endif

52 53 54
nodist_libzmq_la_SOURCES = $(pgm_sources)

libzmq_la_SOURCES = app_thread.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
55 56 57 58 59 60 61
    atomic_bitmap.hpp \
    atomic_counter.hpp \
    atomic_ptr.hpp \
    command.hpp \
    config.hpp \
    decoder.hpp \
    devpoll.hpp \
62
    dispatcher.hpp \
63
    downstream.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
64 65 66 67 68
    encoder.hpp \
    epoll.hpp \
    err.hpp \
    fd.hpp \
    fd_signaler.hpp \
69
    fq.hpp \
70
    i_inout.hpp \
71
    io_object.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
72 73
    io_thread.hpp \
    ip.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
74
    i_endpoint.hpp \
75
    i_engine.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
76 77 78
    i_poll_events.hpp \
    i_signaler.hpp \
    kqueue.hpp \
79
    lb.hpp \
80
    likely.hpp \
81
    msg_content.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
82 83
    mutex.hpp \
    object.hpp \
84
    options.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
85
    owned.hpp \
86
    pgm_receiver.hpp \
malosek's avatar
malosek committed
87 88
    pgm_sender.hpp \
    pgm_socket.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
89 90 91
    pipe.hpp \
    platform.hpp \
    poll.hpp \
92
    poller.hpp \
93
    p2p.hpp \
94
    pub.hpp \
95 96
    rep.hpp \
    req.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
97
    select.hpp \
98
    session.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
99
    simple_semaphore.hpp \
100
    socket_base.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
101
    stdint.hpp \
102
    sub.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
103 104 105 106
    tcp_connecter.hpp \
    tcp_listener.hpp \
    tcp_socket.hpp \
    thread.hpp \
107
    upstream.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
108 109 110
    uuid.hpp \
    windows.hpp \
    wire.hpp \
111 112
    xrep.hpp \
    xreq.hpp \
113 114
    yarray.hpp \
    yarray_item.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
115 116 117
    ypipe.hpp \
    ypollset.hpp \
    yqueue.hpp \
118
    zmq_connecter.hpp \
119 120
    zmq_decoder.hpp \
    zmq_encoder.hpp \
121
    zmq_engine.hpp \
122
    zmq_init.hpp \
123
    zmq_listener.hpp \
Martin Sustrik's avatar
Martin Sustrik committed
124
    app_thread.cpp \
125 126
    devpoll.cpp \
    dispatcher.cpp \
127
    downstream.cpp \
Martin Sustrik's avatar
Martin Sustrik committed
128 129 130
    epoll.cpp \
    err.cpp \
    fd_signaler.cpp \
131
    fq.cpp \
132
    io_object.cpp \
Martin Sustrik's avatar
Martin Sustrik committed
133 134 135
    io_thread.cpp \
    ip.cpp \
    kqueue.cpp \
136
    lb.cpp \
Martin Sustrik's avatar
Martin Sustrik committed
137
    object.cpp \
138 139
    options.cpp \
    owned.cpp \
140
    pgm_receiver.cpp \
malosek's avatar
malosek committed
141 142
    pgm_sender.cpp \
    pgm_socket.cpp \
143
    p2p.cpp \
Martin Sustrik's avatar
Martin Sustrik committed
144
    pipe.cpp \
Martin Sustrik's avatar
Martin Sustrik committed
145
    poll.cpp \
146
    pub.cpp \
147 148
    rep.cpp \
    req.cpp \
Martin Sustrik's avatar
Martin Sustrik committed
149
    select.cpp \
150
    session.cpp \
151
    socket_base.cpp \
152
    sub.cpp \
Martin Sustrik's avatar
Martin Sustrik committed
153 154 155 156
    tcp_connecter.cpp \
    tcp_listener.cpp \
    tcp_socket.cpp \
    thread.cpp \
157
    upstream.cpp \
Martin Sustrik's avatar
Martin Sustrik committed
158
    uuid.cpp \
159 160
    xrep.cpp \
    xreq.cpp \
Martin Sustrik's avatar
Martin Sustrik committed
161
    ypollset.cpp \
162
    zmq.cpp \
163
    zmq_connecter.cpp \
164 165
    zmq_decoder.cpp \
    zmq_encoder.cpp \
166
    zmq_engine.cpp \
167 168
    zmq_init.cpp \
    zmq_listener.cpp
Martin Sustrik's avatar
Martin Sustrik committed
169

malosek's avatar
malosek committed
170
libzmq_la_LDFLAGS = -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAFS@
171

172 173
if BUILD_PGM2
libzmq_la_CXXFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ -Wall @LIBZMQ_EXTRA_CXXFLAGS@
174 175 176 177 178 179 180

if ON_MINGW
libpgm_diff_flags = \
    -D_WIN32_WINNT=0x0501 \
    -DCONFIG_HAVE_IFR_NETMASK \
    -DCONFIG_BIND_INADDR_ANY \
    -DCONFIG_GALOIS_MUL_LUT \
181
    -DIF_NAMESIZE=256 \
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
    -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

208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
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 \
235
    ${libpgm_diff_flags}
236 237 238
endif

if BUILD_NO_PGM
239 240
libzmq_la_CXXFLAGS = -Wall @LIBZMQ_EXTRA_CXXFLAGS@
endif
Martin Sustrik's avatar
Martin Sustrik committed
241 242

dist-hook:
243
		-rm $(distdir)/platform.hpp
Martin Sustrik's avatar
Martin Sustrik committed
244 245