summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--otherlibs/systhreads/Tests/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/otherlibs/systhreads/Tests/Makefile b/otherlibs/systhreads/Tests/Makefile
index 4e684887c..7e471f059 100644
--- a/otherlibs/systhreads/Tests/Makefile
+++ b/otherlibs/systhreads/Tests/Makefile
@@ -4,8 +4,6 @@ PROGS=test1.byt test2.byt test3.byt test4.byt test5.byt test6.byt \
include ../../../config/Makefile
-VPATH=../../threads/Tests
-
CAMLC=../../../boot/ocamlrun ../../../ocamlc -I .. -I ../../unix -I ../../../stdlib
CAMLOPT=../../../boot/ocamlrun ../../../ocamlopt -I .. -I ../../unix -I ../../../stdlib
@@ -18,14 +16,12 @@ clean:
rm -f *.cm* *.byt *.out
rm -f $(PROGS:.byt=.ml)
-.SUFFIXES: .ml .byt .out
-
-.ml.byt:
+%.byt: ../../threads/Tests/%.ml
cp ../../threads/Tests/$*.ml $*.ml
$(CAMLC) -custom -o $*.byt unix.cma threads.cma $*.ml ../libthreads.a ../../unix/libunix.a -cclib -lpthread
-.ml.out:
+%.out: ../../threads/Tests/%.ml
cp ../../threads/Tests/$*.ml $*.ml
$(CAMLOPT) -o $*.out unix.cmxa threads.cmxa $*.ml ../libthreadsnat.a ../../unix/libunix.a -cclib -lpthread
-$(PROGS): ../threads.cma ../libthreads.a ../stdlib.cma
+$(PROGS): ../threads.cma ../libthreads.a