]> git.uio.no Git - u/mrichter/AliRoot.git/blob - build/Makefile.linuxx8664gcc
Corrected directory name for the root archive file registered in a dataset in PROOF...
[u/mrichter/AliRoot.git] / build / Makefile.linuxx8664gcc
1 # -*- mode: makefile -*-
2 # Makefile to build AliRoot for Linux
3
4 # System dependent commands
5
6 XARGS = xargs -r
7
8 CCMAJORV      = $(shell $(CC) -dumpversion | cut -d. -f1)
9 CCMINORV      = $(shell $(CC) -dumpversion | cut -d. -f2)
10
11 # Global optimisation
12 OPT           = -O -g
13 NOOPT         = -g
14
15 CXXOPT        = $(OPT)
16 CXXNOOPT      = $(NOOPT)
17 COPT          = $(OPT)
18 FOPT          = $(OPT)
19
20 # CERNLIB defines
21 CLIBDEFS      = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ
22 CLIBCXXOPTS   =
23 CLIBCOPT      =
24 CLIBFOPT      = $(CLIBDEFS)
25
26 # Compiler flags
27 ifeq ($(CCMAJORV),2)
28 CXXFLAGS       = $(OPT) -W -Wall -fPIC -pipe
29 CXXFLAGSNO     = $(NOOPT) -W -Wall -fPIC -pipe
30 else
31 ifeq ($(CCMAJORV),3)
32 CXXFLAGS       = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
33 CXXFLAGSNO     = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
34 else
35 ifeq ($(CCMAJORV),4)
36 CXXFLAGS       = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
37 CXXFLAGSNO     = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
38 else
39 CXXFLAGS       = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -Dlinux
40 CXXFLAGSNO     = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi
41 endif
42 endif
43 endif
44 CFLAGS         = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
45 FFLAGS         = $(CLIBFOPT) $(FOPT) -fno-second-underscore -fPIC -fno-f2c
46
47 ifeq (g95,$(F77))
48 FFLAGS        +=-DFORTRAN_G95
49 else
50 ifeq (gfortran,$(F77))
51 FFLAGS        +=-DFORTRAN_GFORTRAN
52 else
53 FFLAGS        +=
54 endif
55 endif
56
57 # rmkdepend flags for building dependencies of FORTRAN files
58 DEPENDFFLAGS   = $(FFLAGS)
59
60 # rootcint flags
61 CINTFLAGS     = 
62
63 LD            = $(shell root-config --ld)
64 LDFLAGS       = $(OPT) 
65
66 SHLD          = $(LD) 
67 SOFLAGS       = $(OPT) -shared -Wl 
68 SOEXT         = so
69
70 #System libraries
71 LIBNOVER      = `find /lib64 -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib64/ -l/'`
72
73 SYSLIBS      := -ldl -lcrypt -L/usr/X11R6/lib64 -lX11  $(LIBNOVER)
74
75 ifneq (,$(findstring g95,$(F77)))
76 SHLIB += -L$(shell $(F77) --print-search-dirs | sed -n -e 's/install: //p') -lf95
77 else
78 ifneq (,$(findstring gfortran,$(F77)))
79 SHLIB := $(shell $(F77) -print-file-name=libgfortran.so)
80 SHLIB += $(shell $(F77) -print-file-name=libgfortranbegin.a)
81 else
82 SHLIB         = -lg2c
83 SYSLIBS +=  -lg2c
84 endif
85 endif
86
87 ALLD          = ar
88 ALFLAGS       = cr
89 ALLIB         = 
90 AEXT          = a
91
92
93
94
95
96
97
98
99