VirtualBox

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

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

Finish DNS proxy code and hook it in.

  • 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 49249 2013-10-23 04:53:22Z 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} IPv6
44VBoxNetLwipNAT_DEFS.win += VBOX_COM_OUTOFPROC_MODULE _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 proxy.c \
57 pxremap.c \
58 pxtcp.c \
59 pxudp.c \
60 pxdns.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.

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