summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-11 22:13:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-11 22:13:46 +0000
commita8589107785c5b00040955d03cfbfb75c7b6c658 (patch)
tree066c1c05efac1f0e8ddd86e18e1bd35da73884da /make
parentDon't install tools using variant name. (diff)
downloadrtems-a8589107785c5b00040955d03cfbfb75c7b6c658.tar.bz2
Incorporated Ralf Corsepius' idea for new -q flags to properly support
"gmake debug".
Diffstat (limited to 'make')
-rw-r--r--make/Templates/Makefile.leaf7
-rw-r--r--make/compilers/gcc-target-default.cfg4
2 files changed, 11 insertions, 0 deletions
diff --git a/make/Templates/Makefile.leaf b/make/Templates/Makefile.leaf
index 6f098d4b50..8d610b1c0e 100644
--- a/make/Templates/Makefile.leaf
+++ b/make/Templates/Makefile.leaf
@@ -45,6 +45,13 @@ DEFINES +=
CPPFLAGS +=
CFLAGS +=
+#
+# CFLAGS_DEBUG_V are used when the `make debug' target is built.
+# To link your application with the non-optimized RTEMS routines,
+# uncomment the following line:
+# CFLAGS_DEBUG_V += -qrtems_debug
+#
+
LD_PATHS += xxx-your-EXTRA-library-paths-go-here, if any
LD_LIBS += xxx-your-libraries-go-here eg: -lvx
LDFLAGS +=
diff --git a/make/compilers/gcc-target-default.cfg b/make/compilers/gcc-target-default.cfg
index 32f40c5e96..c832a08143 100644
--- a/make/compilers/gcc-target-default.cfg
+++ b/make/compilers/gcc-target-default.cfg
@@ -71,6 +71,10 @@ endif
# debug flag; typically -g
CFLAGS_DEBUG_V+=-g -Wno-unused
+ifeq ($(RTEMS_USE_GCC272),no)
+CFLAGS_DEBUG_V+=-qrtems_debug
+endif
+
# when debugging, optimize flag: typically empty
# some compilers do allow optimization with their "-g"
#CFLAGS_DEBUG_OPTIMIZE_V=