make-rules/shared-macros.mk
changeset 109 07cc6a1a08ad
parent 108 2cfc48b87a85
child 116 ae6a90899b42
equal deleted inserted replaced
108:2cfc48b87a85 109:07cc6a1a08ad
   285 # x04 or higher.
   285 # x04 or higher.
   286 studio_XREGS.sparc =	-xregs=no%appl,float
   286 studio_XREGS.sparc =	-xregs=no%appl,float
   287 studio_XREGS.i386 =	-xregs=no%frameptr
   287 studio_XREGS.i386 =	-xregs=no%frameptr
   288 studio_XREGS =		$(studio_XREGS.$(MACH))
   288 studio_XREGS =		$(studio_XREGS.$(MACH))
   289 
   289 
       
   290 # Set data alignment on sparc to reasonable values, 8 byte alignment for 32 bit
       
   291 # objects and 16 byte alignment for 64 bit objects.  This is added to CFLAGS by
       
   292 # default.
       
   293 studio_ALIGN.sparc.32 =	-xmemalign=8s
       
   294 studio_ALIGN.sparc.64 =	-xmemalign=16s
       
   295 studio_ALIGN =		$(studio_ALIGN.$(MACH).$(BITS))
       
   296 
       
   297 # Studio shorthand for building multi-threaded code,  enables -D_REENTRANT and
       
   298 # linking with threadin support.  This is added to CFLAGS by default, override
       
   299 # studio_MT to turn this off.
       
   300 studio_MT =		-mt
       
   301 
   290 # See CPP_XPG6MODE comment above.
   302 # See CPP_XPG6MODE comment above.
   291 studio_XPG6MODE =	$(studio_C99MODE) $(CPP_XPG6MODE)
   303 studio_XPG6MODE =	$(studio_C99MODE) $(CPP_XPG6MODE)
   292 XPG6MODE =		$(studio_XPG6MODE)
   304 XPG6MODE =		$(studio_XPG6MODE)
   293 
   305 
   294 # Default Studio C compiler flags.  Add the required feature to your Makefile
   306 # Default Studio C compiler flags.  Add the required feature to your Makefile
   295 # with CFLAGS += $(FEATURE_MACRO) and add to the component build with
   307 # with CFLAGS += $(FEATURE_MACRO) and add to the component build with
   296 # CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" or similiar.  In most cases, it
   308 # CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" or similiar.  In most cases, it
   297 # should not be necessary to add CFLAGS to any environment other than the
   309 # should not be necessary to add CFLAGS to any environment other than the
   298 # configure environment.
   310 # configure environment.
   299 CFLAGS.studio +=	$(studio_OPT) $(studio_XBITS) $(studio_XREGS) \
   311 CFLAGS.studio +=	$(studio_OPT) $(studio_XBITS) $(studio_XREGS) \
   300 			$(studio_IROPTS) $(studio_C99MODE)
   312 			$(studio_IROPTS) $(studio_C99MODE) $(studio_ALIGN) \
   301 
   313 			$(studio_MT)
   302 
   314 
   303 #
   315 #
   304 # GNU C compiler flag sets to ease feature selection.  Add the required
   316 # GNU C compiler flag sets to ease feature selection.  Add the required
   305 # feature to your Makefile with CFLAGS += $(FEATURE_MACRO) and add to the
   317 # feature to your Makefile with CFLAGS += $(FEATURE_MACRO) and add to the
   306 # component build with CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" or similiar.
   318 # component build with CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" or similiar.