VirtualBox

source: vbox/trunk/src/VBox/NetworkServices/DHCP/Makefile.kmk@ 73529

Last change on this file since 73529 was 69111, checked in by vboxsync, 7 years ago

(C) year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1 # $Id: Makefile.kmk 69111 2017-10-17 14:26:02Z vboxsync $
2## @file
3# Sub-Makefile for VBoxNetDHCP.
4#
5
6#
7# Copyright (C) 2009-2017 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
21VBOX_PATH_NET_DHCP_SRC := $(PATH_SUB_CURRENT)
22
23#
24# Targets.
25#
26ifdef VBOX_WITH_HARDENING
27 PROGRAMS += VBoxNetDHCPHardened
28 DLLS += VBoxNetDHCP
29else
30 PROGRAMS += VBoxNetDHCP
31endif
32
33
34#
35# Hardened VBoxNetDHCP.
36#
37VBoxNetDHCPHardened_TEMPLATE = VBOXR3HARDENEDEXE
38VBoxNetDHCPHardened_SOURCES = VBoxNetDHCPHardened.cpp
39VBoxNetDHCPHardened_SOURCES.win = $(VBoxNetDHCP_0_OUTDIR)/VBoxNetDHCP-icon.rc
40VBoxNetDHCPHardened_NAME = VBoxNetDHCP
41VBoxNetDHCPHardened_LDFLAGS.win = /SUBSYSTEM:windows
42
43
44#
45# VBoxNetDHCP
46#
47VBoxNetDHCP_TEMPLATE := VBOX$(if-expr defined(VBOX_WITH_HARDENING),MAINDLL,MAINCLIENTEXE)
48VBoxNetDHCP_SOURCES = \
49 VBoxNetDHCP.cpp \
50 Config.cpp \
51 NetworkManagerDhcp.cpp \
52 $(VBOX_PATH_NET_DHCP_SRC)/../NetLib/VBoxNetIntIf.cpp \
53 $(VBOX_PATH_NET_DHCP_SRC)/../NetLib/VBoxNetUDP.cpp \
54 $(VBOX_PATH_NET_DHCP_SRC)/../NetLib/VBoxNetARP.cpp \
55 $(VBOX_PATH_NET_DHCP_SRC)/../NetLib/VBoxNetBaseService.cpp \
56 $(VBOX_PATH_NET_DHCP_SRC)/../NetLib/ComHostUtils.cpp
57VBoxNetDHCP_LIBS = \
58 $(LIB_RUNTIME)
59VBoxNetDHCP_LDFLAGS.win = /SUBSYSTEM:windows
60
61ifeq ($(KBUILD_TARGET),win)
62# Icon include file.
63VBoxNetDHCP_SOURCES += VBoxNetDHCP.rc
64VBoxNetDHCP.rc_INCS = $(VBoxNetDHCP_0_OUTDIR)
65VBoxNetDHCP.rc_DEPS = $(VBoxNetDHCP_0_OUTDIR)/VBoxNetDHCP-icon.rc
66VBoxNetDHCP.rc_CLEAN = $(VBoxNetDHCP_0_OUTDIR)/VBoxNetDHCP-icon.rc
67$$(VBoxNetDHCP_0_OUTDIR)/VBoxNetDHCP-icon.rc: $(VBOX_WINDOWS_ICON_FILE) $$(VBoxNetDHCP_DEFPATH)/Makefile.kmk | $$(dir $$@)
68 $(RM) -f $@
69 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
70endif # win
71
72include $(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