Makefile.kmk revision 6a9535fac6406fce9d72b6e20c2b8be966da7e38
772269936494ffaddd0750ba9e28e805ba81398cvboxsync# Copyright (C) 2006-2012 Oracle Corporation
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync# available from http://www.virtualbox.org. This file is free software;
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync# you can redistribute it and/or modify it under the terms of the GNU
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync# General Public License (GPL) as published by the Free Software
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsyncSUB_DEPTH = ../../../..
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
2622c26c6b4105d944a29c5e2c77b6ef26e10101vboxsyncifdef VBOX_WITH_LWIP_NAT
4acc8b08449be3ee3745e66d85e79f474098870bvboxsync# XXX: do not depend on order
4acc8b08449be3ee3745e66d85e79f474098870bvboxsyncifndef LWIP_SOURCES
4acc8b08449be3ee3745e66d85e79f474098870bvboxsync include ../../Devices/Network/lwip-new/Makefile.kmk
1b23da133a9fa48adc1ea464ef9f17ceeacf6742vboxsyncifdef VBOX_WITH_HARDENING
1b23da133a9fa48adc1ea464ef9f17ceeacf6742vboxsync PROGRAMS += VBoxNetLwipNATHardened
1b23da133a9fa48adc1ea464ef9f17ceeacf6742vboxsync DLLS += VBoxNetLwipNAT
1b23da133a9fa48adc1ea464ef9f17ceeacf6742vboxsync PROGRAMS += VBoxNetLwipNAT
1b23da133a9fa48adc1ea464ef9f17ceeacf6742vboxsyncifdef VBOX_WITH_HARDENING
1b23da133a9fa48adc1ea464ef9f17ceeacf6742vboxsync VBoxNetLwipNATHardened_SOURCES += VBoxNetNATHardened.cpp
20fc4a350a4a8e56ffaac6cf57dcd677a7ac36c5vboxsync VBoxNetLwipNATHardened_DEFS += SERVICE_NAME=\"VBoxNetNAT\"
38ce01f0174eaa361f03608d5576e517a615a9dbvboxsync VBoxNetLwipNATHardened_TEMPLATE=VBOXR3HARDENEDEXE
20fc4a350a4a8e56ffaac6cf57dcd677a7ac36c5vboxsync VBoxNetLwipNATHardened_NAME = VBoxNetNAT
2622c26c6b4105d944a29c5e2c77b6ef26e10101vboxsyncVBoxNetLwipNAT_TEMPLATE =
38ce01f0174eaa361f03608d5576e517a615a9dbvboxsyncVBoxNetLwipNAT_TEMPLATE := VBOXMAIN$(if-expr defined(VBOX_WITH_HARDENING),DLL,CLIENTEXE)
c550c12592dedfe03ef31ce25305c688073dc72cvboxsyncVBoxNetLwipNAT_NAME = VBoxNetNAT
a24a5c1de771bb93e5b0fe0adb3e16dc6d835838vboxsyncVBoxNetLwipNAT_DEFS += ${LWIP_DEFS} IPv6
177727c096bdc6d5749f5f95c7307d9e6af5653dvboxsyncVBoxNetLwipNAT_DEFS.win += VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x501 # Windows XP
2622c26c6b4105d944a29c5e2c77b6ef26e10101vboxsyncVBoxNetLwipNAT_SOURCES += VBoxNetLwipNAT.cpp \
2622c26c6b4105d944a29c5e2c77b6ef26e10101vboxsyncVBoxNetLwipNAT_LIBS = \
2622c26c6b4105d944a29c5e2c77b6ef26e10101vboxsync $(LIB_RUNTIME)
2622c26c6b4105d944a29c5e2c77b6ef26e10101vboxsyncVBoxNetLwipNAT_LDFLAGS.win = /SUBSYSTEM:windows
2ac7f49e11a553a348be2be368bed8fd942820c4vboxsync# Convince Solaris headers to expose socket stuff we need. 600 would
2ac7f49e11a553a348be2be368bed8fd942820c4vboxsync# also work, but <sys/feature_tests.h> insists on C99 for it and so
2ac7f49e11a553a348be2be368bed8fd942820c4vboxsync# explodes for C++. Note that for 500 it insists on NOT using C99, so
2ac7f49e11a553a348be2be368bed8fd942820c4vboxsync# when some day we decide to use -std=c99 we are in for some fun.
2ac7f49e11a553a348be2be368bed8fd942820c4vboxsyncVBoxNetLwipNAT_DEFS.solaris += _XOPEN_SOURCE=500 __EXTENSIONS__=1
a218a3f92594b5f2beb9c8298c6fe6e3a8e502f8vboxsyncVBoxNetLwipNAT_SOURCES += \
a3d9dd392ec76233e30f01423ed5755e6187618evboxsync$(eval $(call def_vbox_lwip_public, \
a3d9dd392ec76233e30f01423ed5755e6187618evboxsync VBoxNetLwipNAT, ../../Devices/Network/lwip-new))
772269936494ffaddd0750ba9e28e805ba81398cvboxsyncinclude $(FILE_KBUILD_SUB_FOOTER)