VirtualBox

Ignore:
Timestamp:
Aug 30, 2013 3:54:49 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88561
Message:

Do not hardcode lwip location in lwip makefile. Provide functions for
"calling" makefiles to add lwip to its sources and use these functions
in Devices and NAT.

XXX: It's still icky that Devices pulls in lwip makefile and then NAT
(which is included later) inherits it. But this commit allows
inclusion problem (and possible move of the lwip directory) to be
addressed separately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/Makefile.kmk

    r48110 r48178  
    1818include $(KBUILD_PATH)/subheader.kmk
    1919
    20 define def_vbox_nat_network_service_sources
    21     $(1)_SOURCES += $2/$3
    22 endef
    23 
    24 define def_vbox_nat_network_service_incs
    25     $(1)_INCS += $2/$3
    26 endef
    27 
    2820ifdef VBOX_WITH_LWIP_NAT
     21# XXX: This file depends on lwip makefile already included by Devices,
     22#      which is included by ancestor makefile before us...
     23#if !defined(LWIP_SOURCES) # ???
     24#  include ../../Devices/Network/lwip-new/Makefile.kmk
     25#endif
    2926
    3027ifdef VBOX_WITH_HARDENING
     
    7875    RTWinSocketPair.cpp
    7976
    80 #
    81 # Note: not spaces please in "Devices,$("
    82 #
    83 $(foreach file,$(LWIP_SOURCES),$(eval $(call def_vbox_nat_network_service_sources, VBoxNetLwipNAT, ../../Devices,$(file))))
    84 
    85 $(foreach incs,$(LWIP_INCS),$(eval $(call def_vbox_nat_network_service_incs, VBoxNetLwipNAT, ../../Devices,$(incs))))
    86 
     77$(eval $(call def_vbox_lwip_public, \
     78    VBoxNetLwipNAT, ../../Devices/Network/lwip-new))
    8779endif
    8880
Note: See TracChangeset for help on using the changeset viewer.

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