Import Geant4 7.1.0 source tree
This commit is contained in:
@@ -1,24 +1,18 @@
|
||||
#
|
||||
# ------ MacOS-X ------ !!! not generally supported !!!
|
||||
#
|
||||
# MacOS 10.1 GNU-gcc 2.92.2
|
||||
# MacOS 10.2 there is g++2 and g++3, choose consistently one,
|
||||
# like g++2 which is 2.95.2, g++3 for 3.X.
|
||||
# MacOS 10.3 use default MacOS-X compiler (g++) as the default.
|
||||
# Have commands to build the .dylib (MacOS-X shared libs)
|
||||
# MacOS 10.3 gcc-3.3
|
||||
# MacOS 10.4 gcc-4.0
|
||||
# Uses default MacOS-X compiler (g++).
|
||||
# Includes commands to build the .dylib (MacOS-X shared libs)
|
||||
#
|
||||
# Use echo -n (there is not the 'echo -e' option of Linux)
|
||||
#
|
||||
# Author: Helmut Burkhardt - CERN
|
||||
#
|
||||
ifeq ($(G4SYSTEM),Darwin-g++)
|
||||
# choice of compiler (take, as default, the MacOS default) :
|
||||
# CXX := g++2
|
||||
# CXX := g++3
|
||||
CXX := g++
|
||||
CXXFLAGS := -Wall -ansi -pedantic -pipe
|
||||
# optionally add verbose flag
|
||||
# CXXFLAGS += -v
|
||||
CXXFLAGS := -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long
|
||||
CXXFLAGS += -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe
|
||||
ifdef G4OPTIMISE
|
||||
CXXFLAGS += -O
|
||||
FCFLAGS := -O
|
||||
|
||||
@@ -18,10 +18,9 @@ ifeq ($(G4SYSTEM),SUN-CC)
|
||||
CCFLAGS += -KPIC
|
||||
endif
|
||||
G4RUNPATHOPTION := -R
|
||||
CFRONT_G4TEMPLATE_REPOSITORY := true
|
||||
FC := f77
|
||||
SHEXT := so
|
||||
AR := $(CXX) -xar -ptr$(G4TREP) -o
|
||||
AR := $(CXX) -xar -o
|
||||
ECHO := /bin/echo
|
||||
GREP := /usr/xpg4/bin/grep
|
||||
FCLIBS := -lM77 -lF77 -lsunmath
|
||||
@@ -41,7 +40,7 @@ ifeq ($(G4SYSTEM),SUN-CC)
|
||||
OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL
|
||||
endif
|
||||
CPPFLAGS += -DSOCKET_IRIX_SOLARIS
|
||||
LOADLIBS += -lsocket -lnsl
|
||||
LOADLIBS += -lsunmath -lsocket -lnsl
|
||||
CPPFLAGS += -DG4NOT_ISO_DELETES -DG4NO_ISO_VECDIST
|
||||
|
||||
define build-granular-shared-lib
|
||||
|
||||
Reference in New Issue
Block a user