1 | # $Id: Makefile.kmk 6361 2008-01-15 22:39:01Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Cross Platform Guest Additions Driver.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2007 innotek GmbH
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | DEPTH ?= ../../../../..
|
---|
19 | SUB_DEPTH = ../..
|
---|
20 | include $(PATH_KBUILD)/subheader.kmk
|
---|
21 |
|
---|
22 | #
|
---|
23 | # VBoxGuest.sys - The OS/2 driver.
|
---|
24 | #
|
---|
25 | ifeq ($(BUILD_PLATFORM),os2)
|
---|
26 | ifdef VBOX_WITH_OS2_ADDITIONS
|
---|
27 | SYSMODS.os2 += VBoxGuest
|
---|
28 | endif
|
---|
29 | VBoxGuest_TEMPLATE = VBOXOS2GUESTR0
|
---|
30 | VBoxGuest_DEFS = VBGL_VBOXGUEST VBOX_HGCM
|
---|
31 | VBoxGuest_INCS := $(PATH_SUB_CURRENT)
|
---|
32 | #VBoxGuest_LDFLAGS = -s -t -v
|
---|
33 | VBoxGuest_SOURCES = \
|
---|
34 | VBoxGuestA-os2.asm \
|
---|
35 | VBoxGuest-os2.def
|
---|
36 | VBoxGuest_LIBS = \
|
---|
37 | $(TARGET_VBoxGuestLib) \
|
---|
38 | $(VBOX_LIB_VBGL_OS2_R0BASE) \
|
---|
39 | $(VBOX_LIB_IPRT_OS2_GUEST_R0) \
|
---|
40 | $(VBOX_GCC_LIBGCC) \
|
---|
41 | end
|
---|
42 |
|
---|
43 | ## When debugging init with kDrvTest:
|
---|
44 | #VBoxGuest_NAME = VBoxGst
|
---|
45 |
|
---|
46 | # temp hack to ensure that VBoxGuestA-os2.asm is first in the link.
|
---|
47 | ifdef VBOX_WITH_OS2_ADDITIONS
|
---|
48 | LIBRARIES += VBoxGuestLib
|
---|
49 | endif
|
---|
50 | VBoxGuestLib_TEMPLATE = VBOXOS2GUESTR0LIB
|
---|
51 | VBoxGuestLib_NOINST = 1
|
---|
52 | VBoxGuestLib_DEFS = VBGL_VBOXGUEST VBOX_HGCM
|
---|
53 | VBoxGuestLib_INCS := \
|
---|
54 | $(PATH_SUB_CURRENT) \
|
---|
55 | $(PATH_TARGET) \
|
---|
56 | $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
57 | VBoxGuestLib_SOURCES = \
|
---|
58 | VBoxGuest-os2.cpp \
|
---|
59 | VBoxGuest.cpp
|
---|
60 | endif
|
---|
61 |
|
---|
62 | #
|
---|
63 | # vboxadd.o - The Solaris Guest Driver.
|
---|
64 | #
|
---|
65 | ifeq ($(BUILD_PLATFORM),solaris)
|
---|
66 | SYSMODS.solaris += vboxadd
|
---|
67 | vboxadd_TEMPLATE = VBOXGUESTR0
|
---|
68 | vboxadd_DEFS = VBGL_VBOXGUEST VBOX_HGCM
|
---|
69 | vboxadd_INCS := $(PATH_SUB_CURRENT) \
|
---|
70 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris
|
---|
71 | vboxadd_SOURCES = \
|
---|
72 | VBoxGuest-solaris.c \
|
---|
73 | VBoxGuest.cpp
|
---|
74 | vboxadd_LIBS = \
|
---|
75 | $(VBOX_LIB_VBGL_R0BASE) \
|
---|
76 | $(VBOX_LIB_IPRT_GUEST_R0)
|
---|
77 | endif
|
---|
78 |
|
---|
79 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
80 |
|
---|