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