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
23 CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC
26 CLIBFOPT = $(CLIBDEFS)
29 CXXFLAGS = $(CXXOPT) -fPIC -diag-enable warn -I$(FINK_ROOT)/include
31 CXXFLAGSNO = $(CXXNOOPT)
33 CFLAGS = $(COPT) -fPIC -restrict -I$(FINK_ROOT)/include
35 FFLAGS = $(CLIBFOPT) $(FOPT)
36 # rmkdepend flags for building dependencies of FORTRAN files
37 DEPENDFFLAGS = $(FFLAGS)
42 LD = $(shell root-config --ld)
43 LDFLAGS = $(OPT) $(DICTLOAD)
46 SOFLAGS := $(OPT) -dynamiclib -undefined dynamic_lookup -single_module
55 DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
57 EXEFLAGS := -bind_at_load
61 SYSLIBS := -lstdc++ -L$(shell touch /tmp/tmp.f ; for i in `ifort -v /tmp/tmp.f 2>&1 | grep "^ld"`; do echo $i | grep "libifcore" ; done | xargs dirname) \