Updated version of the HMPID DA. To be checked on real data by the experts and then...
[u/mrichter/AliRoot.git] / build / Makefile.linux
CommitLineData
b934f194 1# Makefile to build AliRoot for Linux
2
6a772515 3# System dependent commands
4
5XARGS = xargs -r
6
02a1d5c1 7# The compilers
8CXX = g++
9F77 = g77
10CC = gcc
11CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1)
19ca05d1 12CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2)
02a1d5c1 13
14# Global optimisation
15OPT = -O -g
19ca05d1 16NOOPT = -g
02a1d5c1 17
19ca05d1 18CXXOPT = $(OPT)
19CXXNOOPT = $(NOOPT)
02a1d5c1 20COPT = $(OPT)
19ca05d1 21FOPT = $(OPT)
02a1d5c1 22
23# CERNLIB defines
02a1d5c1 24CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
25CLIBCXXOPTS =
26CLIBCOPT =
19ca05d1 27CLIBFOPT = $(CLIBDEFS)
28
29# Compiler flags
30ifeq ($(CCMAJORV),2)
31CXXFLAGS = $(OPT) -W -Wall -fPIC -pipe
32CXXFLAGSNO = $(NOOPT) -W -Wall -fPIC -pipe
33else
0038d136 34ifeq ($(CCMAJORV),3)
ec22f7b0 35CXXFLAGS = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
36CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
0038d136 37else
38CXXFLAGS = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -Dlinux
ec22f7b0 39CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi
0038d136 40endif
19ca05d1 41endif
931c1b8a 42CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
19ca05d1 43FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore
44# rmkdepend flags for building dependencies of FORTRAN files
45DEPENDFFLAGS = $(FFLAGS)
46
47# rootcint flags
48CINTFLAGS =
02a1d5c1 49
02a1d5c1 50LD = g++
51LDFLAGS = $(OPT)
52
53SHLD = $(LD)
54SOFLAGS = $(OPT) -shared -Wl
55SHLIB = -lg2c
56SOEXT = so
57
58ALLD = ar
59ALFLAGS = cr
60ALLIB =
61AEXT = a
62
63# additional ROOT libraries
02a1d5c1 64
02a1d5c1 65#System libraries
8d64fbb3 66SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11
02a1d5c1 67
02a1d5c1 68
69
70
71