1 # -*- mode: makefile -*-
2 # Makefile for AliRoot for MacOS X with gcc
7 FINK_ROOT := $(shell which fink | sed -e 's?/bin/fink??')
9 # No fink, build will probably fail, but we try a guess
14 CXX = $(shell root-config --cxx)
15 CC = $(shell root-config --cc)
16 F77 = $(shell root-config --f77)
28 CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC
31 CLIBFOPT = $(CLIBDEFS)
34 CXXFLAGS = $(CXXOPT) -fPIC -wd1476 -I/usr/X11R6/include -I$(FINK_ROOT)/include
36 CXXFLAGSNO = $(CXXNOOPT)
38 CFLAGS = $(COPT) -fPIC -restrict -I$(FINK_ROOT)/include
40 FFLAGS = $(CLIBFOPT) $(FOPT)
41 # rmkdepend flags for building dependencies of FORTRAN files
42 DEPENDFFLAGS = $(FFLAGS)
47 LD = $(shell root-config --ld)
48 LDFLAGS = $(OPT) $(DICTLOAD)
51 SOFLAGS := $(OPT) -dynamiclib -undefined dynamic_lookup -single_module
56 DYFLAGS = -dynamiclib -undefined dynamic_lookup -single_module
65 DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
67 EXEFLAGS := -bind_at_load
71 SYSLIBS := -L/usr/X11R6/lib -lX11 -lGL $(LIBNOVER) -L/usr/local/lib \
72 -lXt -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \