Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
276 lines (254 sloc) 5.97 KB
OCAMLPACKS = xml-light2 cdrom pciutil sexpr log stunnel http-svr rss xen-utils netdev tapctl vhd xs rpc-light
OCAML_LIBS = ../util/version ../util/vm_memory_constraints ../util/sanitycheck ../util/stats \
../idl/ocaml_backend/common ../idl/ocaml_backend/client ../idl/ocaml_backend/server ../util/ocamltest
OCAMLINCLUDES = ../idl ../idl/ocaml_backend \
../autogen ../database/ \
../xenops ../xva ../util \
../auth ../license ../client_records ../rfb ../gpg
CFLAGS += -std=gnu99 -Wall -Werror -I$(shell ocamlc -where)
# Since the section didn't work, link against the xen libs for everything if we are building
# xen stuff at all.
# NB order of libraries is important: OMake cannot determine dependencies between libraries
# (the same holds for OCaml packages)
XEN_OCAML_LIBS = ../xenops/xenops ../auth/pam
XEN_OCAMLINCLUDES =
XEN_OCAMLPACKS = xc xs cpuid
OCAML_CLIBS = $(XEN_OCAML_CLIBS) $(OCAML_CLIBS)
OCAML_LINK_FLAGS = $(XEN_OCAML_LINK_FLAGS) $(OCAML_LINK_FLAGS)
CFLAGS = $(XEN_CFLAGS) $(CFLAGS)
OCAMLINCLUDES = $(XEN_OCAMLINCLUDES) $(OCAMLINCLUDES)
# xc.cma depends on uuid.cma
OCAML_LIBS = $(OCAML_LIBS) $(XEN_OCAML_LIBS)
OCAMLPACKS = $(XEN_OCAMLPACKS) $(OCAMLPACKS)
# -----------------------------------------------------------------------
# Build the server
# -----------------------------------------------------------------------
#OCAML_CLIBS += stubs
OCamlProgram(http_test, http_test)
OCamlProgram(sparse_dd, sparse_dd sparse_encoding)
OCamlProgram(show_bat, show_bat)
COMMON = \
xapi_templates \
../idl/api_lowlevel \
nm \
xapi_mgmt_iface \
smint \
../gpg/gpg \
../license/license \
helpers \
at_least_once_more \
create_templates \
fileserver
#OCamlProgram(upload_receive, $(COMMON) fileupload upload_receive)
OCamlProgram(quicktestbin, quicktest quicktest_common quicktest_ocamltest quicktest_storage quicktest_http quicktest_encodings quicktest_vm_placement vm_placement ../xenops/squeeze_test quicktest_vm_memory_constraints ../util/vm_memory_constraints quicktest_lifecycle)
OCamlProgram(stresstest, stresstest)
OCamlProgram(fakeguestagent, fakeguestagent)
OCamlProgram(xenstore_copy, xenstore_dump xenstore_copy)
OCamlProgram(rrddump, rrddump rrd)
XAPI_MODULES = $(COMMON) \
local_work_queue \
../xva/xva \
../idl/ocaml_backend/json \
../rfb/rfb \
../rfb/rfb_randomtest \
../client_records/records \
../client_records/record_util \
bootloader \
storage_access \
sm_exec \
sm \
console \
xen_helpers \
importexport \
sparse_encoding \
create_storage \
create_networks \
xapi_fist \
xapi_udhcpd \
xapi_network_types \
xapi_network_real \
xapi_network \
xapi_network_attach_helpers \
xapi_event \
xapi_alert \
xapi_cli \
xapi_task \
xapi_crashdump \
xapi_pbd \
xapi_user \
xapi_host_cpu \
xapi_host_helpers \
xapi_host_crashdump \
xapi_guest_agent \
xapi_pv_driver_version \
xapi_http \
xapi_host_patch \
xapi_pool_patch \
xapi_support \
xapi_xenops_errors \
xapi_session \
xapi_auth \
../auth/auth_signature \
../auth/authx \
../auth/extauth \
../auth/extauth_plugin_ADlikewise \
../auth/parse_likewise \
xapi_subject \
audit_log \
xapi_vmpp \
xapi_vm_lifecycle \
xapi_vm_clone \
xapi_vm_snapshot \
vm_placement \
xapi_vm_placement \
xapi_vm_helpers \
memory_check \
xapi_vm_memory_constraints \
xapi_vbd_helpers \
xapi_vif_helpers \
xapi_vdi_helpers \
xapi_hooks \
xapi_bond \
xapi_vlan \
xapi_tunnel \
xapi_sr \
xapi_sm \
xapi_pbd \
xapi_vdi \
pool_db_backup \
xapi_sync \
config_file_sync \
config_file_io \
slave_backup \
sm_fs_ops \
sparse_dd_wrapper \
vmopshelpers \
vm_config \
vmops \
memory_control \
vbdops \
attach_helpers \
message_forwarding \
cancel_tasks \
xapi_pool_transition \
thread_queue \
xapi_ha \
xapi_ha_stats \
xapi_ha_vm_failover \
binpack \
xapi_local_session \
xapi_local_pbd_state \
xapi_local_vdi_state \
xha_interface \
xha_statefile \
xha_metadata_vdi \
xha_errno \
static_vdis \
monitor_self \
monitor_transfer \
monitor_master \
rrd_shared \
monitor_dbcalls \
monitor_rrds \
monitor \
rrd \
api_server \
create_misc \
xapi_host \
xapi_plugins \
xapi_fuse \
db_gc \
cli_protocol \
cli_cmdtable \
cli_frontend \
cli_operations \
cli_operations_geneva \
cli_util \
cli_key \
cli_printer \
ipq \
xapi_periodic_scheduler \
xapi_periodic_scheduler_init \
dbsync \
dbsync_slave \
dbsync_master \
sync_networking \
storage_access \
events \
import_xva \
import \
import_raw_vdi \
export \
stream_vdi \
fileupload \
smint \
sm_exec \
sm \
startup \
system_status \
license_check \
xapi_vm \
xapi_sr \
xapi_vdi \
xapi_vbd \
xapi_vif \
xapi_pif \
xapi_pbd \
xapi_user \
xapi_host_cpu \
xapi_task \
xapi_vm_migrate \
mtc \
xapi_crashdump \
xapi_templates_install \
xapi_host_backup \
xapi_logs_download \
xapi_vncsnapshot \
xapi_pool \
xapi_upgrade \
xapi_blob \
xapi_message \
debug_populate \
ds \
xapi_remotecmd \
redo_log_usage \
redo_log_alert \
xapi \
workload_balancing \
wlb_reports \
remote_requests \
xapi_secret \
../database/db_hiupgrade \
certificates \
../license/v6client \
bios_strings \
xapi_config \
../license/grace_retry \
../license/v6alert \
../license/edition \
../license/features \
../license/license_file \
../license/license_init
OCamlProgram(xapi, $(XAPI_MODULES))
OCamlDocProgram(xapi, $(XAPI_MODULES))
OCamlProgram(bootloader, bootloader bootloader_test)
OCamlProgram(binpack, binpack binpack_test xapi_fist)
OCamlProgram(at_least_once_more, at_least_once_more at_least_once_more_test)
.DEFAULT: xapi
.PHONY: install
install:
mkdir -p $(DESTDIR)/opt/xensource/bin
cp -f xapi $(DESTDIR)/opt/xensource/bin
mkdir -p $(DEBUGDIST)
$(IPROG) quicktest $(DEBUGDIST)
cp -f quicktestbin $(DEBUGDIST)
$(IPROG) rrddump $(DEBUGDIST)
mkdir -p $(DESTDIR)/opt/xensource/libexec
$(IPROG) sparse_dd $(DESTDIR)/opt/xensource/libexec
.PHONY: sdk-install
sdk-install: install
mkdir -p $(DESTDIR)/opt/xensource/libexec
cp fakeguestagent $(DESTDIR)/opt/xensource/libexec/
.PHONY: clean
clean:
rm -rf $(CLEAN_OBJS) *.aux *.log *.fig xapi
Jump to Line
Something went wrong with that request. Please try again.