Adding profile target (Linux with gcc and icc)
[u/mrichter/AliRoot.git] / build / Makefile.Linux
CommitLineData
f0a26826 1PLATFORM:=linux
2
3# The compilers
4CXX = g++
5F77 = g77
6CC = gcc
7
8# Global optimisation
9OPT = -O -g
10
11CXXOPTS = $(OPT) -Wall -fPIC -pipe
12COPT = $(OPT)
13FOPT = $(OPT) -fno-second-underscore
14CXXFLAGS = $(CXXOPTS)
15CFLAGS = -Wall -fPIC -pipe
16
17# rootcint flags
18CINTFLAGS = #$(CXXFLAGS)
19
20# CERNLIB defines
21
22CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
23CLIBCXXOPTS =
24CLIBCOPT =
25CLIBFOPT =
26
27# Common Fortran compilation flags
28FFLAGS = $(CLIBFOPT) $(CLIBDEFS) $(FOPT)
29
30LD = g++
31LDFLAGS = $(OPT)
32
33SHLD = $(LD)
34SOFLAGS = -O2 -shared -Wl
a544e979 35SHLIB = -lg2c
f0a26826 36SOEXT = so
37
2d8cad5a 38ALLD = ar
39ALFLAGS = cr
40ALLIB =
41AEXT = a
42
f0a26826 43# additional ROOT libraries
fa2fdd07 44ROOTLIBS += -lcrypt
f0a26826 45
46# rmkdepend flags for building dependencies of FORTRAN files
47DEPENDFFLAGS = $(FFLAGS)
48
49LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
50GLIBS = -L/usr/X11R6/lib -lX11 $(LIBNOVER)
51
52#System libraries
53SYSLIBS = -ldl -lbsd
54
55EXEFLAGS+= -lg2c
56
57
58
59