Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (26 sloc) 0.744 kB
CXXFLAGS=@CXXFLAGS@
LDFLAGS=@LDFLAGS@
CXX=@CXX@
debug=@DEBUG@
package=@PACKAGE@
version=@PACKAGE_VERSION@
MKDIR_P=@MKDIR_P@
INSTALL=@INSTALL@
INST_DIR=../priv
DIST_DIR=@PACKAGE_INSTALL_DIR@/$(notdir $(INST_DIR))
LIBZMQ_SO=$(INST_DIR)/zmq_drv@LIB_EXT@
zmq_drv_so_CXXFLAGS=-Wall $(if $(debug),-DZMQDRV_DEBUG) $(CXXFLAGS)
zmq_drv_so_LDFLAGS=-shared -fPIC $(LDFLAGS) -lpthread
all: $(INST_DIR) $(LIBZMQ_SO)
$(INST_DIR):
$(MKDIR_P) $@
$(LIBZMQ_SO): zmq_drv.cpp
$(CXX) -o $@ $< ${zmq_drv_so_CXXFLAGS} ${zmq_drv_so_LDFLAGS}
clean:
-rm -rf zmq_drv.o $(LIBZMQ_SO)*
distclean: clean
rm Makefile
install:
$(MKDIR_P) $(DIST_DIR) $(dir $(DIST_DIR))c_src
$(INSTALL) zmq_drv.{h,cpp} $(dir $(DIST_DIR))c_src/
$(INSTALL) $(LIBZMQ_SO) $(DIST_DIR)/
Jump to Line
Something went wrong with that request. Please try again.