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
35 CXXFLAGS = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux
36 CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
38 CXXFLAGS = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -Dlinux
39 CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi
42 CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
43 FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore
44 # rmkdepend flags for building dependencies of FORTRAN files
45 DEPENDFFLAGS = $(FFLAGS)
54 SOFLAGS = $(OPT) -shared -Wl
63 # additional ROOT libraries
66 SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11