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)
31 CXXFLAGS = $(OPT) -W -Wall -fPIC -pipe
32 CXXFLAGSNO = $(NOOPT) -W -Wall -fPIC -pipe
34 CXXFLAGS = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
35 CXXFLAGSNO = $(NOOPT) -W -Wall -Werror -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
37 CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
38 FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore
39 # rmkdepend flags for building dependencies of FORTRAN files
40 DEPENDFFLAGS = $(FFLAGS)
49 SOFLAGS = $(OPT) -shared -Wl
58 # additional ROOT libraries
60 LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
63 SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11 $(LIBNOVER)