# $Id: Makefile.kmk 48365 2013-09-06 15:49:18Z vboxsync $ ## @file # # # Copyright (C) 2006-2012 Oracle Corporation # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; # you can redistribute it and/or modify it under the terms of the GNU # General Public License (GPL) as published by the Free Software # Foundation, in version 2 as it comes in the "COPYING" file of the # VirtualBox OSE distribution. VirtualBox OSE is distributed in the # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. # SUB_DEPTH = ../../../.. include $(KBUILD_PATH)/subheader.kmk ifdef VBOX_WITH_LWIP_NAT # XXX: do not depend on order ifndef LWIP_SOURCES include ../../Devices/Network/lwip-new/Makefile.kmk endif ifdef VBOX_WITH_HARDENING PROGRAMS += VBoxNetLwipNATHardened DLLS += VBoxNetLwipNAT else PROGRAMS += VBoxNetLwipNAT endif ifdef VBOX_WITH_HARDENING VBoxNetLwipNATHardened_SOURCES += VBoxNetNATHardened.cpp VBoxNetLwipNATHardened_DEFS += SERVICE_NAME=\"VBoxNetNAT\" VBoxNetLwipNATHardened_TEMPLATE=VBOXR3HARDENEDEXE VBoxNetLwipNATHardened_NAME = VBoxNetNAT endif VBoxNetLwipNAT_TEMPLATE = VBoxNetLwipNAT_TEMPLATE := VBOXMAIN$(if-expr defined(VBOX_WITH_HARDENING),DLL,CLIENTEXE) VBoxNetLwipNAT_NAME = VBoxNetNAT VBoxNetLwipNAT_DEFS += ${LWIP_DEFS} IPv6 VBoxNetLwipNAT_DEFS.win += _WIN32_WINNT=0x501 # Windows XP VBoxNetLwipNAT_SOURCES += VBoxNetLwipNAT.cpp \ ../NetLib/VBoxNetBaseService.cpp \ ../NetLib/VBoxNetPortForwardString.cpp VBoxNetLwipNAT_LIBS = \ $(LIB_RUNTIME) VBoxNetLwipNAT_LIBS.solaris += socket nsl VBoxNetLwipNAT_LDFLAGS.win = /SUBSYSTEM:windows VBoxNetLwipNAT_SOURCES += \ proxy_pollmgr.c \ proxy_rtadvd.c \ proxytest.c \ pxremap.c \ pxtcp.c \ pxudp.c \ fwtcp.c \ fwudp.c \ portfwd.c \ proxy_dhcp6ds.c \ proxy_tftpd.c VBoxNetLwipNAT_SOURCES.darwin += rtmon_bsd.c VBoxNetLwipNAT_SOURCES.freebsd += rtmon_bsd.c VBoxNetLwipNAT_SOURCES.linux += rtmon_linux.c VBoxNetLwipNAT_SOURCES.solaris += rtmon_bsd.c VBoxNetLwipNAT_SOURCES.win += rtmon_win.c VBoxNetLwipNAT_SOURCES.win += \ RTWinPoll.cpp \ RTWinSocketPair.cpp $(eval $(call def_vbox_lwip_public, \ VBoxNetLwipNAT, ../../Devices/Network/lwip-new)) endif include $(FILE_KBUILD_SUB_FOOTER)