VirtualBox

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

最後變更 在這個檔案從29820是 27856,由 vboxsync 提交於 15 年 前

export NetworkServices/NAT and NetworkServices/NetLib to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.1 KB
 
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
16VBoxNetNAT_DEFS += VBOX_WITH_SLIRP_BSD_MBUF
17
18#define def_vbox_slirp_service_cflags
19# $(file)_DEFS += VBOX_WITH_NAT_SERVICE
20#endef
21
22define def_vbox_slirp_service_sources
23 VBoxNetNAT_SOURCES += $1/$(file)
24endef
25VBOX_NOT_IN_NATSERVICE = Network/DrvNAT.cpp
26$(foreach file,$(filter-out $(VBOX_NOT_IN_NATSERVICE), $(VBOX_SLIRP_SOURCES)),$(eval $(call def_vbox_slirp_service_sources, ../../Devices)))
27$(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_service_sources, ../../Devices)))
28$(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_service_sources, ../../Devices)))
29
30$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_BSD_SOURCES)),$(eval $(call def_vbox_slirp_cflags, ../../Devices/Network)))
31$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_BSD_SOURCES)),$(eval $(call def_vbox_slirp_bsd_cflags, ../../Devices/Network)))
32$(foreach file,$(addprefix ../../Devices/, $(filter-out $(VBOX_WITH_NAT_SERVICE), $(VBOX_SLIRP_SOURCES))),$(eval $(call def_vbox_slirp_service_cflags, ../../Devices/Network)))
33$(foreach file,$(addprefix ../../Devices/, $(filter-out $(VBOX_WITH_NAT_SERVICE), $(VBOX_SLIRP_SOURCES))),$(eval $(call def_vbox_slirp_cflags, ../../Devices/Network)))
34$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_ALIAS_SOURCES)),$(eval $(call def_vbox_slirp_cflags, ../../Devices/Network)))
35$(foreach file,$(addprefix ../../Devices/, $(VBOX_SLIRP_ALIAS_SOURCES)),$(eval $(call def_vbox_slirp_alias_cflags, ../../Devices/Network)))
36
37VBoxNetNAT_SOURCES += ../NetLib/VBoxNetBaseService.cpp
38
39VBoxNetNAT_LIBS = \
40 $(LIB_RUNTIME)
41VBoxNetNAT_LDFLAGS.win = /SUBSYSTEM:windows
42
43include $(KBUILD_PATH)/subfooter.kmk
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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