]>
Commit | Line | Data |
---|---|---|
1 | # Makefile for AliRoot for Itanium/Linux with gcc | |
2 | ||
3 | # System dependent commands | |
4 | ||
5 | XARGS = xargs -r | |
6 | ||
7 | # The compilers | |
8 | CXX = g++ | |
9 | F77 = g77 | |
10 | CC = gcc | |
11 | CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1) | |
12 | CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2) | |
13 | ||
14 | # Global optimisation | |
15 | OPT = -g -O | |
16 | NOOPT = -g | |
17 | ||
18 | CXXOPT = $(OPT) | |
19 | CXXNOOPT = $(NOOPT) | |
20 | COPT = $(OPT) | |
21 | FOPT = $(OPT) | |
22 | ||
23 | # CERNLIB defines | |
24 | CLIBDEFS = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ | |
25 | CLIBCXXOPTS = | |
26 | CLIBCOPT = | |
27 | CLIBFOPT = $(CLIBDEFS) | |
28 | ||
29 | # Compiler flags | |
30 | ifeq ($(CCMAJORV),4) | |
31 | CXXFLAGS = $(CXXOPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi | |
32 | CXXFLAGSNO = $(CXXNOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi | |
33 | else | |
34 | CXXFLAGS = $(CXXOPT) -Wall -fPIC -pipe | |
35 | CXXFLAGSNO = $(CXXNOOPT) -Wall -fPIC -pipe | |
36 | endif | |
37 | CFLAGS = -Wall -fPIC -pipe | |
38 | FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore -fPIC | |
39 | # rmkdepend flags for building dependencies of FORTRAN files | |
40 | DEPENDFFLAGS = $(FFLAGS) | |
41 | ||
42 | # rootcint flags | |
43 | CINTFLAGS = | |
44 | ||
45 | LD = g++ | |
46 | LDFLAGS = $(OPT) -Wl,-Map -Wl,$@.map | |
47 | ||
48 | SHLD = $(LD) | |
49 | SOFLAGS = -shared -Wl -O2 | |
50 | SOEXT = so | |
51 | ||
52 | ALLD = ar | |
53 | ALFLAGS = cr | |
54 | ALLIB = | |
55 | AEXT = a | |
56 | ||
57 | # additional ROOT libraries | |
58 | ||
59 | LIBNOVER = `find /lib64 -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib64/ -l/'` | |
60 | ||
61 | #System libraries | |
62 | SYSLIBS := -ldl -lcrypt -L/usr/X11R6/lib64 -lX11 $(LIBNOVER) | |
63 | ||
64 | EXEFLAGS := -lg2c | |
65 | ||
66 | ||
67 | ||
68 |