forked from zeromq/libzmq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a definitive cygwin target for libzmq.
- Loading branch information
1 parent
d2bacdf
commit 5d084cd
Showing
5 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
libzmq-cygwin | ||
============= | ||
|
||
Definitive build fixes for cygwin (See https://github.com/zeromq/pyzmq/issues/113 for partial solution) | ||
|
||
What's changed: | ||
./Makefile.am Add cygwin-specific target mostly the same as mingw | ||
./configure.ac Add cygwin-specific target mostly the same as mingw | ||
./tests/testutil.hpp Lengthen socket timeout to 121 seconds | ||
|
||
What's new: | ||
./README.cygwin.md This file | ||
./builds/cygwin Folder for cygwin-specific build files | ||
./builds/cygwin/Makefile.cygwin Makefile for cygwin targets | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
CC=gcc | ||
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -I. | ||
LIBS=-lws2_32 | ||
|
||
OBJS = ctx.o reaper.o dist.o err.o \ | ||
clock.o metadata.o random.o \ | ||
object.o own.o \ | ||
io_object.o io_thread.o \ | ||
lb.o fq.o \ | ||
address.o tcp_address.o ipc_address.o \ | ||
ipc_connecter.o ipc_listener.o \ | ||
tcp_connecter.o tcp_listener.o \ | ||
mailbox.o msg.o mtrie.o \ | ||
pipe.o precompiled.o proxy.o \ | ||
signaler.o stream_engine.o \ | ||
thread.o trie.o \ | ||
ip.o tcp.o \ | ||
pgm_socket.o pgm_receiver.o pgm_sender.o \ | ||
raw_decoder.o raw_encoder.o \ | ||
v1_decoder.o v1_encoder.o v2_decoder.o v2_encoder.o \ | ||
socket_base.o session_base.o options.o \ | ||
req.o rep.o push.o pull.o pub.o sub.o pair.o \ | ||
dealer.o router.o xpub.o xsub.o stream.o \ | ||
poller_base.o select.o poll.o epoll.o kqueue.o devpoll.o \ | ||
curve_client.o curve_server.o \ | ||
mechanism.o null_mechanism.o plain_client.o plain_server.o \ | ||
zmq.o zmq_utils.o | ||
|
||
%.o: ../../src/%.cpp | ||
$(CC) -c -o $@ $< $(CFLAGS) | ||
|
||
%.o: ../../perf/%.cpp | ||
$(CC) -c -o $@ $< $(CFLAGS) | ||
|
||
all: libzmq.dll | ||
|
||
perf: inproc_lat.exe inproc_thr.exe local_lat.exe local_thr.exe remote_lat.exe remote_thr.exe | ||
|
||
libzmq.dll: $(OBJS) | ||
g++ -shared -o $@ $^ -Wl,--out-implib,-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive [email protected] -Wl,--no-whole-archive $(LIBS) | ||
|
||
%.exe: %.o libzmq.dll | ||
g++ -o $@ $^ | ||
|
||
clean: | ||
del *.o *.a *.dll *.exe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters