]>
Commit | Line | Data |
---|---|---|
b934f194 | 1 | # Makefile for AliRoot for MacOS X with gcc |
2 | ||
02a1d5c1 | 3 | # The compilers |
4 | CXX = g++ | |
5 | F77 = g77 | |
6 | CC = gcc | |
7 | ||
8 | # Global optimisation | |
9 | OPT = -O -g | |
19ca05d1 | 10 | NOOPT = -g |
02a1d5c1 | 11 | |
19ca05d1 | 12 | CXXOPT = $(OPT) |
13 | CXXNOOPT = $(NOOPT) | |
14 | COPT = $(OPT) | |
02a1d5c1 | 15 | FOPT = $(OPT) -fno-second-underscore |
02a1d5c1 | 16 | |
17 | # CERNLIB defines | |
02a1d5c1 | 18 | CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ |
19 | CLIBCXXOPTS = | |
20 | CLIBCOPT = | |
19ca05d1 | 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 = | |
02a1d5c1 | 33 | |
02a1d5c1 | 34 | LD = export MACOSX_DEPLOYMENT_TARGET=10.3 ; \ |
35 | unset LD_PREBIND ; \ | |
36 | g++ | |
37 | LDFLAGS = $(OPT) | |
38 | ||
39 | SHLD := $(LD) | |
2469b598 | 40 | SOFLAGS := -bundle -undefined dynamic_lookup |
02a1d5c1 | 41 | #SHLIB := -lg2c |
42 | SHLIB := | |
43 | SOEXT := so | |
44 | ||
45 | DYLD := $(LD) | |
2469b598 | 46 | DYFLAGS = -dynamiclib -undefined dynamic_lookup -single_module |
02a1d5c1 | 47 | DYLIB := |
48 | DYEXT := dylib | |
49 | ||
50 | ALLD = ar | |
51 | ALFLAGS = cr | |
52 | ALLIB = | |
53 | AEXT = a | |
54 | ||
02a1d5c1 | 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 |