Changeset 82745 in vbox
- Timestamp:
- Jan 14, 2020 8:38:09 PM (5 years ago)
- Location:
- trunk/src/VBox/NetworkServices/Dhcpd
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/Dhcpd/Makefile.kmk
r79525 r82745 1 1 # $Id$ 2 2 ## @file 3 # Sub-makefile for the DHCP server 3 # Sub-makefile for the DHCP server. 4 4 # 5 5 … … 16 16 # 17 17 18 SUB_DEPTH = ../../../..18 SUB_DEPTH := ../../../.. 19 19 include $(KBUILD_PATH)/subheader.kmk 20 # ifdef VBOX_WITH_...21 20 22 VBOX_PATH_Dhcpd_SRC := $(PATH_SUB_CURRENT) 21 ifndef LWIP_SOURCES 22 include $(PATH_SUB_CURRENT)/../../Devices/Network/lwip-new/Config.kmk 23 endif 23 24 24 # XXX: do not depend on order 25 ifndef LWIP_SOURCES 26 include $(PATH_SUB_CURRENT)/../../Devices/Network/lwip-new/Config.kmk 25 # 26 # Hardended stub executable. 27 # 28 ifdef VBOX_WITH_HARDENING 29 PROGRAMS += VBoxNetDHCPHardened 30 VBoxNetDHCPHardened_TEMPLATE = VBOXR3HARDENEDEXE 31 VBoxNetDHCPHardened_NAME = VBoxNetDHCP 32 VBoxNetDHCPHardened_SOURCES = VBoxNetDhcpdHardened.cpp 33 VBoxNetDHCPHardened_LDFLAGS.win = /SUBSYSTEM:windows 34 $(call VBOX_SET_VER_INFO_DLL,VBoxNetDHCPHardened,VirtualBox DHCP Server,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 35 endif 36 37 38 # 39 # The DHCP server module (dll if hardended) 40 # 41 ifdef VBOX_WITH_HARDENING 42 DLLS += VBoxNetDHCP 43 VBoxNetDHCP_TEMPLATE := VBoxR3Dll 44 else 45 PROGRAMS += VBoxNetDHCP 46 VBoxNetDHCP_TEMPLATE := VBOXR3EXE 47 endif 48 49 # (current dir is for for lwipopts.h) 50 VBoxNetDHCP_INCS += . $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_INCS)) 51 52 VBoxNetDHCP_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\" 53 #VBoxNetDHCP_DEFS = IPv6 54 #VBoxNetDHCP_DEFS.linux = WITH_VALGRIND 55 ifneq ($(KBUILD_TARGET),win) 56 VBoxNetDHCP_DEFS += VBOX_WITH_XPCOM 57 VBoxNetDHCP_INCS += $(VBOX_XPCOM_INCS) 58 ifneq ($(KBUILD_TARGET),darwin) 59 # We want -std=c++11 for 4.7 and newer compilers, and -std=c++0x for older ones. 60 VBoxNetDHCP_CXXFLAGS += -std=$(if $(VBOX_GCC_VERSION_CXX),$(if $(VBOX_GCC_VERSION_CXX) < 40700,c++0x,c++11),c++0x) 27 61 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 = \ 62 endif 63 VBoxNetDHCP_SOURCES = \ 62 64 ClientId.cpp \ 63 65 Config.cpp \ … … 69 71 Timestamp.cpp \ 70 72 VBoxNetDhcpd.cpp \ 71 73 ../../Main/glue/VBoxLogRelCreate.cpp \ 72 74 ../../Main/glue/GetVBoxUserHomeDirectory.cpp \ 73 75 $(addprefix ../../Devices/Network/lwip-new/,$(LWIP_SOURCES)) 74 76 75 VBoxNetDhcpd_LIBS = $(LIB_RUNTIME)76 VBoxNetDhcpd_LIBS.solaris += socket nsl77 VBoxNetDhcpd_LDFLAGS.win = /SUBSYSTEM:windows77 VBoxNetDHCP_LIBS = $(LIB_RUNTIME) 78 VBoxNetDHCP_LIBS.solaris += socket nsl 79 VBoxNetDHCP_LDFLAGS.win = /SUBSYSTEM:windows 78 80 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 81 ifdef VBOX_WITH_HARDENING 82 $(call VBOX_SET_VER_INFO_DLL,VBoxNetDHCP,VirtualBox DHCP Server (dll),$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 83 else 84 $(call VBOX_SET_VER_INFO_EXE,VBoxNetDHCP,VirtualBox DHCP Server,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description. 85 endif 85 86 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 87 include $(FILE_KBUILD_SUB_FOOTER) 91 88 92 # endif # VBOX_WITH_...93 include $(FILE_KBUILD_SUB_FOOTER)
Note:
See TracChangeset
for help on using the changeset viewer.