1 # -*- mode: makefile -*-
2 # Makefile to build AliRoot for Linux
4 # System dependent commands
9 CXX = $(shell root-config --cxx)
10 F77 = $(shell root-config --f77)
11 CC = $(shell root-config --cc)
12 CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1)
13 CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2)
25 CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
28 CLIBFOPT = $(CLIBDEFS)
31 CXXFLAGS = $(OPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL
32 CXXFLAGSNO = $(NOOPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL
33 CFLAGS = $(OPT) -Wall -D_DLL
34 FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore
35 # rmkdepend flags for building dependencies of FORTRAN files
36 DEPENDFFLAGS = $(FFLAGS)
41 LD = $(shell root-config --ld)
45 SOFLAGS = $(OPT) -shared -Wl,--export-all-symbols -Wl,-soname=$$TMPLIB -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
46 SHLIB = $(shell root-config --libs) -lg2c
54 # additional ROOT libraries
57 SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11