forked from little-arhat/ocaml-zmq
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from wagerlabs/master
- Loading branch information
Showing
19 changed files
with
6,095 additions
and
98 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 |
---|---|---|
|
@@ -8,4 +8,5 @@ setup.log | |
*.swo | ||
*.cmi | ||
*.swn | ||
|
||
*.byte | ||
*.native |
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,17 +1,38 @@ | ||
default all: | ||
@echo "==== Building ocaml-zmq ====" | ||
$(MAKE) -C src all | ||
@echo "==== Successfully built ocaml-zmq ====" | ||
|
||
install: all | ||
@echo "==== Installing ocaml-zmq ====" | ||
$(MAKE) -C src install | ||
@echo "==== Successfully installed ocaml-zmq ====" | ||
|
||
uninstall: | ||
@echo "==== Uninstalling ocaml-zmq ====" | ||
$(MAKE) -C src uninstall | ||
@echo "==== Successfully uninstalled ocaml-zmq ====" | ||
clean: | ||
$(MAKE) -C src clean | ||
# OASIS_START | ||
# DO NOT EDIT (digest: bc1e05bfc8b39b664f29dae8dbd3ebbb) | ||
|
||
SETUP = ocaml setup.ml | ||
|
||
build: setup.data | ||
$(SETUP) -build $(BUILDFLAGS) | ||
|
||
doc: setup.data build | ||
$(SETUP) -doc $(DOCFLAGS) | ||
|
||
test: setup.data build | ||
$(SETUP) -test $(TESTFLAGS) | ||
|
||
all: | ||
$(SETUP) -all $(ALLFLAGS) | ||
|
||
install: setup.data | ||
$(SETUP) -install $(INSTALLFLAGS) | ||
|
||
uninstall: setup.data | ||
$(SETUP) -uninstall $(UNINSTALLFLAGS) | ||
|
||
reinstall: setup.data | ||
$(SETUP) -reinstall $(REINSTALLFLAGS) | ||
|
||
clean: | ||
$(SETUP) -clean $(CLEANFLAGS) | ||
|
||
distclean: | ||
$(SETUP) -distclean $(DISTCLEANFLAGS) | ||
|
||
setup.data: | ||
$(SETUP) -configure $(CONFIGUREFLAGS) | ||
|
||
.PHONY: build doc test all install uninstall reinstall clean distclean configure | ||
|
||
# OASIS_STOP |
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,44 @@ | ||
OASISFormat: 0.2 | ||
Name: ZMQ | ||
Version: 0.0.3 | ||
Synopsis: Bindings for the ZMQ library | ||
Authors: Pedro Borges | ||
License: MIT | ||
Plugins: DevFiles (0.2), META (0.2) | ||
BuildTools: ocamlbuild | ||
|
||
Library ZMQB | ||
Path: src | ||
FindlibName: ZMQ | ||
Modules: ZMQ | ||
CSources: caml_zmq_stubs.c, | ||
socket.h, | ||
socket.c, | ||
context.h, | ||
context.c, | ||
fail.h, | ||
fail.c, | ||
poll.h, | ||
poll.c, | ||
uint64.h, | ||
uint64.c | ||
BuildDepends: uint.uint64 | ||
CCLib: -lzmq | ||
CCOpt: -Wall -W -Wextra -O2 | ||
CompiledObject: best | ||
|
||
Flag tests | ||
Description: Build and run tests | ||
|
||
Executable test | ||
Path: test | ||
MainIs: test.ml | ||
Install: false | ||
Build$: flag(tests) | ||
BuildDepends: oUnit (>= 1.1.0), ZMQ | ||
CompiledObject: best | ||
|
||
Test main | ||
Run$: flag(tests) | ||
Command: $test | ||
|
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,32 @@ | ||
# OASIS_START | ||
# DO NOT EDIT (digest: e6e8a800542cd56362cc34bbeb34731b) | ||
# Library ZMQB | ||
"src": include | ||
<src/*.ml{,i}>: oasis_library_zmqb_ccopt | ||
"src/caml_zmq_stubs.c": oasis_library_zmqb_ccopt | ||
"src/socket.c": oasis_library_zmqb_ccopt | ||
"src/context.c": oasis_library_zmqb_ccopt | ||
"src/fail.c": oasis_library_zmqb_ccopt | ||
"src/poll.c": oasis_library_zmqb_ccopt | ||
"src/uint64.c": oasis_library_zmqb_ccopt | ||
<src/ZMQB.{cma,cmxa}>: oasis_library_zmqb_cclib | ||
"src/libZMQB.lib": oasis_library_zmqb_cclib | ||
"src/dllZMQB.dll": oasis_library_zmqb_cclib | ||
"src/libZMQB.a": oasis_library_zmqb_cclib | ||
"src/dllZMQB.so": oasis_library_zmqb_cclib | ||
<src/ZMQB.{cma,cmxa}>: use_libZMQB | ||
<src/*.ml{,i}>: pkg_uint.uint64 | ||
"src/caml_zmq_stubs.c": pkg_uint.uint64 | ||
"src/socket.c": pkg_uint.uint64 | ||
"src/context.c": pkg_uint.uint64 | ||
"src/fail.c": pkg_uint.uint64 | ||
"src/poll.c": pkg_uint.uint64 | ||
"src/uint64.c": pkg_uint.uint64 | ||
# Executable test | ||
<test/test.{native,byte}>: use_ZMQB | ||
<test/test.{native,byte}>: pkg_uint.uint64 | ||
<test/test.{native,byte}>: pkg_oUnit | ||
<test/*.ml{,i}>: use_ZMQB | ||
<test/*.ml{,i}>: pkg_uint.uint64 | ||
<test/*.ml{,i}>: pkg_oUnit | ||
# OASIS_STOP |
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,8 @@ | ||
#!/bin/sh | ||
|
||
# OASIS_START | ||
# DO NOT EDIT (digest: ed33e59fe00e48bc31edf413bbc8b8d6) | ||
set -e | ||
|
||
ocaml setup.ml -configure $* | ||
# OASIS_STOP |
Oops, something went wrong.