File: Makefile.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 (44 lines) | stat: -rw-r--r-- 1,141 bytes parent folder | download | duplicates (6)
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
TOP_DIR = ../../..
include $(TOP_DIR)/Makefile.rules

AUTH_MODULE=auth_sys
# one of: auth_sys auth_gssapi auth_ssl

REQUIRES = rpc,unix
OBJ = queues_aux.cmo queues_clnt.cmo queues_srv.cmo qserver.cmo qclient.cmo
SRV_EXPLICIT_OBJ = 
CLNT_EXPLICIT_OBJ = 

include Makefile.$(AUTH_MODULE)

SRV_EXPLICIT_OBJ += qserver_main.cmo
CLNT_EXPLICIT_OBJ += qclient_main.cmo

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


all: queueslib.cma qserver qclient

opt: queueslib.cmxa qserver.opt qclient.opt

qserver: $(SRV_EXPLICIT_OBJ)
	$(OCAMLC) -o qserver -custom queueslib.cma $(SRV_EXPLICIT_OBJ) -linkpkg

qserver.opt: $(SRV_EXPLICIT_XOBJ)
	$(OCAMLOPT) -o qserver.opt queueslib.cmxa $(SRV_EXPLICIT_XOBJ) -linkpkg

qclient: $(CLNT_EXPLICIT_OBJ)
	$(OCAMLC) -o qclient -custom queueslib.cma $(CLNT_EXPLICIT_OBJ) -linkpkg

qclient.opt: $(CLNT_EXPLICIT_XOBJ)
	$(OCAMLOPT) -o qclient.opt queueslib.cmxa $(CLNT_EXPLICIT_XOBJ) -linkpkg

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

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

include depend