Subversion Repositories DevTools

Rev

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

Rev 261 Rev 313
Line 57... Line 57...
57
USE_CCDEPEND	= 1
57
USE_CCDEPEND	= 1
58
endif
58
endif
59
endif
59
endif
60
 
60
 
61
###############################################################################
61
###############################################################################
-
 
62
#..	Common compiler and linker flags
-
 
63
#
-
 
64
ifdef THREADMODE
-
 
65
common_flags         += -mt
-
 
66
endif
-
 
67
ifdef MISALIGN
-
 
68
common_flags         += -misalign
-
 
69
endif
-
 
70
ifdef COMPILE32
-
 
71
common_flags         += -xtarget=generic
-
 
72
endif
-
 
73
ifdef COMPILE64
-
 
74
common_flags         += -m64
-
 
75
  ifndef ISA_SPARC
-
 
76
  common_flags       += -xmodel=medium
-
 
77
  endif
-
 
78
endif
-
 
79
 
-
 
80
 
-
 
81
###############################################################################
62
#..     C Compiler definition
82
#..     C Compiler definition
63
#
83
#
64
ifndef SUNWSPRO_SC
84
ifndef SUNWSPRO_SC
65
    $(error Internal: SUNWSPRO_SC has not been defined by the build system)
85
    $(error Internal: SUNWSPRO_SC has not been defined by the build system)
66
endif
86
endif
Line 113... Line 133...
113
		$(patsubst %,-I%,$(suncc_includes))
133
		$(patsubst %,-I%,$(suncc_includes))
114
 
134
 
115
suncc_includes	+=
135
suncc_includes	+=
116
 
136
 
117
suncc_flags	= -c
137
suncc_flags	= -c
118
ifdef THREADMODE
-
 
119
suncc_flags         += -mt
-
 
120
endif
-
 
121
ifdef MISALIGN
-
 
122
suncc_flags         += -misalign
138
suncc_flags	+= $(common_flags)
123
endif
-
 
124
ifdef COMPILE32
-
 
125
suncc_flags         += -xtarget=generic
-
 
126
endif
-
 
127
ifdef COMPILE64
-
 
128
suncc_flags         += -xtarget=generic64
-
 
129
endif
-
 
130
ifdef suncc_filter
139
ifdef suncc_filter
131
suncc_flags	+= +w2
140
suncc_flags	+= +w2
132
else
141
else
133
suncc_flags	+= +w
142
suncc_flags	+= +w
134
endif
143
endif
Line 357... Line 366...
357
shld		= $(CC_PRE) $(SUNWSPRO_SC)/bin/CC
366
shld		= $(CC_PRE) $(SUNWSPRO_SC)/bin/CC
358
shld_init	=
367
shld_init	=
359
shld_o_switch	= -o $@
368
shld_o_switch	= -o $@
360
 
369
 
361
shld_flags	+= +w -G -h'$(SHBASE)$(GBE_TYPE).so'
370
shld_flags	+= +w -G -h'$(SHBASE)$(GBE_TYPE).so'
362
ifdef THREADMODE
-
 
363
shld_flags         += -mt
-
 
364
endif
-
 
365
ifdef MISALIGN
-
 
366
shld_flags         += -misalign
-
 
367
endif
-
 
368
ifdef USE_DEBUGINFO
371
ifdef USE_DEBUGINFO
369
shld_flags	+= -g
372
shld_flags	+= -g
370
endif
373
endif
371
ifdef COMPILE32
-
 
372
shld_flags         += -xtarget=generic
374
shld_flags      += $(common_flags)
373
endif
-
 
374
ifdef COMPILE64
-
 
375
shld_flags         += -xtarget=generic64
-
 
376
endif
-
 
377
 
-
 
378
 
-
 
379
shld_flags	+= \
375
shld_flags	+= \
380
		$(patsubst %,-L%,$(LIBDIRS)) \
376
		$(patsubst %,-L%,$(LIBDIRS)) \
381
		$(patsubst %,-%,$(LDFLAGS)) \
377
		$(patsubst %,-%,$(LDFLAGS)) \
382
		$($(notdir $(SHBASE))_ld)
378
		$($(notdir $(SHBASE))_ld)
383
 
379
 
Line 400... Line 396...
400
ld		= $(CC_PRE)$(CC_PURIFY) $(SUNWSPRO_SC)/bin/CC
396
ld		= $(CC_PRE)$(CC_PURIFY) $(SUNWSPRO_SC)/bin/CC
401
ld_init		=
397
ld_init		=
402
ld_o_switch	= -o $@
398
ld_o_switch	= -o $@
403
 
399
 
404
ld_flags	+= +w
400
ld_flags	+= +w
405
ifdef THREADMODE
-
 
406
ld_flags         += -mt
-
 
407
endif
-
 
408
ifdef MISALIGN
-
 
409
ld_flags         += -misalign
-
 
410
endif
-
 
411
ifdef USE_DEBUGINFO
401
ifdef USE_DEBUGINFO
412
ld_flags	+= -g
402
ld_flags	+= -g
413
endif
403
endif
414
ifdef COMPILE32
-
 
415
ld_flags         += -xtarget=generic
404
ld_flags        += $(common_flags)
416
endif
-
 
417
ifdef COMPILE64
-
 
418
ld_flags         += -xtarget=generic64
-
 
419
endif
-
 
420
 
-
 
421
ld_flags	+= \
405
ld_flags	+= \
422
		$(patsubst %,-L%,$(LIBDIRS)) \
406
		$(patsubst %,-L%,$(LIBDIRS)) \
423
		$(patsubst %,-%,$(LDFLAGS)) \
407
		$(patsubst %,-%,$(LDFLAGS)) \
424
		$($(notdir $(basename $@))_ld)
408
		$($(notdir $(basename $@))_ld)
425
 
409