1 | SUB_DEPTH = ../../../..
|
---|
2 | include $(KBUILD_PATH)/subheader.kmk
|
---|
3 |
|
---|
4 | ifdef VBOX_WITH_HARDENING
|
---|
5 | PROGRAMS += VBoxNetNATHardened
|
---|
6 | DLLS += VBoxNetNAT
|
---|
7 | else
|
---|
8 | PROGRAMS += VBoxNetNAT
|
---|
9 | endif
|
---|
10 | VBoxNetNAT_TEMPLATE =
|
---|
11 | VBoxNetNAT_TEMPLATE := VBOXR3$(if-expr defined(VBOX_WITH_HARDENING),,EXE)
|
---|
12 | VBoxNetNAT_INCS = ../../Devices/Network/slirp
|
---|
13 | VBoxNetNAT_DEFS = VBOX_WITH_NAT_SERVICE
|
---|
14 | VBoxNetNAT_SOURCES += VBoxNetNAT.cpp
|
---|
15 | VBoxNetNAT_DEFS += VBOX_WITH_NAT_SERVICE
|
---|
16 |
|
---|
17 | #define def_vbox_slirp_service_cflags
|
---|
18 | # $(file)_DEFS += VBOX_WITH_NAT_SERVICE
|
---|
19 | #endef
|
---|
20 |
|
---|
21 | define def_vbox_slirp_service_sources
|
---|
22 | VBoxNetNAT_SOURCES += $1/$(file)
|
---|
23 | endef
|
---|
24 | VBOX_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 |
|
---|
36 | VBoxNetNAT_SOURCES += ../NetLib/VBoxNetBaseService.cpp
|
---|
37 |
|
---|
38 | VBoxNetNAT_LIBS = \
|
---|
39 | $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
|
---|
40 | $(LIB_RUNTIME)
|
---|
41 | VBoxNetNAT_LDFLAGS.win = /SUBSYSTEM:windows
|
---|
42 |
|
---|
43 | include $(KBUILD_PATH)/subfooter.kmk
|
---|