1 | # $Id: Makefile.kmk 56301 2015-06-09 14:38:36Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VBox RDP authentication plugins.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2015 Oracle Corporation
|
---|
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 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # The plugin.
|
---|
22 | ifndef VBOX_ONLY_SDK
|
---|
23 | if ("$(KBUILD_TARGET)" != "linux" && "$(KBUILD_TARGET)" != "solaris") || defined(VBOX_WITH_PAM)
|
---|
24 | DLLS += VBoxAuth
|
---|
25 | endif
|
---|
26 | endif
|
---|
27 | VBoxAuth_TEMPLATE = VBOXR3
|
---|
28 | VBoxAuth_SOURCES.linux = pam/VBoxAuthPAM.c
|
---|
29 | VBoxAuth_SOURCES.solaris = pam/VBoxAuthPAM.c
|
---|
30 | VBoxAuth_SOURCES.freebsd = pam/VBoxAuthPAM.c
|
---|
31 | VBoxAuth_SOURCES.win = winlogon/winlogon.cpp winlogon/VBoxAuth.rc
|
---|
32 | VBoxAuth_SOURCES.darwin = directoryservice/directoryservice.cpp
|
---|
33 | VBoxAuth_LIBS.linux = $(LIB_RUNTIME) dl
|
---|
34 | VBoxAuth_LIBS.solaris = $(LIB_RUNTIME) dl
|
---|
35 | VBoxAuth_LIBS.freebsd = $(LIB_RUNTIME)
|
---|
36 | VBoxAuth_LIBS.darwin = $(LIB_RUNTIME)
|
---|
37 | VBoxAuth_LDFLAGS.darwin = -framework DirectoryService
|
---|
38 |
|
---|
39 | # The simple plugin.
|
---|
40 | ifndef VBOX_ONLY_SDK
|
---|
41 | if defined(VBOX_WITH_MAIN)
|
---|
42 | DLLS += VBoxAuthSimple
|
---|
43 | endif
|
---|
44 | endif
|
---|
45 | VBoxAuthSimple_TEMPLATE = VBOXMAINCLIENTDLL
|
---|
46 | VBoxAuthSimple_SOURCES = simple/VBoxAuthSimple.cpp
|
---|
47 | VBoxAuthSimple_SOURCES.win = simple/VBoxAuthSimple.rc
|
---|
48 |
|
---|
49 | # Install the SDK samples.
|
---|
50 | INSTALLS += VBoxAuth-samples
|
---|
51 | VBoxAuth-samples_INST = $(INST_SDK)bindings/auth/
|
---|
52 | VBoxAuth-samples_MODE = a+r,u+w
|
---|
53 | VBoxAuth-samples_SOURCES = simple/VBoxAuthSimple.cpp
|
---|
54 | VBoxAuth-samples_SOURCES.linux = pam/VBoxAuthPAM.c
|
---|
55 | VBoxAuth-samples_SOURCES.win = winlogon/winlogon.cpp
|
---|
56 |
|
---|
57 | # Install the SDK header.
|
---|
58 | INSTALLS += VBoxAuth-sdkhdr
|
---|
59 | VBoxAuth-sdkhdr_INST = $(INST_SDK)bindings/auth/include/
|
---|
60 | VBoxAuth-sdkhdr_MODE = a+r,u+w
|
---|
61 | VBoxAuth-sdkhdr_SOURCES = $(PATH_ROOT)/include/VBox/VBoxAuth.h=>VBoxAuth.h
|
---|
62 |
|
---|
63 |
|
---|
64 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
65 |
|
---|