diff --git a/App/tools/driver.makefile b/App/tools/driver.makefile
index b52f7ebd3b37e266e8caf471d5b347d298b7ad1c..4c06c97980efd1e23635b8ab3d1c4366d45e2ba8 100644
--- a/App/tools/driver.makefile
+++ b/App/tools/driver.makefile
@@ -750,7 +750,12 @@ build: ${DEPFILE}
 INSTALL_LOADABLE_SHRLIBS=
 # Avoid installing *.munch to bin directory.
 INSTALL_MUNCHS=
-include ${BASERULES}
+
+# We ony want to include ${BASERULES} from EPICS base if we are /not/ in debug
+# mode. Including this causes all of the source files to be compiled!
+ifeq (,$(findstring debug,${MAKECMDGOALS}))
+include ${BASERULES} 
+endif
 
 # Fix incompatible release rules.
 RELEASE_DBDFLAGS = -I ${EPICS_BASE}/dbd