]> git.uio.no Git - u/mrichter/AliRoot.git/blob - build/Makefile.macosxicc
added settings for magnetic field
[u/mrichter/AliRoot.git] / build / Makefile.macosxicc
1 # -*- mode: makefile -*-
2 # Makefile for AliRoot for MacOS X with gcc
3
4 XARGS = xargs
5
6 # fink directories
7 FINK_ROOT := $(shell which fink | sed -e 's?/bin/fink??')
8 ifeq (,$(FINK_ROOT))
9 # No fink, build will probably fail, but we try a guess
10 FINK_ROOT=/usr/local
11 endif
12
13 # Global optimisation
14 OPT           = -O -g
15 NOOPT         = -g
16
17 CXXOPT        = $(OPT) 
18 CXXNOOPT      = $(NOOPT) 
19 COPT          = $(OPT)
20 FOPT          = $(OPT)
21
22 # CERNLIB defines
23 CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC
24 CLIBCXXOPTS   =
25 CLIBCOPT      =
26 CLIBFOPT      = $(CLIBDEFS)
27
28 # Compiler flags
29 CXXFLAGS      = $(CXXOPT) -fPIC -diag-enable warn -I$(FINK_ROOT)/include 
30
31 CXXFLAGSNO    = $(CXXNOOPT) 
32
33 CFLAGS        = $(COPT) -fPIC -restrict -I$(FINK_ROOT)/include
34
35 FFLAGS        = $(CLIBFOPT) $(FOPT)
36 # rmkdepend flags for building dependencies of FORTRAN files
37 DEPENDFFLAGS  = $(FFLAGS)
38
39 # rootcint flags
40 CINTFLAGS     = 
41
42 LD            = $(shell root-config --ld)
43 LDFLAGS       = $(OPT) $(DICTLOAD) 
44
45 SHLD         := $(LD)
46 SOFLAGS      := $(OPT) -dynamiclib -undefined dynamic_lookup -single_module
47 SHLIB        := 
48 SOEXT        := so
49
50 ALLD          = ar
51 ALFLAGS       = cr
52 ALLIB         = 
53 AEXT          = a
54
55 DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
56
57 EXEFLAGS     := -bind_at_load 
58
59 #System libraries
60
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) \
62                 -lifcore -lifport
63
64