VirtualBox

source: vbox/trunk/src/VBox/NetworkServices/NAT/Makefile.kmk@ 41082

Last change on this file since 41082 was 36217, checked in by vboxsync, 14 years ago

NATService: compilable again.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1# $Id: Makefile.kmk 36217 2011-03-09 03:22:09Z vboxsync $
2## @file
3#
4
5#
6# Copyright (C) 2006-2011 Oracle Corporation
7#
8# This file is part of VirtualBox Open Source Edition (OSE), as
9# available from http://www.virtualbox.org. This file is free software;
10# you can redistribute it and/or modify it under the terms of the GNU
11# General Public License (GPL) as published by the Free Software
12# Foundation, in version 2 as it comes in the "COPYING" file of the
13# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15#
16
17SUB_DEPTH = ../../../..
18include $(KBUILD_PATH)/subheader.kmk
19
20ifdef VBOX_WITH_HARDENING
21 PROGRAMS += VBoxNetNATHardened
22 DLLS += VBoxNetNAT
23else
24 PROGRAMS += VBoxNetNAT
25endif
26VBoxNetNAT_TEMPLATE =
27VBoxNetNAT_TEMPLATE := VBOXR3$(if-expr defined(VBOX_WITH_HARDENING),,EXE)
28VBoxNetNAT_INCS = ../../Devices/Network/slirp
29VBoxNetNAT_DEFS = VBOX_WITH_NAT_SERVICE
30VBoxNetNAT_SOURCES += VBoxNetNAT.cpp
31VBoxNetNAT_DEFS += VBOX_WITH_NAT_SERVICE
32
33#define def_vbox_slirp_service_cflags
34# $(file)_DEFS += VBOX_WITH_NAT_SERVICE
35#endef
36
37define def_vbox_slirp_service_sources
38 VBoxNetNAT_SOURCES += $1/$(file)
39endef
40VBOX_NOT_IN_NATSERVICE = Network/DrvNAT.cpp
41$(foreach file,$(filter-out $(VBOX_NOT_IN_NATSERVICE), $(VBOX_SLIRP_SOURCES)),$(eval $(call def_vbox_slirp_service_sources, ../../Devices)))
42$(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_service_sources, ../../Devices)))
43$(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_service_sources, ../../Devices)))
44
45$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_BSD_SOURCES)),$(eval $(call def_vbox_slirp_cflags, ../../Devices/Network)))
46$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_BSD_SOURCES)),$(eval $(call def_vbox_slirp_bsd_cflags, ../../Devices/Network)))
47$(foreach file,$(addprefix ../../Devices/, $(filter-out $(VBOX_WITH_NAT_SERVICE), $(VBOX_SLIRP_SOURCES))),$(eval $(call def_vbox_slirp_service_cflags, ../../Devices/Network)))
48$(foreach file,$(addprefix ../../Devices/, $(filter-out $(VBOX_WITH_NAT_SERVICE), $(VBOX_SLIRP_SOURCES))),$(eval $(call def_vbox_slirp_cflags, ../../Devices/Network)))
49$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_ALIAS_SOURCES)),$(eval $(call def_vbox_slirp_cflags, ../../Devices/Network)))
50$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_ALIAS_SOURCES)),$(eval $(call def_vbox_slirp_alias_cflags, ../../Devices/Network)))
51
52VBoxNetNAT_SOURCES += ../NetLib/VBoxNetBaseService.cpp
53
54VBoxNetNAT_LIBS = \
55 $(LIB_RUNTIME)
56VBoxNetNAT_LDFLAGS.win = /SUBSYSTEM:windows
57
58include $(KBUILD_PATH)/subfooter.kmk
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