forked from xapi-project/xen-api-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mk.in
37 lines (25 loc) · 1.08 KB
/
config.mk.in
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
OCAML_XB_DIR = $(shell ocamlfind query xenbus)
OCAML_XC_DIR = $(shell ocamlfind query xenctrl)
OCAML_XS_DIR = $(shell ocamlfind query xenstore)
OCAML_XB_INC = -I $(OCAML_XB_DIR)
OCAML_XB_LIB = $(OCAML_XB_DIR)/xenbus.cmxa
OCAML_XC_INC = -I $(OCAML_XC_DIR)
OCAML_XC_LIB = $(OCAML_XC_DIR)/xenctrl.cmxa
OCAML_XS_INC = -I $(OCAML_XS_DIR)
OCAML_XS_LIB = $(OCAML_XS_DIR)/xenstore.cmxa
LDFLAGS = -cclib -L./
VERSION ?= $(shell cat VERSION | tr -d '\n')
OCAMLABI := $(shell ocamlc -version)
OCAMLLIBDIR := $(shell ocamlc -where)
OCAMLDESTDIR ?= $(DESTDIR)/$(OCAMLLIBDIR)
CC = gcc
CFLAGS = -Wall -fPIC -O2 -I$(OCAMLLIBDIR)
OCAMLC = ocamlfind ocamlc -I ../xml-light2 -I ../stdext -I ../uuid
OCAMLOPT = ocamlfind ocamlopt -I ../xml-light2 -I ../stdext -I ../uuid
OCAMLYACC = ocamlyacc
OCAMLCFLAGS = -dtypes
OCAMLOPTFLAGS = -g -dtypes
RPCLIGHTFLAGS = -package camlp4,type-conv -ppopt -I -ppopt /usr/lib/ocaml/type-conv -ppopt -I -ppopt ../rpc-light -ppopt pa_rpc.cma -syntax camlp4o -I ../rpc-light -I ../jsonrpc -I ../rpc-light
DOCDIR = ../doc
LIBEXEC = "/opt/xensource/libexec"
SPOT=$(wildcard *.sp?t)