Skip to content

Commit

Permalink
modifications for 4.00.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Aug 31, 2012
1 parent c376545 commit 659691f
Show file tree
Hide file tree
Showing 23 changed files with 997 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -31,3 +31,4 @@ try-js_of_ocaml/lessons.ml
try-js_of_ocaml/lessons.mli try-js_of_ocaml/lessons.mli
try-js_of_ocaml/try-js_of_ocaml.js try-js_of_ocaml/try-js_of_ocaml.js
try-js_of_ocaml/try-ocaml.js try-js_of_ocaml/try-ocaml.js
Makefile.config
7 changes: 6 additions & 1 deletion Makefile
@@ -1,4 +1,6 @@
all:

all: Makefile.config
$(MAKE) -C js_of_ocaml $(MAKE) -C js_of_ocaml
$(MAKE) -C js_of_ocaml/compiler compiler.cma $(MAKE) -C js_of_ocaml/compiler compiler.cma
$(MAKE) -C cmicomp $(MAKE) -C cmicomp
Expand All @@ -9,6 +11,9 @@ all:
$(MAKE) -C try-ocaml $(MAKE) -C try-ocaml
$(MAKE) -C try-js_of_ocaml $(MAKE) -C try-js_of_ocaml


Makefile.config:
./configure

clean: clean:
$(MAKE) -C js_of_ocaml clean $(MAKE) -C js_of_ocaml clean
$(MAKE) -C ocp-jslib clean $(MAKE) -C ocp-jslib clean
Expand Down
10 changes: 0 additions & 10 deletions Makefile.config

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile.tryocaml
Expand Up @@ -18,8 +18,7 @@ CMOS= $(SOURCES:.ml=.cmo)


############### TRYOCAML_NAME=toplevel ############### TRYOCAML_NAME=toplevel
# remove this variable to use the default ocaml toplevel # remove this variable to use the default ocaml toplevel
INCLUDE_TOPLEVELLIB= -I $(TOPLEVELLIB_DIR)/ include $(ROOT)/toplevellib-$(OCAMLVNUM)/Makefile.config
TOPLEVELLIB=$(TOPLEVELLIB_DIR)/




COMP=$(JS_DIR)/compiler/js_of_ocaml COMP=$(JS_DIR)/compiler/js_of_ocaml
Expand Down Expand Up @@ -77,7 +76,7 @@ TOPLEVEL_CMIS=$(TOPLEVEL_DIR)/toplevel.cmi
TOPLEVEL_CMOS=$(TOPLEVEL_DIR)/toplevel.cmo $(TOPLEVEL_DIR)/topmain.cmo TOPLEVEL_CMOS=$(TOPLEVEL_DIR)/toplevel.cmo $(TOPLEVEL_DIR)/topmain.cmo
TOPLEVEL_CMAS= \ TOPLEVEL_CMAS= \
$(CMICOMP_DIR)/js_of_ocaml.cma $(JS_DIR)/compiler/compiler.cma \ $(CMICOMP_DIR)/js_of_ocaml.cma $(JS_DIR)/compiler/compiler.cma \
$(TOPLEVELLIB)toplevellib.cma \ $(TOPLEVELLIB_CMAS) \
$(OCAMLNUM_DIR)/ocaml-num.cma \ $(OCAMLNUM_DIR)/ocaml-num.cma \
lessons.cmo \ lessons.cmo \
$(TUTORIAL_DIR)/tutorial.cma \ $(TUTORIAL_DIR)/tutorial.cma \
Expand All @@ -86,6 +85,7 @@ TOPLEVEL_CMAS= \
INCLUDES= \ INCLUDES= \
-I $(CMICOMP_DIR) \ -I $(CMICOMP_DIR) \
-I $(JS_DIR)/compiler \ -I $(JS_DIR)/compiler \
-I $(JS_DIR)/lib \
-I $(TUTORIAL_DIR)/ \ -I $(TUTORIAL_DIR)/ \
$(INCLUDE_TOPLEVELLIB) \ $(INCLUDE_TOPLEVELLIB) \
-I $(OCAMLNUM_DIR) \ -I $(OCAMLNUM_DIR) \
Expand Down
8 changes: 5 additions & 3 deletions cmicomp/Makefile
@@ -1,18 +1,20 @@
# cmicomp is a pure bytecode copy of ocp-cmi-compress, itself a restriction
# of ocp-cmi, to avoid non dynamic dependencies


JS_CMIS= \ JS_CMIS= \
CSS.cmi event_arrows.cmi js.cmi typed_array.cmi \ CSS.cmi event_arrows.cmi js.cmi typed_array.cmi \
dom.cmi file.cmi json.cmi url.cmi \ dom.cmi file.cmi json.cmi url.cmi \
dom_events.cmi firebug.cmi lwt_js.cmi webGL.cmi \ dom_events.cmi firebug.cmi lwt_js.cmi webGL.cmi \
dom_html.cmi form.cmi regexp.cmi xmlHttpRequest.cmi dom_html.cmi form.cmi regexp.cmi xmlHttpRequest.cmi


all: cmicomp $(JS_CMIS) all: $(TOPLEVELLIB_DIR)/cmicomp $(JS_CMIS)


ROOT=.. ROOT=..
include $(ROOT)/Makefile.config include $(ROOT)/Makefile.config


CMICOMP=./cmicomp CMICOMP=$(TOPLEVELLIB_DIR)/cmicomp


$(JS_CMIS): $(JS_DIR)/lib/*.cmi $(JS_CMIS): $(JS_DIR)/lib/*.cmi
cp -f $(JS_DIR)/lib/*.cmi . cp -f $(JS_DIR)/lib/*.cmi .
cp -f $(JS_DIR)/lib/js_of_ocaml.cma . cp -f $(JS_DIR)/lib/js_of_ocaml.cma .
$(CMICOMP) -without-log $(JS_CMIS) $(CMICOMP) compress $(JS_CMIS)
16 changes: 16 additions & 0 deletions configure
@@ -0,0 +1,16 @@
#!/bin/sh
echo Generating Makefile.config

echo OCAMLC=ocamlc > Makefile.config.temp
echo OCAMLDEP=ocamldep.opt >> Makefile.config.temp
echo OCAMLVNUM=`ocamlc -version` >> Makefile.config.temp
echo 'JS_DIR=$(ROOT)/js_of_ocaml' >> Makefile.config.temp
echo 'TOPLEVEL_DIR=$(ROOT)/toplevel' >> Makefile.config.temp
echo 'OCAMLNUM_DIR=$(ROOT)/ocaml-num' >> Makefile.config.temp
echo 'TUTORIAL_DIR=$(ROOT)/tutorial' >> Makefile.config.temp
echo 'TOPLEVELLIB_DIR=$(ROOT)/toplevellib-$(OCAMLVNUM)' >> Makefile.config.temp
echo 'CMICOMP_DIR=$(ROOT)/cmicomp' >> Makefile.config.temp
echo 'OCPJSLIB_DIR=$(ROOT)/ocp-jslib' >> Makefile.config.temp

mv Makefile.config.temp Makefile.config
echo Makefile.config generated
3 changes: 3 additions & 0 deletions toplevellib-3.12.1/Makefile.config
@@ -0,0 +1,3 @@
TOPLEVELLIB_CMAS=$(TOPLEVELLIB_DIR)/toplevellib.cma
INCLUDE_TOPLEVELLIB= -I $(TOPLEVELLIB_DIR)/
TOPLEVELLIB=$(TOPLEVELLIB_DIR)/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions toplevellib-4.00.0/Makefile.config
@@ -0,0 +1,7 @@
TOPLEVELLIB_CMAS=\
$(TOPLEVELLIB_DIR)/ocamlcommon.cma \
$(TOPLEVELLIB_DIR)/ocamlbytecomp.cma \
$(TOPLEVELLIB_DIR)/ocamltoplevel.cma \

INCLUDE_TOPLEVELLIB= -I $(TOPLEVELLIB_DIR)/
TOPLEVELLIB=$(TOPLEVELLIB_DIR)/
Binary file added toplevellib-4.00.0/clflags.cmi
Binary file not shown.
Binary file added toplevellib-4.00.0/cmicomp
Binary file not shown.

0 comments on commit 659691f

Please sign in to comment.