1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
TOP_DIR = ../..
include $(TOP_DIR)/Makefile.rules
REQUIRES = rpc,unix,netplex
OBJ = operation_aux.cmo operation_clnt.cmo operation_srv.cmo
XOBJ = $(OBJ:.cmo=.cmx)
OCAMLC_OPTIONS = -custom -g
OCAMLOPT_OPTIONS = -g
all: testlib.cma test_client helper_container helloworld lever internal_service
opt: testlib.cmxa test_client.opt helper_container.opt helloworld.opt lever.opt internal_service.opt
helper_container: testlib.cma helper_container.ml
$(OCAMLC) -o helper_container testlib.cma helper_container.ml -linkpkg -thread
helper_container.opt: testlib.cmxa helper_container.ml
$(OCAMLOPT) -o helper_container.opt testlib.cmxa helper_container.ml -linkpkg -thread
helloworld: testlib.cma helloworld.ml
$(OCAMLC) -o helloworld testlib.cma helloworld.ml -linkpkg -thread
helloworld.opt: testlib.cmxa helloworld.ml
$(OCAMLOPT) -o helloworld.opt testlib.cmxa helloworld.ml -linkpkg -thread
internal_service: testlib.cma internal_service.ml
$(OCAMLC) -o internal_service testlib.cma internal_service.ml -linkpkg -thread
internal_service.opt: testlib.cmxa internal_service.ml
$(OCAMLOPT) -o internal_service.opt testlib.cmxa internal_service.ml -linkpkg -thread
lever: testlib.cma lever.ml
$(OCAMLC) -o lever testlib.cma lever.ml -linkpkg -thread
lever.opt: testlib.cmxa lever.ml
$(OCAMLOPT) -o lever.opt testlib.cmxa lever.ml -linkpkg -thread
test_client: testlib.cma test_client.ml
$(OCAMLC) -o test_client testlib.cma test_client.ml -linkpkg
test_client.opt: testlib.cmxa test_client.ml
$(OCAMLOPT) -o test_client.opt testlib.cmxa test_client.ml -linkpkg
testlib.cma: $(OBJ)
$(OCAMLC) -o testlib.cma -a $(OBJ)
testlib.cmxa: $(XOBJ)
$(OCAMLOPT) -o testlib.cmxa -a $(XOBJ)
include depend
|