Makefile revision bb0bf5f0d07a55839823656d524b6af71abac5c7
#
# Makefile for the devices, drivers and services.
#
#
# Copyright (C) 2006 InnoTek Systemberatung GmbH
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License as published by the Free Software Foundation,
# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
# distribution. VirtualBox OSE is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY of any kind.
#
# If you received this file as part of a commercial VirtualBox
# distribution, then only the terms of your commercial VirtualBox
# license agreement apply instead of the previous paragraph.
#
DEPTH = ../../..
OTHER_CLEAN = \
$(PATH_TARGET)/vboxaml.hex \
SUBDIRS = \
testcase \
SUBDIRS_AFTER = \
#
# Check for VBOX_* stuff which governs defines.
#
DEFS += USE_IOAPIC
# enable the pdm lock.
#DEFS += VBOX_WITH_PDM_LOCK
#
# VBoxDD (shared object)
#
VBoxDD_SOURCES = \
VBoxDD_LIBS = \
$(LIB_VMM) \
$(LIB_RUNTIME)
VBoxDD_LIBS.win = \
$(PATH_LIB)/VBoxDD2.lib \
#
VBoxDD_LIBS += \
VBoxDD_LIBS.l4 = \
$(PATH_BIN)/VBoxDD2.dylib \
$(LIB_REM)
VBoxDD_LIBS.os2 = \
# damn, fix this.
#
# VBoxDD2 (shared object)
#
VBoxDD2_SOURCES = \
VBoxDD2_LIBS = \
$(LIB_VMM) \
$(LIB_RUNTIME)
VBoxDD2_LIBS += \
VBoxDD2_LIBS.darwin += $(LIB_REM)
#
# DevicesR3 (library)
#
DevicesR3_INCS = \
$(PATH_CURRENT)
PC/DevPIC.cpp \
PC/DevRTC.cpp \
ifeq (0,1)
DevicesR3_SOURCES += \
DevicesR3_SOURCES += \
# DevACPI.cpp needs vboxaml.hex which we generate from PC/vbox.dsl.
#
# VBoxDDGC
#
VBoxDDGC_INCS = \
$(PATH_CURRENT)
VBoxDDGC_SOURCES = \
PC/DevPIC.cpp \
PC/DevRTC.cpp \
VBoxDDGC_SOURCES += \
VBoxDDGC_LIBS = \
#
# VBoxDDR0
#
VBoxDDR0_INCS = \
$(PATH_CURRENT)
VBoxDDR0_SOURCES = \
PC/DevPIC.cpp \
PC/DevRTC.cpp \
VBoxDDR0_SOURCES += \
VBoxDDR0_LIBS += $(VBOX_GCC_LIBGCC)
#
# VBoxDD2GC (LGPL code)
#
VBoxDD2GC_INCS = \
$(PATH_CURRENT)
VBoxDD2GC_LIBS = \
#
# VBoxDD2R0 (LGPL code)
#
VBoxDD2R0_INCS = \
$(PATH_CURRENT)
#
# Drivers (library)
#
else
Drivers_INCS = \
Drivers_SOURCES = \
# -- OS specific --
Drivers_SOURCES := $(filter-out \
endif # darwin
Drivers_SOURCES := $(filter-out \
endif # freebsd
Drivers_SOURCES = \
Drivers_SOURCES.l4 = \
endif # l4
Drivers_SOURCES := $(filter-out \
# -- features --
Drivers_SOURCES += \
endif # VBOX_WITH_ISCSI
Drivers_SOURCES += \
Drivers_SOURCES += \
Drivers_SOURCES.l4 += \
Drivers_SOURCES.win += \
endif # VBOX_WITH_USB
#
# Ring-0 Services (library, linked into VMMR0.r0)
#
#
# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
#
tstIntNetR0_LIBS = \
$(LIB_RUNTIME)
# ACPI DSL generation