Warning, /geant4/config/sys/SUN-CC.gmk is written in an unsupported language. File is not indexed.
0001 #
0002 # -------- SUN ---------
0003 #
0004 ifeq ($(G4SYSTEM),SUN-CC)
0005 CXX := CC
0006 ifdef G4OPTIMISE
0007 CXXFLAGS := -xO2
0008 else
0009 ifdef G4DEBUG
0010 CXXFLAGS := -g
0011 FCFLAGS := -g
0012 CCFLAGS := -g
0013 endif
0014 endif
0015 ifdef G4LIB_BUILD_SHARED
0016 CXXFLAGS += -KPIC
0017 FCFLAGS += -KPIC
0018 CCFLAGS += -KPIC
0019 endif
0020 CPPFLAGS += -DSOCKET_IRIX_SOLARIS
0021 CPPFLAGS += -DG4NOT_ISO_DELETES -DG4NO_ISO_VECDIST
0022 G4RUNPATHOPTION := -R
0023 FC := f77
0024 SHEXT := so
0025 AR := $(CXX) -xar -o
0026 ECHO := /bin/echo
0027 GREP := /usr/xpg4/bin/grep
0028 FCLIBS := -lM77 -lF77 -lsunmath
0029 LOADLIBS += -lm -lstdc++
0030 ifndef X11FLAGS
0031 X11FLAGS := -I/usr/openwin/include/X11/extensions -I/usr/openwin/include/X11
0032 X11FLAGS += -I/usr/openwin/include
0033 endif
0034 ifndef X11LIBS
0035 X11LIBS := -L/usr/openwin/lib -L/usr/dt/lib -L/usr/ucblib
0036 X11LIBS += -R/usr/openwin/lib -lXmu -lX11 -lXext
0037 endif
0038 ifndef XMLIBS
0039 XMLIBS := -L/usr/openwin/lib -L/usr/dt/lib -L/usr/ucblib
0040 XMLIBS += -R/usr/openwin/lib -lXt -lXm -lX11
0041 endif
0042 ifndef XAWFLAGS
0043 XAWFLAGS := -I/usr/openwin/include/X11
0044 endif
0045 ifndef XAWLIBS
0046 XAWLIBS := -L/usr/openwin/lib -L/usr/dt/lib -L/usr/ucblib
0047 XAWLIBS += -R/usr/openwin/lib -lXaw -lXmu -lXt -lX11 -lXext
0048 endif
0049 ifndef OGLFLAGS
0050 OGLFLAGS := -I$(OGLHOME)/include
0051 endif
0052 ifndef OGLLIBS
0053 OGLLIBS := -L$(OGLHOME)/lib -lGL
0054 endif
0055 LOADLIBS += -lsunmath -lsocket -lnsl
0056
0057 define build-granular-shared-lib
0058 @libdir=`(cd $(@D);/bin/pwd)`; \
0059 cd $(G4TMPDIR); \
0060 $(CXX) -G $(CXXTEMPLATE_FLAGS) -o $$libdir/$(@F) -h $(@F) $(INTYLIBS) *.o
0061 endef
0062 define build-global-shared-lib
0063 @libdir=`(cd $(@D);/bin/pwd)`; \
0064 cd $(G4TMP)/$(G4SYSTEM); \
0065 $(CXX) -G $(CXXTEMPLATE_FLAGS) -o $$libdir/$(@F) -h $(@F) $(INTYLIBS) \
0066 $(foreach dir,$(SUBLIBS),$(dir)/*.o);
0067 endef
0068 endif