+# -*- mode: makefile -*-
# Makefile to build AliRoot for Linux
# System dependent commands
XARGS = xargs -r
# The compilers
-CXX = g++
-F77 = g77
-CC = gcc
+CXX = $(shell root-config --cxx)
+F77 = $(shell root-config --f77)
+CC = $(shell root-config --cc)
CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1)
CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2)
# rootcint flags
CINTFLAGS =
-LD = g++
+LD = $(shell root-config --ld)
LDFLAGS = $(OPT)
SHLD = $(LD)