1 | # $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VBox RDP authentication plugins.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2024 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | # The plugin.
|
---|
32 | ifndef VBOX_ONLY_SDK
|
---|
33 | if ("$(KBUILD_TARGET)" != "linux" && "$(KBUILD_TARGET)" != "solaris") || defined(VBOX_WITH_PAM)
|
---|
34 | DLLS += VBoxAuth
|
---|
35 | endif
|
---|
36 | endif
|
---|
37 | VBoxAuth_TEMPLATE = VBoxR3Dll
|
---|
38 | VBoxAuth_SOURCES.linux = pam/VBoxAuthPAM.c
|
---|
39 | VBoxAuth_SOURCES.solaris = pam/VBoxAuthPAM.c
|
---|
40 | VBoxAuth_SOURCES.freebsd = pam/VBoxAuthPAM.c
|
---|
41 | VBoxAuth_SOURCES.win = winlogon/winlogon.cpp winlogon/VBoxAuth.rc
|
---|
42 | VBoxAuth_SOURCES.darwin = directoryservice/directoryservice.cpp
|
---|
43 | VBoxAuth_CXXFLAGS.darwin = -Wno-deprecated-declarations
|
---|
44 | VBoxAuth_LIBS.linux = $(LIB_RUNTIME) dl
|
---|
45 | VBoxAuth_LIBS.solaris = $(LIB_RUNTIME) dl
|
---|
46 | VBoxAuth_LIBS.freebsd = $(LIB_RUNTIME)
|
---|
47 | VBoxAuth_LIBS.darwin = $(LIB_RUNTIME)
|
---|
48 | VBoxAuth_LDFLAGS.darwin = -framework DirectoryService
|
---|
49 |
|
---|
50 | # The simple plugin.
|
---|
51 | ifndef VBOX_ONLY_SDK
|
---|
52 | if defined(VBOX_WITH_MAIN)
|
---|
53 | DLLS += VBoxAuthSimple
|
---|
54 | endif
|
---|
55 | endif
|
---|
56 | VBoxAuthSimple_TEMPLATE = VBoxMainClientDll
|
---|
57 | VBoxAuthSimple_SOURCES = simple/VBoxAuthSimple.cpp
|
---|
58 | VBoxAuthSimple_SOURCES.win = simple/VBoxAuthSimple.rc
|
---|
59 |
|
---|
60 | # Install the SDK samples.
|
---|
61 | INSTALLS += VBoxAuth-samples
|
---|
62 | VBoxAuth-samples_INST = $(INST_SDK)bindings/auth/
|
---|
63 | VBoxAuth-samples_MODE = a+r,u+w
|
---|
64 | VBoxAuth-samples_SOURCES = simple/VBoxAuthSimple.cpp
|
---|
65 | VBoxAuth-samples_SOURCES.linux = pam/VBoxAuthPAM.c
|
---|
66 | VBoxAuth-samples_SOURCES.win = winlogon/winlogon.cpp
|
---|
67 |
|
---|
68 | # Install the SDK header.
|
---|
69 | INSTALLS += VBoxAuth-sdkhdr
|
---|
70 | VBoxAuth-sdkhdr_INST = $(INST_SDK)bindings/auth/include/
|
---|
71 | VBoxAuth-sdkhdr_MODE = a+r,u+w
|
---|
72 | VBoxAuth-sdkhdr_SOURCES = $(PATH_ROOT)/include/VBox/VBoxAuth.h=>VBoxAuth.h
|
---|
73 |
|
---|
74 |
|
---|
75 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
76 |
|
---|