SF.net SVN: gar:[24679] csw/mgar/gar/v2/gar.conf.mk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Feb 23 19:22:26 CET 2015


Revision: 24679
          http://sourceforge.net/p/gar/code/24679
Author:   dmichelsen
Date:     2015-02-23 18:22:25 +0000 (Mon, 23 Feb 2015)
Log Message:
-----------
mGAR v2: Use os-specific default compilers

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.conf.mk

Modified: csw/mgar/gar/v2/gar.conf.mk
===================================================================
--- csw/mgar/gar/v2/gar.conf.mk	2015-02-23 17:23:56 UTC (rev 24678)
+++ csw/mgar/gar/v2/gar.conf.mk	2015-02-23 18:22:25 UTC (rev 24679)
@@ -82,6 +82,11 @@
 # Space separated list of paths to search for DISTFILES.
 GARCHIVEPATH ?= $(GARCHIVEDIR)
 
+# Architecture
+GARCHLIST ?= sparc i386
+GARCH    := $(if $(GARCH),$(GARCH),$(shell /usr/bin/uname -p))
+GAROSREL := $(if $(GAROSREL),$(GAROSREL),$(shell /usr/bin/uname -r))
+
 # Select compiler
 # GARCOMPILER can be either GNU/SUN which selects the default
 # Sun or GNU compiler, or the specific verions SOS11/SOS12/SOS12U1/SOS12U2/SOS12U3/GCC3/GCC4
@@ -91,26 +96,25 @@
 # We have parameters for the following compilers
 GARCOMPILERS = GCC3 GCC4 SOS11 SOS12 SOS12U1 SOS12U2 SOS12U3
 
+GARCOMPILER-SUN-5.9 = SOS12
+GARCOMPILER-SUN-5.10 = SOS12
+GARCOMPILER-SUN-5.11 = SOS12U3
+
 ifeq ($(GARCOMPILER),SUN)
-  GARCOMPILER = SOS12
+  GARCOMPILER = $(GARCOMPILER-SUN-$(GAROSREL))
 endif
 
 ifeq ($(GARCOMPILER),GNU)
   GARCOMPILER = GCC4
 endif
 
-# Build flavor (OPT/DBG)
-GARFLAVOR ?= OPT
-
-# Architecture
-GARCHLIST ?= sparc i386
-GARCH    := $(if $(GARCH),$(GARCH),$(shell /usr/bin/uname -p))
-GAROSREL := $(if $(GAROSREL),$(GAROSREL),$(shell /usr/bin/uname -r))
-
 ifeq (,$(filter $(GARCOMPILER),$(GARCOMPILERS)))
   $(error The compiler '$(GARCOMPILER)' is unknown. Please select one of $(GARCOMPILERS))
 endif
 
+# Build flavor (OPT/DBG)
+GARFLAVOR ?= OPT
+
 # These are the standard directory name variables from all GNU
 # makefiles.  They're also used by autoconf, and can be adapted
 # for a variety of build systems.

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list