diff options
52 files changed, 152 insertions, 90 deletions
diff --git a/testsuite/interactive/lib-gc/Makefile b/testsuite/interactive/lib-gc/Makefile index 4eb07e7e9..65bd44d1f 100644 --- a/testsuite/interactive/lib-gc/Makefile +++ b/testsuite/interactive/lib-gc/Makefile @@ -1,3 +1,5 @@ +BASEDIR=../.. + default: @$(OCAMLC) -o program.byte alloc.ml @./program.byte @@ -7,4 +9,4 @@ default: clean: defaultclean @rm -fr program.* -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/interactive/lib-graph-2/Makefile b/testsuite/interactive/lib-graph-2/Makefile index 6ede5e50b..9a5c0c5f4 100644 --- a/testsuite/interactive/lib-graph-2/Makefile +++ b/testsuite/interactive/lib-graph-2/Makefile @@ -1,7 +1,8 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=graph_test #ADD_COMPFLAGS= LIBRARIES=graphics -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/interactive/lib-graph-3/Makefile b/testsuite/interactive/lib-graph-3/Makefile index a37aa33d6..6f0660a99 100644 --- a/testsuite/interactive/lib-graph-3/Makefile +++ b/testsuite/interactive/lib-graph-3/Makefile @@ -1,7 +1,8 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=sorts ADD_COMPFLAGS=-thread LIBRARIES=unix threads graphics -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/interactive/lib-graph/Makefile b/testsuite/interactive/lib-graph/Makefile index be8256585..61f472b3a 100644 --- a/testsuite/interactive/lib-graph/Makefile +++ b/testsuite/interactive/lib-graph/Makefile @@ -1,7 +1,8 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=graph_example #ADD_COMPFLAGS= LIBRARIES=graphics -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/interactive/lib-signals/Makefile b/testsuite/interactive/lib-signals/Makefile index 445f9ac70..ec22e0686 100644 --- a/testsuite/interactive/lib-signals/Makefile +++ b/testsuite/interactive/lib-signals/Makefile @@ -1,3 +1,5 @@ +BASEDIR=../.. + default: @$(OCAMLC) -o program.byte signals.ml @./program.byte @@ -7,4 +9,4 @@ default: clean: defaultclean @rm -fr program.* -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/asmcomp/Makefile b/testsuite/tests/asmcomp/Makefile index 583680dea..d0afb4cba 100644 --- a/testsuite/tests/asmcomp/Makefile +++ b/testsuite/tests/asmcomp/Makefile @@ -1,3 +1,4 @@ +BASEDIR=../.. CC=$(NATIVECC) CFLAGS=$(NATIVECCCOMPOPTS) -g @@ -139,6 +140,6 @@ power.o: power-$(SYSTEM).o @cp power-$(SYSTEM).o power.o -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common arch: $(ARCH).o diff --git a/testsuite/tests/backtrace/Makefile b/testsuite/tests/backtrace/Makefile index 68d042af0..2bd20c41f 100644 --- a/testsuite/tests/backtrace/Makefile +++ b/testsuite/tests/backtrace/Makefile @@ -1,3 +1,4 @@ +BASEDIR=../.. EXECNAME=./program run-all: @@ -13,4 +14,4 @@ run-all: clean: defaultclean @rm -f *.result $(EXECNAME) -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/basic-float/Makefile b/testsuite/tests/basic-float/Makefile index 627ed7884..dbe9b4dfe 100644 --- a/testsuite/tests/basic-float/Makefile +++ b/testsuite/tests/basic-float/Makefile @@ -1,5 +1,6 @@ +BASEDIR=../.. MODULES=float_record MAIN_MODULE=tfloat_record -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/basic-io-2/Makefile b/testsuite/tests/basic-io-2/Makefile index 9a7d2ba00..a5829bd15 100644 --- a/testsuite/tests/basic-io-2/Makefile +++ b/testsuite/tests/basic-io-2/Makefile @@ -1,6 +1,7 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=io EXEC_ARGS=io.ml -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/basic-io/Makefile b/testsuite/tests/basic-io/Makefile index b0edfabbb..ac99445b7 100644 --- a/testsuite/tests/basic-io/Makefile +++ b/testsuite/tests/basic-io/Makefile @@ -1,6 +1,7 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=wc EXEC_ARGS=wc.ml -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/basic-manyargs/Makefile b/testsuite/tests/basic-manyargs/Makefile index ef8a4f546..d84fc9baa 100644 --- a/testsuite/tests/basic-manyargs/Makefile +++ b/testsuite/tests/basic-manyargs/Makefile @@ -1,6 +1,7 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=manyargs C_FILES=manyargsprim -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/basic-more/Makefile b/testsuite/tests/basic-more/Makefile index 18f9c9b2c..329d67de8 100644 --- a/testsuite/tests/basic-more/Makefile +++ b/testsuite/tests/basic-more/Makefile @@ -1,4 +1,5 @@ +BASEDIR=../.. MODULES=testing -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/basic-multdef/Makefile b/testsuite/tests/basic-multdef/Makefile index 79660b57f..5ec6aff73 100644 --- a/testsuite/tests/basic-multdef/Makefile +++ b/testsuite/tests/basic-multdef/Makefile @@ -1,5 +1,6 @@ +BASEDIR=../.. MODULES=multdef MAIN_MODULE=usemultdef -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/basic-private/Makefile b/testsuite/tests/basic-private/Makefile index 99475d0f3..06c5591cc 100644 --- a/testsuite/tests/basic-private/Makefile +++ b/testsuite/tests/basic-private/Makefile @@ -1,5 +1,7 @@ +BASEDIR=../.. + MODULES=length MAIN_MODULE=tlength -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/basic/Makefile b/testsuite/tests/basic/Makefile index a226dd11f..4ba0bffc5 100644 --- a/testsuite/tests/basic/Makefile +++ b/testsuite/tests/basic/Makefile @@ -1,2 +1,3 @@ -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/callback/Makefile b/testsuite/tests/callback/Makefile index 0cec7e63f..92c14264d 100644 --- a/testsuite/tests/callback/Makefile +++ b/testsuite/tests/callback/Makefile @@ -1,3 +1,5 @@ +BASEDIR=../.. + CC=$(NATIVECC) -I $(TOPDIR)/byterun default: run-byte run-opt @@ -24,4 +26,4 @@ run-opt: common clean: defaultclean @rm -f *.result ./program -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/embedded/Makefile b/testsuite/tests/embedded/Makefile index 33b954422..13f8dc5c8 100644 --- a/testsuite/tests/embedded/Makefile +++ b/testsuite/tests/embedded/Makefile @@ -1,3 +1,5 @@ +BASEDIR=../.. + default: compile run compile: @@ -15,4 +17,4 @@ run: clean: defaultclean @rm -f *.result ./program -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/gc-roots/Makefile b/testsuite/tests/gc-roots/Makefile index f07d6751b..acaf918fa 100644 --- a/testsuite/tests/gc-roots/Makefile +++ b/testsuite/tests/gc-roots/Makefile @@ -1,7 +1,8 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=globroots C_FILES=globrootsprim ADD_COMPFLAGS=-w a -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-bigarray-2/Makefile b/testsuite/tests/lib-bigarray-2/Makefile index 74b02913b..678c8c88f 100644 --- a/testsuite/tests/lib-bigarray-2/Makefile +++ b/testsuite/tests/lib-bigarray-2/Makefile @@ -1,6 +1,7 @@ +BASEDIR=../.. LIBRARIES=unix bigarray C_FILES=bigarrfstub F_FILES=bigarrf -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-bigarray/Makefile b/testsuite/tests/lib-bigarray/Makefile index bb5076e75..5bfaa030e 100644 --- a/testsuite/tests/lib-bigarray/Makefile +++ b/testsuite/tests/lib-bigarray/Makefile @@ -1,4 +1,5 @@ +BASEDIR=../.. LIBRARIES=unix bigarray -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-digest/Makefile b/testsuite/tests/lib-digest/Makefile index e81a715ad..0e64db8f1 100644 --- a/testsuite/tests/lib-digest/Makefile +++ b/testsuite/tests/lib-digest/Makefile @@ -1,6 +1,7 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=md5 ADD_COMPFLAGS=-w a -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-dynlink-bytecode/Makefile b/testsuite/tests/lib-dynlink-bytecode/Makefile index 00ffc63ad..1fd4c55cf 100644 --- a/testsuite/tests/lib-dynlink-bytecode/Makefile +++ b/testsuite/tests/lib-dynlink-bytecode/Makefile @@ -1,3 +1,5 @@ +BASEDIR=../.. + default: compile run compile: @@ -33,4 +35,4 @@ run: clean: defaultclean @rm -f ./main ./static ./custom *.result -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-dynlink-csharp/Makefile b/testsuite/tests/lib-dynlink-csharp/Makefile index 774eaacac..df7b999cd 100644 --- a/testsuite/tests/lib-dynlink-csharp/Makefile +++ b/testsuite/tests/lib-dynlink-csharp/Makefile @@ -1,3 +1,4 @@ +BASEDIR=../.. CSC=csc default: prepare bytecode bytecode-dll native native-dll @@ -55,4 +56,4 @@ native-dll: clean: defaultclean @rm -f *.result *.exe *.dll -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-dynlink-native/Makefile b/testsuite/tests/lib-dynlink-native/Makefile index 49bd04a17..4b5091715 100644 --- a/testsuite/tests/lib-dynlink-native/Makefile +++ b/testsuite/tests/lib-dynlink-native/Makefile @@ -1,3 +1,6 @@ +BASEDIR=../.. + + default: compile run PLUGINS=plugin.so plugin2.so sub/plugin.so sub/plugin3.so plugin4.so mypack.so packed1.so packed1_client.so pack_client.so plugin_ref.so plugin_high_arity.so plugin_ext.so plugin_simple.so bug.so plugin_thread.so plugin4_unix.so a.so b.so c.so @@ -67,4 +70,4 @@ clean: defaultclean @rm -f *.a *.lib @rm -f sub/*.so sub/*.o sub/*.cm* sub/*.s sub/*.asm sub/*.obj -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-hashtbl/Makefile b/testsuite/tests/lib-hashtbl/Makefile index a226dd11f..4ba0bffc5 100644 --- a/testsuite/tests/lib-hashtbl/Makefile +++ b/testsuite/tests/lib-hashtbl/Makefile @@ -1,2 +1,3 @@ -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-marshal/Makefile b/testsuite/tests/lib-marshal/Makefile index df63a1fd5..1f78273d3 100644 --- a/testsuite/tests/lib-marshal/Makefile +++ b/testsuite/tests/lib-marshal/Makefile @@ -1,6 +1,7 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=intext C_FILES=intextaux -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-num-2/Makefile b/testsuite/tests/lib-num-2/Makefile index 7b7ffec4f..7a307e41c 100644 --- a/testsuite/tests/lib-num-2/Makefile +++ b/testsuite/tests/lib-num-2/Makefile @@ -1,5 +1,6 @@ +BASEDIR=../.. LIBRARIES=nums PROGRAM_ARGS=1000 -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-num/Makefile b/testsuite/tests/lib-num/Makefile index 8b7b327a0..08ebbd97f 100644 --- a/testsuite/tests/lib-num/Makefile +++ b/testsuite/tests/lib-num/Makefile @@ -1,7 +1,8 @@ +BASEDIR=../.. MODULES=test test_nats test_big_ints test_ratios test_nums test_io MAIN_MODULE=end_test ADD_COMPFLAGS=-w a LIBRARIES=nums -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-scanf-2/Makefile b/testsuite/tests/lib-scanf-2/Makefile index 90a0ea6d1..ae08884f7 100644 --- a/testsuite/tests/lib-scanf-2/Makefile +++ b/testsuite/tests/lib-scanf-2/Makefile @@ -1,3 +1,5 @@ +BASEDIR=../.. + default: compile run compile: tscanf2_io.cmo tscanf2_io.cmx @@ -18,4 +20,4 @@ run: clean: defaultclean @rm -f master.* slave.* result.* -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-scanf/Makefile b/testsuite/tests/lib-scanf/Makefile index 8f8b3c5b6..eba470147 100644 --- a/testsuite/tests/lib-scanf/Makefile +++ b/testsuite/tests/lib-scanf/Makefile @@ -1,7 +1,8 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=tscanf ADD_COMPFLAGS=-I $(BASEDIR)/lib ADD_MODULES=testing -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-str/Makefile b/testsuite/tests/lib-str/Makefile index 530ea7307..35ad3003d 100644 --- a/testsuite/tests/lib-str/Makefile +++ b/testsuite/tests/lib-str/Makefile @@ -1,4 +1,5 @@ +BASEDIR=../.. LIBRARIES=str -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-systhreads/Makefile b/testsuite/tests/lib-systhreads/Makefile index 80138b26c..8729461a7 100644 --- a/testsuite/tests/lib-systhreads/Makefile +++ b/testsuite/tests/lib-systhreads/Makefile @@ -1,5 +1,6 @@ +BASEDIR=../.. LIBRARIES=unix threads ADD_COMPFLAGS=-thread -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/lib-threads/Makefile b/testsuite/tests/lib-threads/Makefile index 80138b26c..8729461a7 100644 --- a/testsuite/tests/lib-threads/Makefile +++ b/testsuite/tests/lib-threads/Makefile @@ -1,5 +1,6 @@ +BASEDIR=../.. LIBRARIES=unix threads ADD_COMPFLAGS=-thread -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/misc-kb/Makefile b/testsuite/tests/misc-kb/Makefile index b5f5eaec9..1802e554e 100644 --- a/testsuite/tests/misc-kb/Makefile +++ b/testsuite/tests/misc-kb/Makefile @@ -1,6 +1,7 @@ +BASEDIR=../.. MODULES=terms equations orderings kb MAIN_MODULE=kbmain ADD_COMPFLAGS=-w a -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/misc-unsafe/Makefile b/testsuite/tests/misc-unsafe/Makefile index 82f7a72d6..f4a8b4e3b 100644 --- a/testsuite/tests/misc-unsafe/Makefile +++ b/testsuite/tests/misc-unsafe/Makefile @@ -1,3 +1,4 @@ +BASEDIR=../.. UNSAFE=ON -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/misc/Makefile b/testsuite/tests/misc/Makefile index a226dd11f..4ba0bffc5 100644 --- a/testsuite/tests/misc/Makefile +++ b/testsuite/tests/misc/Makefile @@ -1,2 +1,3 @@ -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/runtime-errors/Makefile b/testsuite/tests/runtime-errors/Makefile index 4945c1f80..62543b4dd 100644 --- a/testsuite/tests/runtime-errors/Makefile +++ b/testsuite/tests/runtime-errors/Makefile @@ -1,3 +1,5 @@ +BASEDIR=../.. + default: compile run compile: @@ -22,4 +24,4 @@ run: clean: defaultclean @rm -f *.bytecode *.native *.result -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/tool-lexyacc/Makefile b/testsuite/tests/tool-lexyacc/Makefile index b9260a545..3d7f49be9 100644 --- a/testsuite/tests/tool-lexyacc/Makefile +++ b/testsuite/tests/tool-lexyacc/Makefile @@ -1,3 +1,4 @@ +BASEDIR=../.. MODULES=syntax gram_aux grammar scan_aux scanner lexgen output MAIN_MODULE=main LEX_MODULES=scanner @@ -5,5 +6,5 @@ YACC_MODULES=grammar ADD_COMPFLAGS=-w a EXEC_ARGS=input -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/tool-ocaml/Makefile b/testsuite/tests/tool-ocaml/Makefile index 2b2940fba..626a0c261 100644 --- a/testsuite/tests/tool-ocaml/Makefile +++ b/testsuite/tests/tool-ocaml/Makefile @@ -1,3 +1,4 @@ +BASEDIR=../.. SHOULD_FAIL=t060-raise.ml compile: lib.cmo @@ -13,4 +14,4 @@ compile: lib.cmo clean: defaultclean @rm -f ./a.out -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/tool-ocamldoc/Makefile b/testsuite/tests/tool-ocamldoc/Makefile index 5e7398ba7..672721c1e 100644 --- a/testsuite/tests/tool-ocamldoc/Makefile +++ b/testsuite/tests/tool-ocamldoc/Makefile @@ -1,3 +1,4 @@ +BASEDIR=../.. CUSTOM_MODULE=odoc_test ADD_COMPFLAGS=-I +ocamldoc @@ -14,4 +15,4 @@ run: $(CUSTOM_MODULE).cmo clean: defaultclean @rm -f *.result *.html *.tex *.log *.out *.sty *.toc *.css *.aux -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-fstclassmod/Makefile b/testsuite/tests/typing-fstclassmod/Makefile index a8a962291..ea38ed37b 100644 --- a/testsuite/tests/typing-fstclassmod/Makefile +++ b/testsuite/tests/typing-fstclassmod/Makefile @@ -1,6 +1,7 @@ +BASEDIR=../.. #MODULES= MAIN_MODULE=fstclassmod ADD_COMPFLAGS=-w a -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-labels/Makefile b/testsuite/tests/typing-labels/Makefile index a226dd11f..4ba0bffc5 100644 --- a/testsuite/tests/typing-labels/Makefile +++ b/testsuite/tests/typing-labels/Makefile @@ -1,2 +1,3 @@ -include ../../makefiles/Makefile.several -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.several +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-objects-bugs/Makefile b/testsuite/tests/typing-objects-bugs/Makefile index 9375ddba6..1b07f2060 100644 --- a/testsuite/tests/typing-objects-bugs/Makefile +++ b/testsuite/tests/typing-objects-bugs/Makefile @@ -1,2 +1,3 @@ -include ../../makefiles/Makefile.okbad -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.okbad +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-objects/Makefile b/testsuite/tests/typing-objects/Makefile index 9add15574..5f42b7057 100644 --- a/testsuite/tests/typing-objects/Makefile +++ b/testsuite/tests/typing-objects/Makefile @@ -1,3 +1,4 @@ -include ../../makefiles/Makefile.toplevel -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.toplevel +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-poly/Makefile b/testsuite/tests/typing-poly/Makefile index 9add15574..5f42b7057 100644 --- a/testsuite/tests/typing-poly/Makefile +++ b/testsuite/tests/typing-poly/Makefile @@ -1,3 +1,4 @@ -include ../../makefiles/Makefile.toplevel -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.toplevel +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-polyvariants-bugs-2/Makefile b/testsuite/tests/typing-polyvariants-bugs-2/Makefile index 3f01800ff..9ecfbe381 100644 --- a/testsuite/tests/typing-polyvariants-bugs-2/Makefile +++ b/testsuite/tests/typing-polyvariants-bugs-2/Makefile @@ -1,7 +1,8 @@ +BASEDIR=../.. default: @printf " ... testing 'pr3918':" @($(OCAMLC) -c pr3918a.mli && $(OCAMLC) -c pr3918b.mli && $(OCAMLC) -c pr3918c.ml && echo " => passed") || echo " => failed" clean: defaultclean -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-polyvariants-bugs/Makefile b/testsuite/tests/typing-polyvariants-bugs/Makefile index 9375ddba6..1b07f2060 100644 --- a/testsuite/tests/typing-polyvariants-bugs/Makefile +++ b/testsuite/tests/typing-polyvariants-bugs/Makefile @@ -1,2 +1,3 @@ -include ../../makefiles/Makefile.okbad -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.okbad +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-private-bugs/Makefile b/testsuite/tests/typing-private-bugs/Makefile index 9375ddba6..1b07f2060 100644 --- a/testsuite/tests/typing-private-bugs/Makefile +++ b/testsuite/tests/typing-private-bugs/Makefile @@ -1,2 +1,3 @@ -include ../../makefiles/Makefile.okbad -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.okbad +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-private/Makefile b/testsuite/tests/typing-private/Makefile index 9add15574..5f42b7057 100644 --- a/testsuite/tests/typing-private/Makefile +++ b/testsuite/tests/typing-private/Makefile @@ -1,3 +1,4 @@ -include ../../makefiles/Makefile.toplevel -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.toplevel +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-recmod/Makefile b/testsuite/tests/typing-recmod/Makefile index 9375ddba6..1b07f2060 100644 --- a/testsuite/tests/typing-recmod/Makefile +++ b/testsuite/tests/typing-recmod/Makefile @@ -1,2 +1,3 @@ -include ../../makefiles/Makefile.okbad -include ../../makefiles/Makefile.common +BASEDIR=../.. +include $(BASEDIR)/makefiles/Makefile.okbad +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/typing-typeparam/Makefile b/testsuite/tests/typing-typeparam/Makefile index ef9558e19..d480252c5 100644 --- a/testsuite/tests/typing-typeparam/Makefile +++ b/testsuite/tests/typing-typeparam/Makefile @@ -1,6 +1,7 @@ #MODULES= -MAIN_MODULE=newtype +MAIN_MOBASEDIR=../.. +DULE=newtype ADD_COMPFLAGS=-w a -include ../../makefiles/Makefile.one -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.one +include $(BASEDIR)/makefiles/Makefile.common diff --git a/testsuite/tests/warnings/Makefile b/testsuite/tests/warnings/Makefile index 1c60154ee..8a4c3dd9b 100644 --- a/testsuite/tests/warnings/Makefile +++ b/testsuite/tests/warnings/Makefile @@ -1,3 +1,4 @@ +BASEDIR=../.. FLAGS=-w A EXECNAME=./program @@ -11,4 +12,4 @@ run-all: clean: defaultclean @rm -f *.result $(EXECNAME) -include ../../makefiles/Makefile.common +include $(BASEDIR)/makefiles/Makefile.common |