From a8589107785c5b00040955d03cfbfb75c7b6c658 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 11 Feb 1998 22:13:46 +0000 Subject: Incorporated Ralf Corsepius' idea for new -q flags to properly support "gmake debug". --- make/Templates/Makefile.leaf | 7 +++++++ make/compilers/gcc-target-default.cfg | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'make') 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= -- cgit v1.2.3