1996-09-09 05:35:10 -07:00
|
|
|
PROGS=test1.byt test2.byt test3.byt test4.byt test5.byt test6.byt \
|
1998-08-08 11:42:22 -07:00
|
|
|
test7.byt test8.byt test9.byt testA.byt sieve.byt \
|
1998-08-08 09:54:45 -07:00
|
|
|
testio.byt testsocket.byt testwait.byt testsignal.byt testsignal2.byt \
|
|
|
|
torture.byt
|
1996-09-09 05:35:10 -07:00
|
|
|
|
|
|
|
include ../../../config/Makefile
|
|
|
|
|
1997-05-14 02:43:45 -07:00
|
|
|
CAMLC=../../../boot/ocamlrun ../../../ocamlc -I .. -I ../../unix -I ../../../stdlib
|
|
|
|
|
1997-08-29 08:37:22 -07:00
|
|
|
CAMLOPT=../../../boot/ocamlrun ../../../ocamlopt -I .. -I ../../unix -I ../../../stdlib
|
|
|
|
|
1996-09-09 05:35:10 -07:00
|
|
|
all: $(PROGS)
|
|
|
|
|
1997-08-29 08:37:22 -07:00
|
|
|
allopt: $(PROGS:.byt=.out)
|
|
|
|
|
1996-09-09 05:35:10 -07:00
|
|
|
clean:
|
1997-08-29 08:37:22 -07:00
|
|
|
rm -f *.cm* *.byt *.out
|
1996-09-09 05:35:10 -07:00
|
|
|
rm -f $(PROGS:.byt=.ml)
|
|
|
|
|
1997-10-24 08:53:09 -07:00
|
|
|
%.byt: ../../threads/Tests/%.ml
|
1996-09-09 05:35:10 -07:00
|
|
|
cp ../../threads/Tests/$*.ml $*.ml
|
1998-04-07 05:50:19 -07:00
|
|
|
$(CAMLC) -custom -o $*.byt unix.cma threads.cma $*.ml ../libthreads.a ../../unix/libunix.a -cclib -lpthread
|
1996-09-09 05:35:10 -07:00
|
|
|
|
1997-10-24 08:53:09 -07:00
|
|
|
%.out: ../../threads/Tests/%.ml
|
1997-08-29 08:37:22 -07:00
|
|
|
cp ../../threads/Tests/$*.ml $*.ml
|
1998-04-07 05:50:19 -07:00
|
|
|
$(CAMLOPT) -o $*.out unix.cmxa threads.cmxa $*.ml ../libthreadsnat.a ../../unix/libunix.a -cclib -lpthread
|
1997-08-29 08:37:22 -07:00
|
|
|
|
1997-10-24 08:53:09 -07:00
|
|
|
$(PROGS): ../threads.cma ../libthreads.a
|