VirtualBox

source: vbox/trunk/src/VBox/NetworkServices/Dhcpd/Makefile.kmk@ 78271

Last change on this file since 78271 was 76553, checked in by vboxsync, 6 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1# $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
2## @file
3# Sub-makefile for the DHCP server
4#
5
6#
7# Copyright (C) 2006-2019 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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20# ifdef VBOX_WITH_...
21
22 VBOX_PATH_Dhcpd_SRC := $(PATH_SUB_CURRENT)
23
24 # XXX: do not depend on order
25 ifndef LWIP_SOURCES
26 include $(PATH_SUB_CURRENT)/../../Devices/Network/lwip-new/Config.kmk
27 endif
28
29 ifdef VBOX_WITH_HARDENING
30 PROGRAMS += VBoxNetDhcpdHardened
31 DLLS += VBoxNetDhcpd
32 else
33 PROGRAMS += VBoxNetDhcpd
34 endif
35
36 VBoxNetDhcpdHardened_TEMPLATE = VBOXR3HARDENEDEXE
37 VBoxNetDhcpdHardened_NAME = VBoxNetDHCP
38 VBoxNetDhcpdHardened_DEFS = SERVICE_NAME=\"VBoxNetDhcpd\"
39 VBoxNetDhcpdHardened_SOURCES = VBoxNetDhcpdHardened.cpp
40 VBoxNetDhcpdHardened_SOURCES.win = $(VBoxNetDhcpd_0_OUTDIR)/VBoxNetDhcpd-icon.rc
41 VBoxNetDhcpdHardened_LDFLAGS.win = /SUBSYSTEM:windows
42
43 VBoxNetDhcpd_TEMPLATE := $(if-expr defined(VBOX_WITH_HARDENING),VBoxR3Dll,VBOXR3EXE)
44 VBoxNetDhcpd_NAME = VBoxNetDHCP
45 # VBoxNetDhcpd_DEFS = IPv6
46 # VBoxNetDhcpd_DEFS.linux = WITH_VALGRIND
47 #VBoxNetDhcpd_DEFS.win = VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x501 # Windows XP
48
49 # (current dir is for for lwipopts.h)
50 VBoxNetDhcpd_INCS += . $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_INCS))
51
52 VBoxNetDhcpd_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\"
53 ifneq ($(KBUILD_TARGET),win)
54 VBoxNetDhcpd_DEFS += VBOX_WITH_XPCOM
55 VBoxNetDhcpd_INCS += $(VBOX_XPCOM_INCS)
56 ifneq ($(KBUILD_TARGET),darwin)
57 # We want -std=c++11 for 4.7 and newer compilers, and -std=c++0x for older ones.
58 VBoxNetDhcpd_CXXFLAGS += -std=$(if $(VBOX_GCC_VERSION_CXX),$(if $(VBOX_GCC_VERSION_CXX) < 40700,c++0x,c++11),c++0x)
59 endif
60 endif
61 VBoxNetDhcpd_SOURCES = ../../Main/glue/VBoxLogRelCreate.cpp \
62 ../../Main/glue/GetVBoxUserHomeDirectory.cpp \
63 ClientId.cpp \
64 Config.cpp \
65 DHCPD.cpp \
66 Db.cpp \
67 DhcpMessage.cpp \
68 DhcpOptions.cpp \
69 IPv4Pool.cpp \
70 TimeStamp.cpp \
71 VBoxNetDhcpd.cpp \
72 $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_SOURCES))
73
74 VBoxNetDhcpd_LIBS = $(LIB_RUNTIME)
75
76 VBoxNetDhcpd_LIBS.solaris += socket nsl
77 VBoxNetDhcpd_LDFLAGS.win = /SUBSYSTEM:windows
78
79 ifeq ($(KBUILD_TARGET),win)
80 # Icon include file.
81 VBoxNetDhcpd_SOURCES += VBoxNetDhcpd.rc
82 VBoxNetDhcpd.rc_INCS = $(VBoxNetDhcpd_0_OUTDIR)
83 VBoxNetDhcpd.rc_DEPS = $(VBoxNetDhcpd_0_OUTDIR)/VBoxNetDhcpd-icon.rc
84 VBoxNetDhcpd.rc_CLEAN = $(VBoxNetDhcpd_0_OUTDIR)/VBoxNetDhcpd-icon.rc
85
86 $$(VBoxNetDhcpd_0_OUTDIR)/VBoxNetDhcpd-icon.rc: $(VBOX_WINDOWS_ICON_FILE) \
87 $$(VBoxNetDhcpd_DEFPATH)/Makefile.kmk | $$(dir $$@)
88 $(RM) -f $@
89 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
90 endif # win
91
92# endif # VBOX_WITH_...
93include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette