Subversion Repositories DevTools

Rev

Rev 367 | Rev 377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 367 Rev 373
Line 84... Line 84...
84
endif
84
endif
85
 
85
 
86
gcc_defines	+= -D_REENTRANT
86
gcc_defines	+= -D_REENTRANT
87
 
87
 
88
ifeq "$(DEBUG)" "1"
88
ifeq "$(DEBUG)" "1"
89
gcc_defines	+= -DDEBUG -g3 -ggdb
89
gcc_defines	+= -DDEBUG
90
else
90
else
91
gcc_defines	+=
91
gcc_defines	+=
92
endif
92
endif
93
 
93
 
94
ifdef ALVL
94
ifdef ALVL
Line 143... Line 143...
143
ifdef USE_OPTIMISE				# default for production
143
ifdef USE_OPTIMISE				# default for production
144
else
144
else
145
endif
145
endif
146
 
146
 
147
ifdef USE_DEBUGINFO				# default for debug
147
ifdef USE_DEBUGINFO				# default for debug
148
gcc_flags	+= -g3
148
gcc_flags	+= -g3 -ggdb
149
else
149
else
150
gcc_flags	+=
150
gcc_flags	+= -g3 -ggdb
151
endif
151
endif
152
 
152
 
153
ifeq "$(DEBUG)" "1"				# debug/prod specific
153
ifeq "$(DEBUG)" "1"				# debug/prod specific
154
ifdef GCC_CFLAGSD
154
ifdef GCC_CFLAGSD
155
vc_flags	+= $(GCC_CFLAGSD)
155
vc_flags	+= $(GCC_CFLAGSD)
Line 510... Line 510...
510
	$(AA_PRE)export GCC_LIB; \
510
	$(AA_PRE)export GCC_LIB; \
511
		GCC_LIB="$(subst $(space),;,$(LIBDIRS))"; \
511
		GCC_LIB="$(subst $(space),;,$(LIBDIRS))"; \
512
	$(cmdfile) -wo$@ "@(vlibgcc,$(GCC_CC))$($(DPLIST))"
512
	$(cmdfile) -wo$@ "@(vlibgcc,$(GCC_CC))$($(DPLIST))"
513
endef
513
endef
514
 
514
 
-
 
515
 
515
#
516
#
-
 
517
#   LDSTRIP
-
 
518
#       $1 - Full name of the ouput
-
 
519
#       $2 - Full name of debug file
-
 
520
define LDSTRIP
-
 
521
    $(GCC_OBJCOPY) --only-keep-debug $1 $2 || rm -f $1 $2
-
 
522
    $(GCC_OBJCOPY) --strip-debug $1 || rm -f $1 $2
-
 
523
    $(GCC_OBJCOPY) --add-gnu-debuglink=$2 $1 || rm -f $1 $2
-
 
524
 
-
 
525
endef