VirtualBox

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

Last change on this file since 30017 was 30017, checked in by vboxsync, 15 years ago

NATService: clean up.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 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 $(LIB_RUNTIME)
40VBoxNetNAT_LDFLAGS.win = /SUBSYSTEM:windows
41
42include $(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