summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 977b6559e02012b352dd222c707a2d7f82794e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
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
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
235
236
237
238
239
240
241
242
243
244
245
246
lib_LTLIBRARIES = libzmq.la

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libzmq.pc

include_HEADERS = ../include/zmq.h ../include/zmq.hpp ../include/zmq_utils.h

if BUILD_PGM
pgm_sources = ../foreign/openpgm/@pgm_basename@/openpgm/pgm/packet.c \
    ../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 \
    ../foreign/openpgm/@pgm_basename@/openpgm/pgm/sockaddr.c \
    ../foreign/openpgm/@pgm_basename@/openpgm/pgm/version.c

../foreign/openpgm/@pgm_basename@/openpgm/pgm/version.c: ../foreign/openpgm/@pgm_basename@/openpgm/pgm/version_generator.py
	python ../foreign/openpgm/@pgm_basename@/openpgm/pgm/version_generator.py > $@

../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_tables.c: ../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_generator.pl
	perl ../foreign/openpgm/@pgm_basename@/openpgm/pgm/galois_generator.pl > $@
endif

nodist_libzmq_la_SOURCES = $(pgm_sources)

libzmq_la_SOURCES = app_thread.hpp \
    atomic_counter.hpp \
    atomic_ptr.hpp \
    blob.hpp \
    command.hpp \
    config.hpp \
    ctx.hpp \
    decoder.hpp \
    devpoll.hpp \
    downstream.hpp \
    encoder.hpp \
    epoll.hpp \
    err.hpp \
    fd.hpp \
    forwarder.hpp \
    fq.hpp \
    i_inout.hpp \
    io_object.hpp \
    io_thread.hpp \
    ip.hpp \
    i_endpoint.hpp \
    i_engine.hpp \
    i_poll_events.hpp \
    kqueue.hpp \
    lb.hpp \
    likely.hpp \
    msg_content.hpp \
    msg_store.hpp \
    mutex.hpp \
    object.hpp \
    options.hpp \
    owned.hpp \
    pgm_receiver.hpp \
    pgm_sender.hpp \
    pgm_socket.hpp \
    pipe.hpp \
    platform.hpp \
    poll.hpp \
    poller.hpp \
    pair.hpp \
    prefix_tree.hpp \
    pub.hpp \
    queue.hpp \
    rep.hpp \
    req.hpp \
    select.hpp \
    session.hpp \
    signaler.hpp \
    socket_base.hpp \
    stdint.hpp \
    streamer.hpp \
    sub.hpp \
    tcp_connecter.hpp \
    tcp_listener.hpp \
    tcp_socket.hpp \
    thread.hpp \
    upstream.hpp \
    uuid.hpp \
    windows.hpp \
    wire.hpp \
    xrep.hpp \
    xreq.hpp \
    yarray.hpp \
    yarray_item.hpp \
    ypipe.hpp \
    yqueue.hpp \
    zmq_connecter.hpp \
    zmq_decoder.hpp \
    zmq_encoder.hpp \
    zmq_engine.hpp \
    zmq_init.hpp \
    zmq_listener.hpp \
    app_thread.cpp \
    command.cpp \
    ctx.cpp \
    devpoll.cpp \
    downstream.cpp \
    epoll.cpp \
    err.cpp \
    forwarder.cpp \
    fq.cpp \
    io_object.cpp \
    io_thread.cpp \
    ip.cpp \
    kqueue.cpp \
    lb.cpp \
    msg_store.cpp \
    object.cpp \
    options.cpp \
    owned.cpp \
    pgm_receiver.cpp \
    pgm_sender.cpp \
    pgm_socket.cpp \
    pair.cpp \
    prefix_tree.cpp \
    pipe.cpp \
    poll.cpp \
    pub.cpp \
    queue.cpp \
    rep.cpp \
    req.cpp \
    select.cpp \
    session.cpp \
    signaler.cpp \
    socket_base.cpp \
    streamer.cpp \
    sub.cpp \
    tcp_connecter.cpp \
    tcp_listener.cpp \
    tcp_socket.cpp \
    thread.cpp \
    upstream.cpp \
    uuid.cpp \
    xrep.cpp \
    xreq.cpp \
    zmq.cpp \
    zmq_connecter.cpp \
    zmq_decoder.cpp \
    zmq_encoder.cpp \
    zmq_engine.cpp \
    zmq_init.cpp \
    zmq_listener.cpp

if ON_MINGW
libzmq_la_LDFLAGS = -no-undefined -avoid-version -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAGS@
else
libzmq_la_LDFLAGS = -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAGS@
endif

if BUILD_PGM

if ON_MINGW
libpgm_diff_flags = \
    -D_WIN32_WINNT=0x0501 \
    -DCONFIG_16BIT_CHECKSUM \
    -DCONFIG_HAVE_IFR_NETMASK \
    -DCONFIG_BIND_INADDR_ANY \
    -DCONFIG_GALOIS_MUL_LUT \
    -DIF_NAMESIZE=256 \
    -DPGM_GNUC_INTERNAL=G_GNUC_INTERNAL \
    -DCONFIG_HAVE_WSACMSGHDR \
    -DGETTEXT_PACKAGE='"pgm"' \
    -DG_LOG_DOMAIN='"Pgm"'

else
libpgm_diff_flags = \
    -D__need_IOV_MAX \
    -DCONFIG_16BIT_CHECKSUM \
    -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 \
    -DCONFIG_HAVE_MCAST_JOIN \
    -DCONFIG_HAVE_IP_MREQN \
    -DCONFIG_HAVE_SPRINTF_GROUPING \
    -DCONFIG_HAVE_HPET \
    -DPGM_GNUC_INTERNAL=G_GNUC_INTERNAL \
    -DGETTEXT_PACKAGE='"pgm"' \
    -DG_LOG_DOMAIN='"Pgm"'
endif

libzmq_la_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ @LIBZMQ_EXTRA_CXXFLAGS@ \
    -Wall \
    -pedantic \
    -std=gnu99 \
    -fno-strict-aliasing \
    --param max-inline-insns-single=600 \
    -D_REENTRANT \
    -D_GNU_SOURCE \
    ${libpgm_diff_flags}

libzmq_la_CXXFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ \
    @LIBZMQ_EXTRA_CXXFLAGS@
endif

if BUILD_NO_PGM
libzmq_la_CXXFLAGS = @LIBZMQ_EXTRA_CXXFLAGS@
endif

dist-hook:
		-rm $(distdir)/platform.hpp