VirtualBox

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

Last change on this file since 48178 was 48178, checked in by vboxsync, 12 years ago

Do not hardcode lwip location in lwip makefile. Provide functions for
"calling" makefiles to add lwip to its sources and use these functions
in Devices and NAT.

XXX: It's still icky that Devices pulls in lwip makefile and then NAT
(which is included later) inherits it. But this commit allows
inclusion problem (and possible move of the lwip directory) to be
addressed separately.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1# $Id: Makefile.kmk 48178 2013-08-30 03:54:49Z 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
20ifdef VBOX_WITH_LWIP_NAT
21# XXX: This file depends on lwip makefile already included by Devices,
22# which is included by ancestor makefile before us...
23#if !defined(LWIP_SOURCES) # ???
24# include ../../Devices/Network/lwip-new/Makefile.kmk
25#endif
26
27ifdef VBOX_WITH_HARDENING
28 PROGRAMS += VBoxNetLwipNATHardened
29 DLLS += VBoxNetLwipNAT
30else
31 PROGRAMS += VBoxNetLwipNAT
32endif
33
34ifdef VBOX_WITH_HARDENING
35 VBoxNetLwipNATHardened_SOURCES += VBoxNetNATHardened.cpp
36 VBoxNetLwipNATHardened_DEFS += SERVICE_NAME=\"VBoxNetNAT\"
37 VBoxNetLwipNATHardened_TEMPLATE=VBOXR3HARDENEDEXE
38 VBoxNetLwipNATHardened_NAME = VBoxNetNAT
39endif
40
41VBoxNetLwipNAT_TEMPLATE =
42VBoxNetLwipNAT_TEMPLATE := VBOXMAIN$(if-expr defined(VBOX_WITH_HARDENING),DLL,CLIENTEXE)
43VBoxNetLwipNAT_NAME = VBoxNetNAT
44VBoxNetLwipNAT_DEFS += ${LWIP_DEFS}
45VBoxNetLwipNAT_DEFS.win += _WIN32_WINNT=0x501 # Windows XP
46VBoxNetLwipNAT_SOURCES += VBoxNetLwipNAT.cpp \
47 ../NetLib/VBoxNetBaseService.cpp \
48 ../NetLib/VBoxNetPortForwardString.cpp
49VBoxNetLwipNAT_LIBS = \
50 $(LIB_RUNTIME)
51VBoxNetLwipNAT_LIBS.solaris += socket nsl
52VBoxNetLwipNAT_LDFLAGS.win = /SUBSYSTEM:windows
53
54VBoxNetLwipNAT_SOURCES += \
55 proxy_pollmgr.c \
56 proxy_rtadvd.c \
57 proxytest.c \
58 pxremap.c \
59 pxtcp.c \
60 pxudp.c \
61 fwtcp.c \
62 fwudp.c \
63 portfwd.c \
64 proxy_dhcp6ds.c \
65 proxy_tftpd.c
66
67VBoxNetLwipNAT_SOURCES.darwin += rtmon_bsd.c
68VBoxNetLwipNAT_SOURCES.freebsd += rtmon_bsd.c
69VBoxNetLwipNAT_SOURCES.linux += rtmon_linux.c
70VBoxNetLwipNAT_SOURCES.solaris += rtmon_bsd.c
71VBoxNetLwipNAT_SOURCES.win += rtmon_win.c
72
73VBoxNetLwipNAT_SOURCES.win += \
74 RTWinPoll.cpp \
75 RTWinSocketPair.cpp
76
77$(eval $(call def_vbox_lwip_public, \
78 VBoxNetLwipNAT, ../../Devices/Network/lwip-new))
79endif
80
81include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

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