Revision 4ba0a469a0e5d6353410cb6d0123911d15862541 authored by Fons Rademakers on 10 January 2013, 15:54:38 UTC, committed by Fons Rademakers on 10 January 2013, 15:54:38 UTC
git-svn-id: http://root.cern.ch/svn/root/tags/v5-34-04@48259 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent e4e789a
Makefile.linux
# -*- mode: makefile -*-
#
# Makefile of ROOT for Linux with glibc and gcc 2.9x, gcc 3 (>RH5.1)
PLATFORM = linux
DEBUGFLAGS = -g
OPTFLAGS = -O2
ifeq (debug,$(findstring debug,$(ROOTBUILD)))
OPT = $(DEBUGFLAGS)
NOOPT =
else
OPT = $(OPTFLAGS)
NOOPT =
endif
ifeq ($(CXX11),yes)
CXX11FLAGS = -std=c++11 -Wno-deprecated-declarations
endif
# Compiler:
CXX = g++
CC = gcc
CXXFLAGS = -pipe -m32 -Wall -W -Woverloaded-virtual \
-fPIC $(EXTRA_CXXFLAGS) $(CXX11FLAGS)
CFLAGS = -pipe -m32 -Wall -W -fPIC $(EXTRA_CFLAGS)
CINTCXXFLAGS = -pipe -m32 -Wall -W -Woverloaded-virtual \
-fPIC $(EXTRA_CXXFLAGS) $(CXX11FLAGS) \
-DG__REGEXP -DG__UNIX -DG__SHAREDLIB \
-DG__OSFDLL -DG__ROOT -DG__REDIRECTIO \
-DG__STD_EXCEPTION
CINTCFLAGS = -pipe -m32 -Wall -W -fPIC $(EXTRA_CFLAGS) \
-DG__REGEXP -DG__UNIX -DG__SHAREDLIB \
-DG__OSFDLL -DG__ROOT -DG__REDIRECTIO \
-DG__STD_EXCEPTION
COMPILER = gnu
# Linker:
LD = g++
LDFLAGS = -m32 $(OPT) $(EXTRA_LDFLAGS) -Wl,--no-undefined -Wl,--as-needed
SOFLAGS = -shared -Wl,-soname,
SOEXT = so
# System libraries:
SYSLIBS = -lm -ldl $(OSTHREADLIBDIR) $(OSTHREADLIB) \
$(ALLOCLIBDIR) $(ALLOCLIB) -rdynamic
XLIBS = $(XPMLIBDIR) $(XPMLIB) $(X11LIBDIR) -lXext -lX11
CILIBS = -lm -ldl -rdynamic
CRYPTLIBS = -lcrypt
# Fortran:
ifneq ($(findstring gfortran, $(F77)),)
ifeq ($(F77),)
# only needed to get default compiler in ./configure
F77 = gfortran
endif
F77FLAGS = -m32 -fPIC -std=legacy
ifneq ($(shell $(F77) -m32 -print-file-name=libgfortran.$(SOEXT)),libgfortran.$(SOEXT))
F77LIBS := $(shell $(F77) -m32 -print-file-name=libgfortran.$(SOEXT))
else
F77LIBS := $(shell $(F77) -m32 -print-file-name=libgfortran.a)
endif
F77LIBS += $(shell $(F77) -m32 -print-file-name=libgfortranbegin.a)
endif
ifneq ($(findstring g77, $(F77)),)
ifeq ($(F77),)
# only needed to get default compiler in ./configure
F77 = g77
endif
F77FLAGS = -m32 -fPIC
ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so)
F77LIBS := $(shell $(F77) -m32 -print-file-name=libg2c.so) -lnsl
else
F77LIBS := $(shell $(F77) -m32 -print-file-name=libg2c.a) -lnsl
endif
endif
# Extras
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...