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 -wd1476 -I/usr/X11R6/include -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
51 DYFLAGS = -dynamiclib -undefined dynamic_lookup -single_module
60 DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
62 EXEFLAGS := -bind_at_load
66 SYSLIBS := -L/usr/X11R6/lib -lX11 -lGL $(LIBNOVER) -L/usr/local/lib \
67 -lXt -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \