introduce platform dependent Makefiles using names as provided by
[u/mrichter/AliRoot.git] / build / Makefile.macosx
1 PLATFORM:=Darwin
2
3 # The compilers
4 CXX           = g++ 
5 F77           = g77
6 CC            = gcc
7
8 # Global optimisation
9 OPT           = -O -g
10
11 CXXOPTS       = $(OPT) -Wall -W -pipe -fsigned-char -fno-common -fweak-coalesced -fmessage-length=0
12 COPT          = $(OPT) -Wall -W -fno-common -fweak-coalesced
13 FOPT          = $(OPT) -fno-second-underscore 
14 CXXFLAGS      = $(CXXOPTS) -I/sw/include
15 CFLAGS        = -Wall -pipe -I/sw/include
16
17 # rootcint flags
18 CINTFLAGS     = 
19
20 # CERNLIB defines
21
22 CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
23 CLIBCXXOPTS   =
24 CLIBCOPT      =
25 CLIBFOPT      =
26
27 # Common Fortran compilation flags
28 FFLAGS = $(CLIBFOPT)  $(CLIBDEFS) $(FOPT)
29                 
30 LD            = export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
31                 unset LD_PREBIND ; \
32                 g++
33 LDFLAGS       = $(OPT) 
34
35 SHLD         := $(LD)
36 SOFLAGS      := -bundle -flat_namespace -undefined dynamic_lookup
37 #SHLIB        := -lg2c
38 SHLIB        :=
39 SOEXT        := so
40
41 DYLD         := $(LD)
42 DYFLAGS       = -dynamiclib -flat_namespace -undefined dynamic_lookup -single_module
43 DYLIB        :=
44 DYEXT        := dylib
45
46 ALLD          = ar
47 ALFLAGS       = cr
48 ALLIB         = 
49 AEXT          = a
50
51
52 # rmkdepend flags for building dependencies of FORTRAN files
53 DEPENDFFLAGS = $(FFLAGS)
54
55 DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
56
57 GLIBS         = -L/usr/X11R6/lib -lX11
58
59 #System libraries
60 SYSLIBS = -ldl
61
62 EXEFLAGS+= -Xlinker -bind_at_load -Xlinker -m #-lg2c
63
64
65
66