mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
MAKEFILE: Added support to attempt to use the OS provided cc if gcc isn't available or otherwise specified by GCC= on the make command line.
This commit is contained in:
8
makefile
8
makefile
@@ -77,7 +77,13 @@ else
|
||||
endif
|
||||
ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||
ifeq ($(GCC),)
|
||||
GCC = gcc
|
||||
ifneq (has-gcc,$(shell if which -s gcc; then echo has-gcc; fi))
|
||||
$(info *** Warning *** Using local cc since gcc isn't available locally.)
|
||||
$(info *** Warning *** You may need to install gcc to build working simulators.)
|
||||
GCC = cc
|
||||
else
|
||||
GCC = gcc
|
||||
endif
|
||||
endif
|
||||
OSTYPE = $(shell uname)
|
||||
# OSNAME is used in messages to indicate the source of libpcap components
|
||||
|
||||
Reference in New Issue
Block a user