1 # Makefile to build AliRoot for Linux
7 CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1)
8 CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2)
20 CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
23 CLIBFOPT = $(CLIBDEFS)
27 CXXFLAGS = $(OPT) -W -Wall -fPIC -pipe
28 CXXFLAGSNO = $(NOOPT) -W -Wall -fPIC -pipe
30 CXXFLAGS = $(OPT) -W -Wall -Werror -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
31 CXXFLAGSNO = $(NOOPT) -W -Wall -Werror -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
33 CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
34 FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore
35 # rmkdepend flags for building dependencies of FORTRAN files
36 DEPENDFFLAGS = $(FFLAGS)
45 SOFLAGS = $(OPT) -shared -Wl
54 # additional ROOT libraries
57 LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
58 GLIBS = -L/usr/X11R6/lib -lX11 $(LIBNOVER)