]>
Commit | Line | Data |
---|---|---|
72b92279 | 1 | # Makefile for AliRoot for Itanium/Linux with gcc |
2 | ||
6a772515 | 3 | # System dependent commands |
4 | ||
5 | XARGS = xargs -r | |
6 | ||
72b92279 | 7 | # The compilers |
8 | CXX = g++ | |
9 | F77 = g77 | |
10 | CC = gcc | |
3deb9beb | 11 | CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1) |
12 | CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2) | |
72b92279 | 13 | |
14 | # Global optimisation | |
0d920266 | 15 | OPT = -g -O |
72b92279 | 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 | |
3deb9beb | 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 | |
72b92279 | 34 | CXXFLAGS = $(CXXOPT) -Wall -fPIC -pipe |
35 | CXXFLAGSNO = $(CXXNOOPT) -Wall -fPIC -pipe | |
3deb9beb | 36 | endif |
72b92279 | 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) | |
0d920266 | 49 | SOFLAGS = -shared -Wl -O2 |
72b92279 | 50 | SOEXT = so |
51 | ||
52 | ALLD = ar | |
53 | ALFLAGS = cr | |
54 | ALLIB = | |
55 | AEXT = a | |
56 | ||
57 | # additional ROOT libraries | |
72b92279 | 58 | |
4c461f53 | 59 | LIBNOVER = `find /lib64 -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib64/ -l/'` |
72b92279 | 60 | |
61 | #System libraries | |
de6c7cfd | 62 | SYSLIBS := -ldl -lcrypt -L/usr/X11R6/lib64 -lX11 $(LIBNOVER) |
72b92279 | 63 | |
de6c7cfd | 64 | EXEFLAGS := -lg2c |
72b92279 | 65 | |
66 | ||
67 | ||
68 |