forked from xapi-project/xen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OMakefile
31 lines (26 loc) · 1.06 KB
/
OMakefile
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
OCAMLPACKS = stdext xenstore netdev log
OCAML_LIBS += ../util/version ../fhs ../idl/ocaml_backend/common ../xenops/xenops
OCAMLINCLUDES += ../xapi ../xenops ..
CFLAGS = -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-strict-aliasing -std=gnu99 -fPIC
CFLAGS += -mno-tls-direct-seg-refs
CFLAGS += -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -Werror -Wmissing-prototypes
CFLAGS += -D__XEN_TOOLS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE
LDFLAGS=
OCamlProgram(xiu, xiu)
OCamlDocProgram(xiu, xiu)
DynamicCLibrary(libxenctrl_xiu, xenctrl_xiu)
.PHONY: clean
clean:
rm -rf $(CLEAN_OBJS) xiu libxenctrl_xiu.so
.PHONY: install
install:
mkdir -p $(DESTDIR)$(LIBEXECDIR)
$(IPROG) xiu $(DESTDIR)$(LIBEXECDIR)/
mkdir -p $(DESTDIR)$(OPTDIR)/lib
$(IDATA) libxenctrl_xiu.so $(DESTDIR)$(OPTDIR)/lib
.PHONY: sdk-install
sdk-install:
mkdir -p $(DESTDIR)$(LIBEXECDIR)
$(IPROG) xiu $(DESTDIR)$(LIBEXECDIR)/
mkdir -p $(DESTDIR)$(OPTDIR)/lib
$(IDATA) libxenctrl_xiu.so $(DESTDIR)$(OPTDIR)/lib