Subversion Repositories DevTools

Rev

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

Rev 3967 Rev 4034
Line 167... Line 167...
167
gcc_flags	+= -g3 -ggdb
167
gcc_flags	+= -g3 -ggdb
168
endif
168
endif
169
 
169
 
170
ifeq "$(DEBUG)" "1"				# debug/prod specific
170
ifeq "$(DEBUG)" "1"				# debug/prod specific
171
ifdef GCC_CFLAGSD
171
ifdef GCC_CFLAGSD
172
vc_flags	+= $(GCC_CFLAGSD)
172
gcc_flags	+= $(GCC_CFLAGSD)
173
endif
173
endif
174
else
174
else
175
ifdef GCC_CFLAGSP
175
ifdef GCC_CFLAGSP
176
vc_flags	+= $(GCC_CFLAGSP)
176
gcc_flags	+= $(GCC_CFLAGSP)
177
endif
177
endif
178
endif
178
endif
179
 
179
 
180
ifdef USE_STRICT_ANSI				# default NO
180
ifdef USE_STRICT_ANSI				# default NO
181
gcc_flags	+= -ansi
181
gcc_flags	+= -ansi
Line 429... Line 429...
429
 
429
 
430
#..     Archiver
430
#..     Archiver
431
#
431
#
432
ar		= $(XX_PRE) $(GCC_AR)
432
ar		= $(XX_PRE) $(GCC_AR)
433
ar_o_switch	=
433
ar_o_switch	=
434
ar_flags	= -scvr $@ \
434
ar_flags	= -scr $@ \
435
		$(patsubst %,%,$^)
435
		$(patsubst %,%,$^)
436
 
436
 
437
define ar_pre
437
define ar_pre
-
 
438
	@echo [$@] Create archive..
438
endef
439
endef
439
 
440
 
440
define ar_post
441
define ar_post
441
endef
442
endef
442
 
443
 
Line 463... Line 464...
463
#
464
#
464
shld		= $(CC_PRE) $(GCC_CC)
465
shld		= $(CC_PRE) $(GCC_CC)
465
shld_o_switch	= -o $@
466
shld_o_switch	= -o $@
466
 
467
 
467
shld_flags	+= -shared -fPIC
468
shld_flags	+= -shared -fPIC
-
 
469
shld_flags	+= -Wl,-z,defs,--warn-unresolved-symbols
468
shld_flags	+= -Xlinker -h'$(SHNAME)'
470
shld_flags	+= -Xlinker -h'$(SHNAME)'
469
shld_flags	+= -Xlinker -Map '$(LIBDIR)/$(SHBASE).map'
471
shld_flags	+= -Xlinker -Map '$(LIBDIR)/$(SHBASE).map'
470
 
472
 
471
ifeq "$(DEBUG)" "1"
473
ifeq "$(DEBUG)" "1"
472
shld_flags	+= -g
474
shld_flags	+= -g