forked from zeromq/erlzmq2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'original/master'
Conflicts: c_src/Makefile
- Loading branch information
Showing
3 changed files
with
41 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
LINUX=$(shell uname | grep -E "(Linux|NetBSD)" | wc -l | xargs echo) | ||
DEPS=../deps | ||
|
||
ifeq ($(LINUX),1) | ||
ZMQ_FLAGS=--with-pic | ||
else | ||
ZMQ_FLAGS= | ||
endif | ||
|
||
ifndef ZEROMQ_VERSION | ||
ZEROMQ_VERSION=v2.1.11 | ||
endif | ||
|
||
all: $(DEPS)/zeromq2/src/.libs/libzmq.a | ||
|
||
clean: | ||
if test -e $(DEPS)/zeromq2/Makefile; then \ | ||
cd $(DEPS)/zeromq2; make clean; \ | ||
else \ | ||
true; \ | ||
fi | ||
|
||
distclean: | ||
@rm -rf $(DEPS) | ||
|
||
$(DEPS)/zeromq2: | ||
@mkdir $(DEPS) | ||
@git clone git://github.com/zeromq/zeromq2-x.git $(DEPS)/zeromq2 | ||
@echo $(ZEROMQ_VERSION) | ||
@cd $(DEPS)/zeromq2 && git checkout $(ZEROMQ_VERSION) | ||
|
||
$(DEPS)/zeromq2/src/.libs/libzmq.a: $(DEPS)/zeromq2 | ||
@cd $(DEPS)/zeromq2 && ./autogen.sh && ./configure $(ZMQ_FLAGS) && make |
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 |
---|---|---|
@@ -1,33 +1,9 @@ | ||
LINUX=$(shell uname | grep Linux | wc -l | xargs echo) | ||
DEPS=../deps | ||
# a stub makefile for BSD make. | ||
# just redirect to GNU make, which is commonly available as "gmake". | ||
|
||
ifeq ($(LINUX),1) | ||
ZMQ_FLAGS=--with-pic | ||
else | ||
ZMQ_FLAGS= | ||
endif | ||
TARGETS=all clean distclean | ||
|
||
ifndef ZEROMQ_VERSION | ||
ZEROMQ_VERSION=v2.1.11 | ||
endif | ||
|
||
all: $(DEPS)/zeromq2/src/.libs/libzmq.a | ||
|
||
clean: | ||
if test -e $(DEPS)/zeromq2/Makefile; then \ | ||
cd $(DEPS)/zeromq2; make clean; \ | ||
else \ | ||
true; \ | ||
fi | ||
|
||
distclean: | ||
@rm -rf $(DEPS) | ||
|
||
$(DEPS)/zeromq2: | ||
@mkdir $(DEPS) | ||
@git clone git://github.com/zeromq/zeromq2-x.git $(DEPS)/zeromq2 | ||
@echo $(ZEROMQ_VERSION) | ||
@cd $(DEPS)/zeromq2 && git checkout $(ZEROMQ_VERSION) | ||
|
||
$(DEPS)/zeromq2/src/.libs/libzmq.a: $(DEPS)/zeromq2 | ||
@cd $(DEPS)/zeromq2 && ./autogen.sh && ./configure $(ZMQ_FLAGS) && make | ||
.for T in ${TARGETS} | ||
${T}: | ||
@gmake ${T} | ||
.endfor |
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