File: Makefile2.code

package info (click to toggle)
ocamlnet 4.1.9-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 54,024 kB
  • sloc: ml: 151,939; ansic: 11,071; sh: 2,003; makefile: 1,310
file content (38 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (8)
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
TOP_DIR = ../../..
include $(TOP_DIR)/Makefile.rules

REQUIRES = rpc,unix,netplex
OBJ = sort2_proto_aux.cmo sort2_proto_clnt.cmo sort2_proto_srv.cmo \
      sort2_worker.cmo sort2_controller.cmo
SRV_EXPLICIT_OBJ = sort2_server.cmo
CLNT_EXPLICIT_OBJ = sort2_client.cmo

XOBJ = $(OBJ:.cmo=.cmx)
SRV_EXPLICIT_XOBJ = $(SRV_EXPLICIT_OBJ:.cmo=.cmx)
CLNT_EXPLICIT_XOBJ = $(CLNT_EXPLICIT_OBJ:.cmo=.cmx)

CLEAN_LIST += *.run *.opt

all: sort2lib.cma sort2_server.run sort2_client.run

opt: sort2lib.cmxa sort2_server.opt sort2_client.opt

sort2_server.run: $(SRV_EXPLICIT_OBJ)
	$(OCAMLC) -o sort2_server.run sort2lib.cma $(SRV_EXPLICIT_OBJ) -linkpkg

sort2_server.opt: $(SRV_EXPLICIT_XOBJ)
	$(OCAMLOPT) -o sort2_server.opt sort2lib.cmxa $(SRV_EXPLICIT_XOBJ) -linkpkg

sort2_client.run: $(CLNT_EXPLICIT_OBJ)
	$(OCAMLC) -o sort2_client.run sort2lib.cma $(CLNT_EXPLICIT_OBJ) -linkpkg

sort2_client.opt: $(CLNT_EXPLICIT_XOBJ)
	$(OCAMLOPT) -o sort2_client.opt sort2lib.cmxa $(CLNT_EXPLICIT_XOBJ) -linkpkg

sort2lib.cma: $(OBJ)
	$(OCAMLC) -o sort2lib.cma -a $(OBJ)

sort2lib.cmxa: $(XOBJ)
	$(OCAMLOPT) -o sort2lib.cmxa -a $(XOBJ)

include depend