mirror of
https://github.com/open-simh/simh.git
synced 2026-05-01 14:06:14 +00:00
makefile - added OSX build support for VDE2 when the MacPorts vde2 package is installed
This commit is contained in:
8
makefile
8
makefile
@@ -98,6 +98,14 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
|||||||
ifeq (Darwin,$(OSTYPE))
|
ifeq (Darwin,$(OSTYPE))
|
||||||
OSNAME = OSX
|
OSNAME = OSX
|
||||||
LIBEXT = dylib
|
LIBEXT = dylib
|
||||||
|
ifeq (incopt,$(shell if $(TEST) -d /opt/local/include; then echo incopt; fi))
|
||||||
|
INCPATH += /opt/local/include
|
||||||
|
OS_CCDEFS += -I/opt/local/include
|
||||||
|
endif
|
||||||
|
ifeq (libopt,$(shell if $(TEST) -d /opt/local/lib; then echo libopt; fi))
|
||||||
|
LIBPATH += /opt/local/lib
|
||||||
|
OS_LDFLAGS += -L/opt/local/lib
|
||||||
|
endif
|
||||||
# OSX's XCode gcc doesn't support LTO, but gcc built to explicitly enable it will work
|
# OSX's XCode gcc doesn't support LTO, but gcc built to explicitly enable it will work
|
||||||
ifneq (,$(GCC_VERSION))
|
ifneq (,$(GCC_VERSION))
|
||||||
ifeq (,$(shell $(GCC) -v /dev/null 2>&1 | grep '\-\-enable-lto'))
|
ifeq (,$(shell $(GCC) -v /dev/null 2>&1 | grep '\-\-enable-lto'))
|
||||||
|
|||||||
Reference in New Issue
Block a user