1 # Makefile to build AliRoot for Linux
3 # System dependent commands
11 CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1)
12 CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2)
24 CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
27 CLIBFOPT = $(CLIBDEFS)
30 CXXFLAGS = $(OPT) -Wall -pipe -Woverloaded-virtual -D_DLL
31 CXXFLAGSNO = $(NOOPT) -Wall -pipe -Woverloaded-virtual -D_DLL
32 CFLAGS = $(OPT) -Wall -D_DLL
33 FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore
34 # rmkdepend flags for building dependencies of FORTRAN files
35 DEPENDFFLAGS = $(FFLAGS)
44 SOFLAGS = $(OPT) -shared -Wl,--export-all-symbols -Wl,-soname=$$TMPLIB -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
45 SHLIB = $(shell root-config --libs) -lg2c
53 # additional ROOT libraries
56 SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11