VirtualBox

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

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

Conditionally include lwip makefile to make it possible to build
locally. This is still icky.

  • 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 48179 2013-08-30 04:59:15Z 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: do not depend on order
22ifndef LWIP_SOURCES
23 include ../../Devices/Network/lwip-new/Makefile.kmk
24endif
25
26ifdef VBOX_WITH_HARDENING
27 PROGRAMS += VBoxNetLwipNATHardened
28 DLLS += VBoxNetLwipNAT
29else
30 PROGRAMS += VBoxNetLwipNAT
31endif
32
33ifdef VBOX_WITH_HARDENING
34 VBoxNetLwipNATHardened_SOURCES += VBoxNetNATHardened.cpp
35 VBoxNetLwipNATHardened_DEFS += SERVICE_NAME=\"VBoxNetNAT\"
36 VBoxNetLwipNATHardened_TEMPLATE=VBOXR3HARDENEDEXE
37 VBoxNetLwipNATHardened_NAME = VBoxNetNAT
38endif
39
40VBoxNetLwipNAT_TEMPLATE =
41VBoxNetLwipNAT_TEMPLATE := VBOXMAIN$(if-expr defined(VBOX_WITH_HARDENING),DLL,CLIENTEXE)
42VBoxNetLwipNAT_NAME = VBoxNetNAT
43VBoxNetLwipNAT_DEFS += ${LWIP_DEFS}
44VBoxNetLwipNAT_DEFS.win += _WIN32_WINNT=0x501 # Windows XP
45VBoxNetLwipNAT_SOURCES += VBoxNetLwipNAT.cpp \
46 ../NetLib/VBoxNetBaseService.cpp \
47 ../NetLib/VBoxNetPortForwardString.cpp
48VBoxNetLwipNAT_LIBS = \
49 $(LIB_RUNTIME)
50VBoxNetLwipNAT_LIBS.solaris += socket nsl
51VBoxNetLwipNAT_LDFLAGS.win = /SUBSYSTEM:windows
52
53VBoxNetLwipNAT_SOURCES += \
54 proxy_pollmgr.c \
55 proxy_rtadvd.c \
56 proxytest.c \
57 pxremap.c \
58 pxtcp.c \
59 pxudp.c \
60 fwtcp.c \
61 fwudp.c \
62 portfwd.c \
63 proxy_dhcp6ds.c \
64 proxy_tftpd.c
65
66VBoxNetLwipNAT_SOURCES.darwin += rtmon_bsd.c
67VBoxNetLwipNAT_SOURCES.freebsd += rtmon_bsd.c
68VBoxNetLwipNAT_SOURCES.linux += rtmon_linux.c
69VBoxNetLwipNAT_SOURCES.solaris += rtmon_bsd.c
70VBoxNetLwipNAT_SOURCES.win += rtmon_win.c
71
72VBoxNetLwipNAT_SOURCES.win += \
73 RTWinPoll.cpp \
74 RTWinSocketPair.cpp
75
76$(eval $(call def_vbox_lwip_public, \
77 VBoxNetLwipNAT, ../../Devices/Network/lwip-new))
78endif
79
80include $(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