Adding initialisation of globals, will not be needed on Tiger
[u/mrichter/AliRoot.git] / build / Makefile.macosx
1 # Makefile for AliRoot for MacOS X with gcc
2
3 # The compilers
4 CXX           = g++ 
5 F77           = g77
6 CC            = gcc
7
8 # Global optimisation
9 OPT           = -O0 -g
10 NOOPT         = -g
11
12 CXXOPT        = $(OPT) 
13 CXXNOOPT      = $(NOOPT) 
14 COPT          = $(OPT)
15 FOPT          = $(OPT) -fno-second-underscore 
16
17 # CERNLIB defines
18 CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
19 CLIBCXXOPTS   =
20 CLIBCOPT      =
21 CLIBFOPT      = $(CLIBDEFS)
22
23 # Compiler flags
24 CXXFLAGS      = $(CXXOPT) -Wall -W -pipe -fsigned-char -fno-common -fweak-coalesced -fmessage-length=0 -I/sw/include
25 CXXFLAGSNO    = $(CXXNOOPT) -Wall -W -pipe -fsigned-char -fno-common -fweak-coalesced -fmessage-length=0 -I/sw/include
26 CFLAGS        = $(COPT) -Wall -W -fno-common -fweak-coalesced -pipe -I/sw/include
27 FFLAGS        = $(CLIBFOPT) $(FOPT)
28 # rmkdepend flags for building dependencies of FORTRAN files
29 DEPENDFFLAGS  = $(FFLAGS)
30
31 # rootcint flags
32 CINTFLAGS     = 
33
34 DICTNOLOAD:=
35
36 DICTLOAD:= -Wl,-u,_G__cpp_setupG__AliL3Comp -Wl,-u,_G__cpp_setupG__AliL3Hough \
37 -Wl,-u,_G__cpp_setupG__AliL3Misc -Wl,-u,_G__cpp_setupG__AliL3Src \
38 -Wl,-u,_G__cpp_setupG__AliPythia6 -Wl,-u,_G__cpp_setupG__CONTAINERS \
39 -Wl,-u,_G__cpp_setupG__CRT -Wl,-u,_G__cpp_setupG__EMCAL \
40 -Wl,-u,_G__cpp_setupG__ESD -Wl,-u,_G__cpp_setupG__EVGEN \
41 -Wl,-u,_G__cpp_setupG__FASTSIM -Wl,-u,_G__cpp_setupG__FMDbase \
42 -Wl,-u,_G__cpp_setupG__FMDrec -Wl,-u,_G__cpp_setupG__FMDsim \
43 -Wl,-u,_G__cpp_setupG__ITS -Wl,-u,_G__cpp_setupG__MUONbase \
44 -Wl,-u,_G__cpp_setupG__MUONgeometry -Wl,-u,_G__cpp_setupG__MUONmapping \
45 -Wl,-u,_G__cpp_setupG__MUONrec -Wl,-u,_G__cpp_setupG__MUONsim \
46 -Wl,-u,_G__cpp_setupG__PHOS -Wl,-u,_G__cpp_setupG__PMDbase \
47 -Wl,-u,_G__cpp_setupG__PMDrec -Wl,-u,_G__cpp_setupG__PMDsim \
48 -Wl,-u,_G__cpp_setupG__RAW -Wl,-u,_G__cpp_setupG__RICH \
49 -Wl,-u,_G__cpp_setupG__STARTbase -Wl,-u,_G__cpp_setupG__STARTrec \
50 -Wl,-u,_G__cpp_setupG__STARTsim -Wl,-u,_G__cpp_setupG__STEER \
51 -Wl,-u,_G__cpp_setupG__STRUCT -Wl,-u,_G__cpp_setupG__TEPEMGEN \
52 -Wl,-u,_G__cpp_setupG__THbtp -Wl,-u,_G__cpp_setupG__THerwig \
53 -Wl,-u,_G__cpp_setupG__THijing -Wl,-u,_G__cpp_setupG__TMEVSIM \
54 -Wl,-u,_G__cpp_setupG__TOFbase -Wl,-u,_G__cpp_setupG__TOFrec \
55 -Wl,-u,_G__cpp_setupG__TOFsim -Wl,-u,_G__cpp_setupG__TPCbase \
56 -Wl,-u,_G__cpp_setupG__TPCfast -Wl,-u,_G__cpp_setupG__TPCrec \
57 -Wl,-u,_G__cpp_setupG__TPCsim -Wl,-u,_G__cpp_setupG__TPHIC \
58 -Wl,-u,_G__cpp_setupG__TRDbase -Wl,-u,_G__cpp_setupG__TRDfast \
59 -Wl,-u,_G__cpp_setupG__TRDrec -Wl,-u,_G__cpp_setupG__TRDsim \
60 -Wl,-u,_G__cpp_setupG__VZERObase -Wl,-u,_G__cpp_setupG__VZEROrec \
61 -Wl,-u,_G__cpp_setupG__VZEROsim \
62 -Wl,-u,_G__cpp_setupG__ZDCbase -Wl,-u,_G__cpp_setupG__ZDCrec \
63 -Wl,-u,_G__cpp_setupG__ZDCsim -Wl,-u,_G__cpp_setupG__hijing \
64 -Wl,-u,_G__cpp_setupG__pythia6
65
66 LD            = export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
67                 unset LD_PREBIND ; \
68                 g++
69 LDFLAGS       = $(OPT) $(DICTLOAD)
70
71 SHLD         := $(LD)
72 SOFLAGS      := -bundle -undefined dynamic_lookup
73 SHLIB        :=
74 SOEXT        := so
75
76 DYLD         := $(LD)
77 DYFLAGS       = -dynamiclib -undefined dynamic_lookup -single_module
78 DYLIB        :=
79 DYEXT        := dylib
80
81 ALLD          = ar
82 ALFLAGS       = cr
83 ALLIB         = 
84 AEXT          = a
85
86 DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
87
88 GLIBS         = -L/usr/X11R6/lib -lX11
89
90 #System libraries
91 SYSLIBS = -ldl
92
93 EXEFLAGS+= -bind_at_load 
94