mirror of
https://github.com/simh/simh.git
synced 2026-04-29 21:16:46 +00:00
makefile: query C compiler for its default include paths.
This commit is contained in:
5
makefile
5
makefile
@@ -232,7 +232,10 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
|||||||
OS_LDFLAGS = -lm
|
OS_LDFLAGS = -lm
|
||||||
else # Non-Android Builds
|
else # Non-Android Builds
|
||||||
ifeq (,$(INCLUDES)$(LIBRARIES))
|
ifeq (,$(INCLUDES)$(LIBRARIES))
|
||||||
INCPATH:=/usr/include
|
INCPATH:=$(shell LANG=C; $(GCC) -x c -v -E /dev/null 2>&1 | grep -A 10 '> search starts here' | grep '^ ' | tr -d '\n')
|
||||||
|
ifeq (,$(INCPATH))
|
||||||
|
INCPATH:=/usr/include
|
||||||
|
endif
|
||||||
LIBPATH:=/usr/lib
|
LIBPATH:=/usr/lib
|
||||||
else
|
else
|
||||||
$(info *** Warning ***)
|
$(info *** Warning ***)
|
||||||
|
|||||||
Reference in New Issue
Block a user