mirror of
https://github.com/simh/simh.git
synced 2026-01-27 12:32:24 +00:00
ETHER: Add vmnet support for macOS Catalina 10.15.7 through Big Sur 11.7.10
This commit is contained in:
6
makefile
6
makefile
@@ -972,12 +972,18 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
|
||||
else
|
||||
DONT_USE_VMNET = $(shell if ${TEST} $(macOSMajor) -lt 10; then echo DONT_USE_VMNET; fi)
|
||||
endif
|
||||
ifeq (,$(DONT_USE_VMNET)$(DONT_USE_VMNET_HOST))
|
||||
DONT_USE_VMNET_HOST = $(shell if ${TEST} $(macOSMajor) -lt 11; then echo DONT_USE_VMNET_HOST; fi)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifneq (,$(if $(DONT_USE_VMNET),,$(call find_include,vmnet.framework/Headers/vmnet)))
|
||||
# sim_ether reduces network features to the appropriate minimal set
|
||||
NETWORK_LAN_FEATURES += VMNET
|
||||
NETWORK_CCDEFS += -DUSE_SHARED -I slirp -I slirp_glue -I slirp_glue/qemu -DHAVE_VMNET_NETWORK
|
||||
ifneq (,$(DONT_USE_VMNET_HOST))
|
||||
NETWORK_CCDEFS += -DDONT_USE_VMNET_HOST
|
||||
endif
|
||||
NETWORK_DEPS += slirp/*.c slirp_glue/*.c
|
||||
NETWORK_LDFLAGS += -framework vmnet
|
||||
$(info using vmnet: $(call find_include,vmnet.framework/Headers/vmnet))
|
||||
|
||||
Reference in New Issue
Block a user