Commits

camlspotter committed 8e2c49f Draft

default rule is now the test

Comments (0)

Files changed (1)

ojacare/examples/point_from_java/Makefile

 # Liste des classes Java ayant l'attribut callback 
 CBCLASS   = mypack/ColoredPoint
 
+run: $(addsuffix .class, $(CLASS)) $(addsuffix .class, $(addprefix callback/, $(CBCLASS))) libOCaml.so
+	LD_LIBRARY_PATH=.:`ocamlfind printconf destdir`/camljava:`ocamlc -where` CLASSPATH=.:mypack:callback/mypack:`ocamlfind printconf destdir`/camljava/camljava.jar java Main
+
 cmo.o: p.cmo main-point.cmo
 	ocamlfind ocamlc -verbose -output-obj -o cmo.o -package camljava,ojacare  -linkpkg     p.cmo  main-point.cmo
 
 libOCaml.so: cmo.o
 	ld -shared cmo.o -L`ocamlc -where` -L`ocamlfind printconf destdir`/camljava -lcamljni_shared -lcamlrun_shared -ldl -lm -lncurses -o $@ 
 
-run: $(addsuffix .class, $(CLASS)) $(addsuffix .class, $(addprefix callback/, $(CBCLASS))) libOCaml.so
-	LD_LIBRARY_PATH=.:`ocamlfind printconf destdir`/camljava:`ocamlc -where` CLASSPATH=.:mypack:callback/mypack:`ocamlfind printconf destdir`/camljava/camljava.jar java Main
-
 clean::
 	rm *.so