+# -*- mode: makefile -*-
# Makefile for AliRoot for Itanium/Linux with gcc
# 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)
# Global optimisation
OPT = -g -O
# rootcint flags
CINTFLAGS =
-LD = g++
+LD = $(shell root-config --ld)
LDFLAGS = $(OPT) -Wl,-Map -Wl,$@.map
SHLD = $(LD)