]> git.uio.no Git - u/mrichter/AliRoot.git/blob - build/Makefile.linux
ca55a0d6b0569187c66b1d1cac283b6a85189ad7
[u/mrichter/AliRoot.git] / build / Makefile.linux
1 # The compilers
2 CXX           = g++ 
3 F77           = g77
4 CC            = gcc
5 CCMAJORV      = $(shell $(CC) -dumpversion | cut -d. -f1)
6
7 # Global optimisation
8 OPT           = -O -g
9
10 ifeq ($(CCMAJORV),2)
11 CXXOPTS       = $(OPT) -W -Wall -fPIC -pipe
12 else
13 CXXOPTS       = $(OPT) -W -Wall -Werror -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
14 endif
15 COPT          = $(OPT)
16 FOPT          = $(OPT) -fno-second-underscore
17 CXXFLAGS      = $(CXXOPTS)
18 CFLAGS        = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
19
20 # rootcint flags
21 CINTFLAGS     = 
22
23 # CERNLIB defines
24
25 CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
26 CLIBCXXOPTS   =
27 CLIBCOPT      =
28 CLIBFOPT      =
29
30 # Common Fortran compilation flags
31 FFLAGS = $(CLIBFOPT)  $(CLIBDEFS) $(FOPT)
32                 
33 LD            = g++
34 LDFLAGS       = $(OPT) 
35
36 SHLD          = $(LD)
37 SOFLAGS       = $(OPT) -shared -Wl 
38 SHLIB         = -lg2c
39 SOEXT         = so
40
41 ALLD          = ar
42 ALFLAGS       = cr
43 ALLIB         = 
44 AEXT          = a
45
46 # additional ROOT libraries
47 ROOTLIBS  += -lcrypt 
48
49 # rmkdepend flags for building dependencies of FORTRAN files
50 DEPENDFFLAGS = $(FFLAGS)
51
52 LIBNOVER      = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
53 GLIBS         = -L/usr/X11R6/lib -lX11  $(LIBNOVER)
54
55 #System libraries
56 SYSLIBS = -ldl
57
58 EXEFLAGS+= -lg2c
59
60
61
62