Fix Makefile

This commit is contained in:
Nathanaël Courant 2021-02-17 08:40:41 +01:00
parent 7969c70193
commit 5c53d505c1
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ GENERATED=$(OCAMLSRC)/bytecomp/opcodes.ml
$(OCAMLRUN): $(CONFIG)
make -C $(OCAMLSRC)/byterun all
make -C $(OCAMLSRC)/asmrun all
.PHONY: configure-ocaml
configure-ocaml:
@ -94,6 +95,7 @@ $(BOOT)/stdlib: $(OCAMLSRC)/stdlib $(CONFIG) $(GENERATED) patches/compflags.patc
patch $(BOOT)/stdlib/Compflags patches/compflags.patch
awk -f $(BOOT)/stdlib/expand_module_aliases.awk < $(BOOT)/stdlib/stdlib.mli > $(BOOT)/stdlib/stdlib.pp.mli
awk -f $(BOOT)/stdlib/expand_module_aliases.awk < $(BOOT)/stdlib/stdlib.ml > $(BOOT)/stdlib/stdlib.pp.ml
cp $(OCAMLSRC)/asmrun/libasmrun.a $(BOOT)/stdlib/
COPY_TARGETS=\
$(BOOT)/bytecomp \

View File

@ -224,5 +224,5 @@ compile driver/main.mli
compile driver/main.ml
#echo $COMPILER -compat-32 -o ocamlc compilerlibs/ocamlcommon.$AEXT compilerlibs/ocamlbytecomp.$AEXT driver/main.$EXT
#$COMPILER -compat-32 -o ocamlc compilerlibs/ocamlcommon.$AEXT compilerlibs/ocamlbytecomp.$AEXT driver/main.$EXT
echo $COMPILER -o ocamlc compilerlibs/ocamlcommon.$AEXT compilerlibs/ocamlbytecomp.$AEXT driver/main.$EXT -cclib "-lm -ldl -lpthread"
echo $COMPILER -o ocamlc compilerlibs/ocamlcommon.$AEXT compilerlibs/ocamlbytecomp.$AEXT driver/main.$EXT -cclib '"-lm -ldl -lpthread"'
$COMPILER -o ocamlc compilerlibs/ocamlcommon.$AEXT compilerlibs/ocamlbytecomp.$AEXT driver/main.$EXT -cclib "-lm -ldl -lpthread"