File: Makefile.in

package info (click to toggle)
ocaml-libvirt 0.6.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 796 kB
  • sloc: sh: 3,306; ml: 2,567; ansic: 1,776; perl: 804; makefile: 268
file content (98 lines) | stat: -rw-r--r-- 3,130 bytes parent folder | download | duplicates (2)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# ocaml-libvirt
# Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA

OCAMLFIND	= @OCAMLFIND@

OCAMLCPACKAGES	:= -package unix -I ../libvirt
OCAMLCFLAGS	:= -g -warn-error CDEFLMPSUVYZX-3
OCAMLCLIBS	:= -linkpkg
OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
OCAMLOPTFLAGS	:= -g -warn-error CDEFLMPSUVYZX-3
OCAMLOPTLIBS	:= $(OCAMLCLIBS)

BYTE_TARGETS	:= list_domains list_secrets node_info get_cpu_stats \
		   get_all_domain_stats domain_events
OPT_TARGETS	:= $(BYTE_TARGETS:%=%.opt)

all: $(BYTE_TARGETS)

opt: $(OPT_TARGETS)

list_domains: list_domains.cmo
	$(OCAMLFIND) ocamlc \
	  $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
	  ../libvirt/mllibvirt.cma -o $@ $<

list_domains.opt: list_domains.cmx
	$(OCAMLFIND) ocamlopt \
	  $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
	  ../libvirt/mllibvirt.cmxa -o $@ $<

list_secrets: list_secrets.cmo
	$(OCAMLFIND) ocamlc \
	  $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
	  ../libvirt/mllibvirt.cma -o $@ $<

list_secrets.opt: list_secrets.cmx
	$(OCAMLFIND) ocamlopt \
	  $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
	  ../libvirt/mllibvirt.cmxa -o $@ $<

node_info: node_info.cmo
	$(OCAMLFIND) ocamlc \
	  $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
	  ../libvirt/mllibvirt.cma -o $@ $<

node_info.opt: node_info.cmx
	$(OCAMLFIND) ocamlopt \
	  $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
	  ../libvirt/mllibvirt.cmxa -o $@ $<

get_cpu_stats: get_cpu_stats.cmo
	$(OCAMLFIND) ocamlc \
	  $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
	  ../libvirt/mllibvirt.cma -o $@ $<

get_cpu_stats.opt: get_cpu_stats.cmx
	$(OCAMLFIND) ocamlopt \
	  $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
	  ../libvirt/mllibvirt.cmxa -o $@ $<

get_all_domain_stats: get_all_domain_stats.cmo
	$(OCAMLFIND) ocamlc \
	  $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
	  ../libvirt/mllibvirt.cma -o $@ $<

get_all_domain_stats.opt: get_all_domain_stats.cmx
	$(OCAMLFIND) ocamlopt \
	  $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
	  ../libvirt/mllibvirt.cmxa -o $@ $<

domain_events: domain_events.cmo
	$(OCAMLFIND) ocamlc \
	  $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
	  ../libvirt/mllibvirt.cma -o $@ $<

domain_events.opt: domain_events.cmx
	$(OCAMLFIND) ocamlopt \
	  $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
	  ../libvirt/mllibvirt.cmxa -o $@ $<


install-opt install-byte:

include ../Make.rules