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