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