diff --git a/Makefile.macosx b/Makefile.macosx
index 32253291..56896a9a 100644
--- a/Makefile.macosx
+++ b/Makefile.macosx
@@ -28,9 +28,15 @@ SRCDIR ?= ./
 
 # platform configuration
 
-XCODE_DEVELOPER ?= /Applications/Xcode.app/Contents/Developer
-XCODE_TOOL_PATH ?= $(XCODE_DEVELOPER)/Toolchains/XcodeDefault.xctoolchain/usr/bin
-C_COMPILER ?= $(XCODE_DEVELOPER)/usr/bin/gcc
+XCODE_PATH ?= /Applications/Xcode.app
+ifneq ("$(wildcard $(XCODE_PATH))","")
+    XCODE_DEVELOPER ?= /Applications/Xcode.app/Contents/Developer
+    XCODE_TOOL_PATH ?= $(XCODE_DEVELOPER)/Toolchains/XcodeDefault.xctoolchain/usr/bin
+    C_COMPILER ?= $(XCODE_DEVELOPER)/usr/bin/gcc
+else
+    XCODE_TOOL_PATH ?= /usr/bin
+    C_COMPILER ?= $(XCODE_TOOL_PATH)/gcc
+endif
 ARCH ?= $(shell sh $(SRCDIR)/config-arch.sh)
 
 # commands
diff --git a/README b/README
index 2f307a0f..4ee2757d 100644
--- a/README
+++ b/README
@@ -480,7 +480,9 @@ _/        _/    _/    _/    _/        _/  _/    _/        _/    _/_/
             tools being located in the "Contents/Developer/usr/bin"
             and
             "Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"
-            subdirectories, respectively. To override these locations,
+            subdirectories, respectively. If Xcode is not found, the build
+            will look for tools in /usr/bin instead.
+            To override these locations,
             set XCODE_DEVELOPER and XCODE_TOOL_PATH on the make(3)
             command line.
 
