1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-11 23:53:30 +00:00

vmnet.framework with legacy makefiles

I have not put as many checks as the CMake version has. Those may get
unwieldy.
This commit is contained in:
Calvin Buckley 2025-01-26 16:16:59 -04:00 committed by Paul Koning
parent c1c2259b13
commit d440d35560

View File

@ -1063,6 +1063,13 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
NETWORK_CCDEFS += -DUSE_NETWORK
endif
endif
# XXX: Check for the target version of macOS, check for -fblocks
ifeq (Darwin,$(OSTYPE))
# Provide support for macOS vmnet.framework (requires 10.10)
NETWORK_CCDEFS += -fblocks -DHAVE_VMNET_NETWORK
NETWORK_LAN_FEATURES += vmnet.framework
NETWORK_LDFLAGS += -framework vmnet
endif
ifeq (slirp,$(shell if ${TEST} -e slirp_glue/sim_slirp.c; then echo slirp; fi))
NETWORK_CCDEFS += -Islirp -Islirp_glue -Islirp_glue/qemu -DHAVE_SLIRP_NETWORK -DUSE_SIMH_SLIRP_DEBUG slirp/*.c slirp_glue/*.c
NETWORK_LAN_FEATURES += NAT(SLiRP)