VirtualBox

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

Last change on this file since 47992 was 47992, checked in by vboxsync, 11 years ago

Drop VBoxNetSlirpNAT.cpp - it's not and will not be used. It begat
lwip version and can retire in peace now. Slirp sources need
addtional cleanup to g/c service-specific bits, but that will be
handled separately.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1# $Id: Makefile.kmk 47992 2013-08-22 14:38:19Z vboxsync $
2## @file
3#
4
5#
6# Copyright (C) 2006-2012 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
20define def_vbox_nat_network_service_sources
21 $(1)_SOURCES += $2/$3
22endef
23
24define def_vbox_nat_network_service_incs
25 $(1)_INCS += $2/$3
26endef
27
28ifdef VBOX_WITH_LWIP_NAT
29
30ifdef VBOX_WITH_HARDENING
31 PROGRAMS += VBoxNetLwipNATHardened
32 DLLS += VBoxNetLwipNAT
33else
34 PROGRAMS += VBoxNetLwipNAT
35endif
36
37ifdef VBOX_WITH_HARDENING
38 VBoxNetLwipNATHardened_SOURCES += VBoxNetNATHardened.cpp
39 VBoxNetLwipNATHardened_DEFS += SERVICE_NAME=\"VBoxNetNAT\"
40 VBoxNetLwipNATHardened_TEMPLATE=VBOXR3HARDENEDEXE
41 VBoxNetLwipNATHardened_NAME = VBoxNetNAT
42endif
43
44VBoxNetLwipNAT_TEMPLATE =
45VBoxNetLwipNAT_TEMPLATE := VBOXMAIN$(if-expr defined(VBOX_WITH_HARDENING),DLL,CLIENTEXE)
46VBoxNetLwipNAT_NAME = VBoxNetNAT
47VBoxNetLwipNAT_INCS += ../../Devices/Network \
48 ../../Devices/Network/lwip-new/vbox # testproxy.h
49VBoxNetLwipNAT_DEFS += ${LWIP_DEFS}
50VBoxNetLwipNAT_DEFS.win += _WIN32_WINNT=0x501 # Windows XP
51VBoxNetLwipNAT_SOURCES += VBoxNetLwipNAT.cpp \
52 ../NetLib/VBoxNetBaseService.cpp \
53 ../NetLib/VBoxNetPortForwardString.cpp
54VBoxNetLwipNAT_LIBS = \
55 $(LIB_RUNTIME)
56VBoxNetLwipNAT_LIBS.solaris += socket nsl
57VBoxNetLwipNAT_LDFLAGS.win = /SUBSYSTEM:windows
58
59#
60# Note: not spaces please in "Devices,$("
61#
62$(foreach file,$(LWIP_SOURCES) $(LWIP_NAT_SOURCES),$(eval $(call def_vbox_nat_network_service_sources, VBoxNetLwipNAT, ../../Devices,$(file))))
63
64$(foreach incs,$(LWIP_INCS),$(eval $(call def_vbox_nat_network_service_incs, VBoxNetLwipNAT, ../../Devices,$(incs))))
65
66endif
67
68ifdef VBOX_WITH_TESTCASES
69PROGRAMS += tstNetPfAddressPortPairParse
70
71tstNetPfAddressPortPairParse_TEMPLATE = VBOXR3TSTEXE
72#tstNetPfAddressPortPairParse_INSTTYPE = none
73tstNetPfAddressPortPairParse_SOURCES = ../NetLib/testcase/tstNetPfAddressPortPairParse.cpp \
74 ../NetLib/VBoxNetPortForwardString.cpp
75endif
76
77include $(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