Skip to content

Commit

Permalink
initial import of mirage networking libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Jun 20, 2012
1 parent dbea88c commit 89427db
Show file tree
Hide file tree
Showing 1,638 changed files with 1,713 additions and 167,305 deletions.
27 changes: 1 addition & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
*~
\#*
.#*
*.annot
*.o
*.orig

_build/

docs/parse.native

tools/*/*.native
tools/fs/mir-fs-*

regress/myocamlbuild.ml
regress/*/myocamlbuild.ml
tests/*/*/myocamlbuild.ml

lib/.init
syntax.init
.*.swp
*.odoc
CVS/
doc/html/
/screenlog.*
tools/fs/*.o
_build
36 changes: 0 additions & 36 deletions INSTALL.md

This file was deleted.

56 changes: 9 additions & 47 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,51 +1,13 @@
.PHONY: all clean
.DEFAULT: all
-include Makefile.config

SUDO ?= sudo
export SUDO

DESTDIR ?=
export DESTDIR

PREFIX ?= $(HOME)/mir-inst
export PREFIX
MODE ?= direct

JOBS ?= -j 6
export JOBS

MIR-DEBUG ?= 0
export MIR-DEBUG
.PHONY: all clean install test
.DEFAULT: all

all:
@cd tools && $(MAKE)
@cd syntax && $(MAKE)
@cd lib && $(MAKE)

doc:
@cd docs && $(MAKE) all
@cd lib && $(MAKE) doc

doc-json:
@./docs/_build/parse.native lib/_build/unix-socket > docs/_build/unix-socket.json
@./docs/_build/parse.native lib/_build/unix-direct > docs/_build/unix-direct.json
@./docs/_build/parse.native lib/_build/node > docs/_build/node.json
# @./docs/_build/parse.native lib/_build/xen > docs/_build/xen.json


install:
@rm -rf _build
@./assemble.sh
@mkdir -p $(PREFIX)
@cp -r _build/* $(PREFIX)/

cd $(MODE) && $(MAKE) all
clean:
@cd syntax && $(MAKE) clean
@cd lib && $(MAKE) clean
@cd tools && $(MAKE) clean
@cd regress && $(MAKE) clean
@cd docs && $(MAKE) clean
@rm -rf _build

install-el:
@cd scripts/caml-mode && $(MAKE) install-el
cd $(MODE) && $(MAKE) clean
install:
cd $(MODE) && $(MAKE) install
test:
cd $(MODE) && $(MAKE) test
66 changes: 0 additions & 66 deletions NOTES.md

This file was deleted.

22 changes: 0 additions & 22 deletions README.md

This file was deleted.

99 changes: 0 additions & 99 deletions assemble.sh

This file was deleted.

5 changes: 5 additions & 0 deletions direct/META.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version = "@VERSION@"
description = "TCP/IP networking stack"
archive(byte) = "net.cma"
archive(native) = "net.cmxa"
requires = "mirage"
16 changes: 16 additions & 0 deletions direct/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: all clean depend install

PREFIX ?= /usr/local
INSTALLDIR := $(DESTDIR)$(PREFIX)
INCLUDE := $(INSTALLDIR)/include/mirage
XEN_INCLUDE := $(INCLUDE)/xen

all:
./cmd configure
./cmd build

install:
./cmd install

clean:
./cmd clean
4 changes: 4 additions & 0 deletions direct/_config/archives.byte
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bigarray.cma
cstruct.cma
lwt.cma
oS.cma
4 changes: 4 additions & 0 deletions direct/_config/archives.native
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bigarray.cmxa
cstruct.cmxa
lwt.cmxa
oS.cmxa
1 change: 1 addition & 0 deletions direct/_config/cflags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions direct/_config/clibs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions direct/_config/deps
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mirage
1 change: 1 addition & 0 deletions direct/_config/extra
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

File renamed without changes.
Empty file added direct/_config/flag.opt
Empty file.
7 changes: 7 additions & 0 deletions direct/_config/flags.ocaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-I /home/avsm/.opam/foo/lib/cstruct
-I /home/avsm/.opam/foo/lib/ocaml/camlp4
-I /home/avsm/.opam/foo/lib/cstruct
-I /home/avsm/.opam/foo/lib/lwt
-I /home/avsm/.opam/foo/lib/lwt
-I /home/avsm/.opam/foo/lib/lwt
-I /home/avsm/.opam/foo/lib/mirage
1 change: 1 addition & 0 deletions direct/_config/lib
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
net
1 change: 1 addition & 0 deletions direct/_config/name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mirage-net
1 change: 1 addition & 0 deletions direct/_config/syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

5 changes: 5 additions & 0 deletions direct/_config/syntax.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-I /home/avsm/.opam/foo/lib/ocaml/camlp4
-I /home/avsm/.opam/foo/lib/ocaml/camlp4 -parser Camlp4QuotationCommon -parser Camlp4OCamlOriginalQuotationExpander
-I /home/avsm/.opam/foo/lib/ocaml
-I /home/avsm/.opam/foo/lib/ocaml/camlp4
-I /home/avsm/.opam/foo/lib/ocaml/camlp4 -parser Camlp4GrammarParser
7 changes: 7 additions & 0 deletions direct/_config/syntax.deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-I /home/avsm/.opam/foo/lib/cstruct
-I /home/avsm/.opam/foo/lib/ocaml/camlp4
-I /home/avsm/.opam/foo/lib/cstruct cstruct-syntax.cma
-I /home/avsm/.opam/foo/lib/lwt
-I /home/avsm/.opam/foo/lib/lwt lwt-syntax-options.cma
-I /home/avsm/.opam/foo/lib/lwt lwt-syntax.cma
-I /home/avsm/.opam/foo/lib/mirage
11 changes: 11 additions & 0 deletions direct/_tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<lib/*>: for-pack(Net)
<lib/dhcp/*>: for-pack(Net.Dhcp)
<lib/tcp/*>: for-pack(Net.Tcp)
<lib/dhcp/dhcp.*>: for-repack(Net)
<lib/tcp/tcp.*>: for-repack(Net)
"lib": include
"lib/tcp": include
"lib/dhcp": include
<lib_test/*>: use_lib, custom
<syntax/*>: build_syntax
true: camlp4o
Loading

0 comments on commit 89427db

Please sign in to comment.