VirtualBox

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

Last change on this file since 34906 was 31516, checked in by vboxsync, 14 years ago

split line.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1SUB_DEPTH = ../../../..
2include $(KBUILD_PATH)/subheader.kmk
3
4ifdef VBOX_WITH_HARDENING
5 PROGRAMS += VBoxNetNATHardened
6 DLLS += VBoxNetNAT
7else
8 PROGRAMS += VBoxNetNAT
9endif
10VBoxNetNAT_TEMPLATE =
11VBoxNetNAT_TEMPLATE := VBOXR3$(if-expr defined(VBOX_WITH_HARDENING),,EXE)
12VBoxNetNAT_INCS = ../../Devices/Network/slirp
13VBoxNetNAT_DEFS = VBOX_WITH_NAT_SERVICE
14VBoxNetNAT_SOURCES += VBoxNetNAT.cpp
15VBoxNetNAT_DEFS += VBOX_WITH_NAT_SERVICE
16
17#define def_vbox_slirp_service_cflags
18# $(file)_DEFS += VBOX_WITH_NAT_SERVICE
19#endef
20
21define def_vbox_slirp_service_sources
22 VBoxNetNAT_SOURCES += $1/$(file)
23endef
24VBOX_NOT_IN_NATSERVICE = Network/DrvNAT.cpp
25$(foreach file,$(filter-out $(VBOX_NOT_IN_NATSERVICE), $(VBOX_SLIRP_SOURCES)),$(eval $(call def_vbox_slirp_service_sources, ../../Devices)))
26$(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_service_sources, ../../Devices)))
27$(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_service_sources, ../../Devices)))
28
29$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_BSD_SOURCES)),$(eval $(call def_vbox_slirp_cflags, ../../Devices/Network)))
30$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_BSD_SOURCES)),$(eval $(call def_vbox_slirp_bsd_cflags, ../../Devices/Network)))
31$(foreach file,$(addprefix ../../Devices/, $(filter-out $(VBOX_WITH_NAT_SERVICE), $(VBOX_SLIRP_SOURCES))),$(eval $(call def_vbox_slirp_service_cflags, ../../Devices/Network)))
32$(foreach file,$(addprefix ../../Devices/, $(filter-out $(VBOX_WITH_NAT_SERVICE), $(VBOX_SLIRP_SOURCES))),$(eval $(call def_vbox_slirp_cflags, ../../Devices/Network)))
33$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_ALIAS_SOURCES)),$(eval $(call def_vbox_slirp_cflags, ../../Devices/Network)))
34$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_ALIAS_SOURCES)),$(eval $(call def_vbox_slirp_alias_cflags, ../../Devices/Network)))
35
36VBoxNetNAT_SOURCES += ../NetLib/VBoxNetBaseService.cpp
37
38VBoxNetNAT_LIBS = \
39 $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
40 $(LIB_RUNTIME)
41VBoxNetNAT_LDFLAGS.win = /SUBSYSTEM:windows
42
43include $(KBUILD_PATH)/subfooter.kmk
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