Skip to content

Commit c7d67af

Browse files
committed
bspp standalone
1 parent 9f11f8f commit c7d67af

15 files changed

+20527
-438
lines changed

jscomp/Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ js_fold.ml:js_fold.mlp j.ml
4444
./bin/bsppx.exe: ./bin/config_bsppx.mli ./bin/config_bsppx.ml ./bin/bsppx.mli ./bin/bsppx.ml
4545
$(NATIVE) -g -inline 1000 -linkall -w -a -I bin $^ -o $@
4646

47+
./bin/bspp.exe: ./bin/config_bspp.mli ./bin/config_bspp.ml ./bin/bspp.mli ./bin/bspp.ml
48+
$(NATIVE) -g -inline 1000 -linkall -w -a -I bin $^ -o $@
49+
4750
./bin/bsdep.exe: ./bin/config_bsdep.mli ./bin/config_bsdep.ml ./bin/bsdep.mli ./bin/bsdep.ml
4851
$(NATIVE) -g -inline 1000 -linkall -w -a -I bin $^ -o $@
4952

@@ -56,6 +59,7 @@ snapshotml:./bin/bspack.exe ./bin/compiler.mllib
5659
$< -bs-log-mllib bin/bsppx.mllib -prelude-str 'module Config = Config_bsppx' -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing/ -I common -I ext -I syntax -bs-main bsppx_main.ml -o bin/bsppx.ml
5760
$< -bs-log-mllib bin/whole_compiler.mllib -prelude-str 'module Config = Config_whole_compiler' -bs-exclude-I config -o bin/whole_compiler.ml -bs-main js_main.ml -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I ext -I syntax -I depends -I common
5861
$< -bs-log-mllib bin/bsdep.mllib -prelude-str 'module Config = Config_bsdep' -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/driver -I common -I ext -I syntax -I depends -bs-main bsdep_main.ml -o bin/bsdep.ml
62+
$< -bs-log-mllib bin/bspp.mllib -prelude-str 'module Config = Config_bspp' -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing/ -I common -I ext -I syntax -I depends -bs-main bspp_main.ml -o bin/bspp.ml
5963

6064
snapshotcmj:
6165
@echo "Collecting cmj files"
@@ -97,12 +101,13 @@ libs:
97101
cd others && $(MAKE) all
98102
@echo "Making others finished"
99103

100-
releasebuild:./bin/bspack.exe
104+
releasebuild:
101105
@echo "Make release compiler"
102106
$(NATIVE) -g -inline 1000 -linkall -w -a -I +compiler-libs -I bin ocamlcommon.cmxa bin/compiler.mli bin/compiler.ml -o bin/bsc.exe
103107
@echo "Make release ppx"
104108
$(NATIVE) -g -inline 1000 -linkall -w -a -I bin bin/config_bsppx.mli bin/config_bsppx.ml bin/bsppx.mli bin/bsppx.ml -o bin/bsppx.exe
105109
$(NATIVE) -g -inline 1000 -linkall -w -a -I bin bin/config_bsdep.mli bin/config_bsdep.ml bin/bsdep.mli bin/bsdep.ml -o bin/bsdep.exe
110+
$(NATIVE) -g -inline 1000 -linkall -w -a -I bin bin/config_bspp.mli bin/config_bspp.ml bin/bspp.mli bin/bspp.ml -o bin/bspp.exe
106111

107112
release:snapshot
108113
$(MAKE) releasebuild
@@ -119,6 +124,7 @@ dist-world:
119124
$(MAKE) bin/bspack.exe
120125
$(MAKE) bin/bsppx.exe
121126
$(MAKE) bin/bsdep.exe
127+
$(MAKE) bin/bspp.exe
122128
$(MAKE) libs
123129

124130

@@ -138,7 +144,7 @@ DEST_BIN=../bin
138144
install:
139145
@echo "copy exe"
140146
mkdir -p $(DEST_BIN) $(DEST)
141-
cp ./bin/bsc.exe ./bin/bsppx.exe ./bin/bspack.exe ./bin/bsdep.exe $(DEST_BIN)
147+
cp ./bin/bsc.exe ./bin/bsppx.exe ./bin/bspack.exe ./bin/bsdep.exe ./bin/bsdep.exe $(DEST_BIN)
142148
@echo "copy stdlib"
143149
cp ./runtime/*.cmt* ./runtime/*.cmj* ./stdlib/*.cm* ./others/*.ml ./others/*.mli ./others/*.cm* \
144150
./runtime/js.ml ./runtime/js.cmi ./runtime/js_unsafe.cmi ./runtime/js_null.ml ./runtime/js_null.cmi \

0 commit comments

Comments
 (0)