File: Makefile1.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 = sort1_proto_aux.cmo sort1_proto_clnt.cmo sort1_proto_srv.cmo \
      sort1_worker.cmo sort1_controller.cmo
SRV_EXPLICIT_OBJ = sort1_server.cmo
CLNT_EXPLICIT_OBJ = sort1_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: sort1lib.cma sort1_server.run sort1_client.run

opt: sort1lib.cmxa sort1_server.opt sort1_client.opt

sort1_server.run: $(SRV_EXPLICIT_OBJ)
	$(OCAMLC) -o sort1_server.run sort1lib.cma $(SRV_EXPLICIT_OBJ) -linkpkg

sort1_server.opt: $(SRV_EXPLICIT_XOBJ)
	$(OCAMLOPT) -o sort1_server.opt sort1lib.cmxa $(SRV_EXPLICIT_XOBJ) -linkpkg

sort1_client.run: $(CLNT_EXPLICIT_OBJ)
	$(OCAMLC) -o sort1_client.run sort1lib.cma $(CLNT_EXPLICIT_OBJ) -linkpkg

sort1_client.opt: $(CLNT_EXPLICIT_XOBJ)
	$(OCAMLOPT) -o sort1_client.opt sort1lib.cmxa $(CLNT_EXPLICIT_XOBJ) -linkpkg

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

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

include depend