+# -*- mode: makefile -*-
# Makefile to build AliRoot for Alpha OSF1
# System dependent commands
+# -*- mode: makefile -*-
# Makefile to build AliRoot on HP-UX
# System dependent commands
+# -*- mode: makefile -*-
# Makefile to build AliRoot for Linux
# System dependent commands
CC = gcc
CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1)
CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2)
-
-ifneq (,$(findstring g95,$(ROOTBUILD)))
-F77 = g95
-else
-ifneq (,$(findstring gfortran,$(ROOTBUILD)))
-F77 = gfortran
-else
-F77 = g77
-endif
-endif
+F77 = $(shell root-config --f77)
# Global optimisation
OPT = -O -g
CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore
-ifneq (,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
FFLAGS +=-DFORTRAN_G95
else
-ifneq (,$(findstring gfortran,$(ROOTBUILD)))
+ifeq (gfortran,$(F77))
FFLAGS +=-DFORTRAN_GFORTRAN
else
FFLAGS +=
#System libraries
SYSLIBS := -ldl -lcrypt -L/usr/X11R6/lib -lX11
-ifneq (,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
SHLIB += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95
else
-ifneq (,$(findstring gfortran,$(ROOTBUILD)))
+ifeq (gfortran,$(F77))
SHLIB := $(shell gfortran -print-file-name=libgfortran.so)
SHLIB += $(shell gfortran -print-file-name=libgfortranbegin.a)
SYSLIBS += $(SHLIB)
+# -*- mode: makefile -*-
# Makefile for AliRoot for Itanium/Linux with Intel icc compiler
# System dependent commands
+# -*- mode: makefile -*-
# Makefile for AliRoot for Itanium/Linux with gcc
# System dependent commands
+# -*- mode: makefile -*-
# Makefile for AliRoot for Linux with the Intel icc compiler
# System dependent commands
+# -*- mode: makefile -*-
# Makefile to build AliRoot for Linux
# System dependent commands
CC = gcc
CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1)
CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2)
-
-ifneq (,$(findstring g95,$(ROOTBUILD)))
-F77 = g95
-else
-ifneq (,$(findstring gfortran,$(ROOTBUILD)))
-F77 = gfortran
-else
-F77 = g77
-endif
-endif
+F77 = $(shell root-config --f77)
# Global optimisation
OPT = -O0 -g
CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi -m64
FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore -fPIC -fno-f2c -m64
-ifneq (,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
FFLAGS +=-DFORTRAN_G95
else
-ifneq (,$(findstring gfortran,$(ROOTBUILD)))
+ifeq (gfortran,$(F77))
FFLAGS +=-DFORTRAN_GFORTRAN
else
FFLAGS +=
SYSLIBS := -ldl -lcrypt -L/usr/X11R6/lib64 -lX11 $(LIBNOVER)
-ifneq (,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
SHLIB += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95
else
-ifneq (,$(findstring gfortran,$(ROOTBUILD)))
+ifeq (gfortran,$(F77))
SHLIB := $(shell gfortran -print-file-name=libgfortran.so)
SHLIB += $(shell gfortran -print-file-name=libgfortranbegin.a)
else
+# -*- mode: makefile -*-
# Makefile for AliRoot for MacOS X with gcc
XARGS = xargs
# The compilers
CXX = g++
CC = gcc
-
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
-F77 = g95
-else
-F77 = gfortran
-endif
+F77 = $(root-config --f77)
# Global optimisation
OPT = -O -g
CXXNOOPT = $(NOOPT)
COPT = $(OPT)
FOPT = $(OPT) -fno-second-underscore
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
FOPT += -fbounds-check
endif
CFLAGS = $(COPT) -Wall -W -fno-common -pipe -I$(FINK_ROOT)/include
FFLAGS = $(CLIBFOPT) $(FOPT)
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
FFLAGS += -ftrace=full
FFLAGS +=-DFORTRAN_G95
else
#System libraries
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
SYSLIBS += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95
DYLIB += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95
else
+# -*- mode: makefile -*-
# Makefile for AliRoot for MacOS X with gcc
XARGS = xargs
# The compilers
CXX = g++
CC = gcc
-
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
-F77 = g95
-else
-F77 = gfortran
-endif
+F77 = $(shell root-config --f77)
# Global optimisation
OPT = -O -g
CXXNOOPT = $(NOOPT)
COPT = $(OPT)
FOPT = $(OPT) -fno-second-underscore -m64
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
FOPT += -fbounds-check
endif
CFLAGS = $(COPT) -m64 -Wall -W -fno-common -pipe -I$(FINK_ROOT)/include
FFLAGS = $(CLIBFOPT) $(FOPT)
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
FFLAGS += -ftrace=full
FFLAGS +=-DFORTRAN_G95
else
#System libraries
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
+ifeq (g95,$(F77))
SYSLIBS += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95
else
SYSLIBS += -ldl $(shell $(F77) -m64 -print-file-name=libgfortran.dylib)
+# -*- mode: makefile -*-
# Makefile for AliRoot for MacOS X with gcc
XARGS = xargs
+# -*- mode: makefile -*-
# Makefile for AliRoot for MacOS X using the IBM xlc compiler
# The compilers
+# -*- mode: makefile -*-
# Makefile to build ALIROOT for SunOS
# System dependent commands
+# -*- mode: makefile -*-
# Makefile to build AliRoot for Linux
# System dependent commands