summaryrefslogtreecommitdiff
path: root/otherlibs/threads/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/threads/Makefile')
-rw-r--r--otherlibs/threads/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/otherlibs/threads/Makefile b/otherlibs/threads/Makefile
index 359f2d4298..3aa6c2acf8 100644
--- a/otherlibs/threads/Makefile
+++ b/otherlibs/threads/Makefile
@@ -15,10 +15,9 @@ include ../../config/Makefile
CC=$(BYTECC)
CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) -g
-CAMLC=$(CAMLC_BIN) -nostdlib -I ../../stdlib -I ../unix
+CAMLC=../../ocamlcomp.sh -I ../unix
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib
-COMPFLAGS=-w +33..39 -warn-error A
-CAMLC_BIN_CMD=$(CAMLC_BIN_CMD_TO_EVAL) -nostdlib -I ../../stdlib
+COMPFLAGS=-w +33..39 -warn-error A -bin-annot
C_OBJS=scheduler.o
@@ -54,13 +53,13 @@ libvmthreads.a: $(C_OBJS)
$(MKLIB) -o threads -oc vmthreads $(C_OBJS)
threads.cma: $(CAML_OBJS)
- $(MKLIB) -ocamlc "$$($(CAMLC_BIN_CMD))" -o threads -oc vmthreads $(CAML_OBJS)
+ $(MKLIB) -ocamlc '$(CAMLC)' -o threads -oc vmthreads $(CAML_OBJS)
stdlib.cma: $(LIB_OBJS)
$(CAMLC) -a -o stdlib.cma $(LIB_OBJS)
unix.cma: $(UNIXLIB_OBJS)
- $(MKLIB) -ocamlc "$$($(CAMLC_BIN_CMD))" -o unix -linkall $(UNIXLIB_OBJS)
+ $(MKLIB) -ocamlc '$(CAMLC)' -o unix -linkall $(UNIXLIB_OBJS)
pervasives.cmo: pervasives.mli pervasives.cmi pervasives.ml
$(CAMLC) ${COMPFLAGS} -nopervasives -c pervasives.ml
@@ -117,7 +116,6 @@ installopt:
$(CAMLC) -c $(COMPFLAGS) $<
.ml.cmx:
- exit 1
$(CAMLOPT) -c $(COMPFLAGS) $<
depend: