forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (27 loc) · 1.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
NATIVE=ocamlopt.opt
OCAMLOPT_FLAGS= -g -w -40-30 ../jscomp/stubs/ext_basic_hash_stubs.c
# -inline 1000 makes size too large
# TODO: make sure it can be bootstrapped, at least is a very good
# test case of our optimizations
bsppx.exe: bsppx.mli bsppx.ml
$(NATIVE) $(OCAMLOPT_FLAGS) $^ -o $@
bspp.exe: bspp.mli bspp.ml
$(NATIVE) $(OCAMLOPT_FLAGS) $^ -o $@
bsdep.exe: bsdep.mli bsdep.ml
$(NATIVE) $(OCAMLOPT_FLAGS) $^ -o $@
bsb.exe: bsb.mli bsb.ml
$(NATIVE) $(OCAMLOPT_FLAGS) unix.cmxa str.cmxa $^ -o $@
bsb_helper.exe: bsb_helper.mli bsb_helper.ml
$(NATIVE) $(OCAMLOPT_FLAGS) unix.cmxa -w -a $^ -o $@
refmt.exe: refmt_main3.mli refmt_main3.ml
$(NATIVE) -w -40-30 -no-alias-deps -I +compiler-libs ocamlcommon.cmxa $^ -o $@
reactjs_jsx_ppx_2.exe:reactjs_jsx_ppx_v2.mli reactjs_jsx_ppx_v2.ml
$(NATIVE) -w -40-30 -no-alias-deps -I +compiler-libs ocamlcommon.cmxa $^ -o $@
bsc.exe: whole_compiler.mli whole_compiler.ml
$(NATIVE) $(OCAMLOPT_FLAGS) $^ -o $@
all: bsc.exe bsb.exe bsppx.exe bsb_helper.exe refmt.exe reactjs_jsx_ppx_2.exe
# bspp.exe bsdep.exe
# bspack.exe
# bsppx.exe is needed for merlin
# reactjs_jsx_ppx_3.exe
# .PHONY: test