Revision 291a8a0677fa689f4805446aa2fc8694cf09e234 authored by Axel Naumann on 23 June 2008, 15:30:42 UTC, committed by Axel Naumann on 23 June 2008, 15:30:42 UTC
git-svn-id: http://root.cern.ch/svn/root/trunk@24481 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 18f08d1
Makefile.linuxmips
# -*- 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
# Compiler:
CXX = g++
CC = gcc
# Passes "-mabi=32" for all ABIs, since that's supported by all.
# In the future, we may need "-mabi=n32" and "-mabi=64" for
# specialisation on those ABIs (see also include/RConfig.h)
CXXFLAGS = -pipe -Wall -W -Woverloaded-virtual \
-fPIC -mabi=32 $(EXTRA_CXXFLAGS)
CFLAGS = -pipe -Wall -W -fPIC -mabi=32 $(EXTRA_CFLAGS)
CINTCXXFLAGS = -pipe -Wall -W -Woverloaded-virtual \
-fPIC -mabi=32 $(EXTRA_CXXFLAGS) \
-DG__REGEXP -DG__UNIX -DG__SHAREDLIB \
-DG__OSFDLL -DG__ROOT -DG__REDIRECTIO \
-DG__STD_EXCEPTION
CINTCFLAGS = -pipe -Wall -W -fPIC -mabi=32 $(EXTRA_CFLAGS) \
-DG__REGEXP -DG__UNIX -DG__SHAREDLIB \
-DG__OSFDLL -DG__ROOT -DG__REDIRECTIO \
-DG__STD_EXCEPTION
COMPILER = gnu
# Linker:
LD = g++
LDFLAGS = $(OPT) $(EXTRA_LDFLAGS)
SOFLAGS = -shared -Wl,-soname,
SOEXT = so
# System libraries:
SYSLIBS = -lm -ldl $(OSTHREADLIBDIR) $(OSTHREADLIB) -rdynamic
XLIBS = $(XPMLIBDIR) $(XPMLIB) $(X11LIBDIR) -lXext -lX11
CILIBS = -lm -ldl -rdynamic
CRYPTLIBS = -lcrypt
# Fortran:
F77 =
ifeq ($(shell which gfortran 2>&1 | sed -ne "s/.*\/gfortran/gfortran/p"),gfortran)
ifeq ($(shell gfortran -print-libgcc-file-name),$(shell $(CC) -print-libgcc-file-name))
F77 = gfortran
F77FLAGS = -fPIC -std=legacy
F77LIBS := $(shell $(F77) -print-file-name=libgfortran.$(SOEXT))
F77LIBS += $(shell $(F77) -print-file-name=libgfortranbegin.a) -lnsl
F77LD = gfortran
endif
endif
ifneq ($(F77),gfortran)
F77 = g77
F77FLAGS = -fPIC
ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so)
F77LIBS := $(shell $(F77) -print-file-name=libg2c.so) -lnsl
else
F77LIBS := $(shell $(F77) -print-file-name=libg2c.a) -lnsl
endif
endif
# Extras
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...