40c469d5 |
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 | |
3c5cb192 |
11 | CXXOPTS = $(OPT) -Wall -W -pipe -fsigned-char -fno-common -fweak-coalesced -fmessage-length=0 |
40c469d5 |
12 | COPT = $(OPT) -Wall -W -fno-common -fweak-coalesced |
a744ab41 |
13 | FOPT = $(OPT) -fno-second-underscore |
40c469d5 |
14 | CXXFLAGS = $(CXXOPTS) -I/sw/include |
a744ab41 |
15 | CFLAGS = -Wall -pipe -I/sw/include |
40c469d5 |
16 | |
17 | # rootcint flags |
94ad43f6 |
18 | CINTFLAGS = |
40c469d5 |
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 | |
a744ab41 |
30 | LD = export MACOSX_DEPLOYMENT_TARGET=10.3 ; \ |
31 | unset LD_PREBIND ; \ |
32 | g++ |
40c469d5 |
33 | LDFLAGS = $(OPT) |
34 | |
35 | SHLD := $(LD) |
a744ab41 |
36 | SOFLAGS := -bundle -flat_namespace -undefined dynamic_lookup |
88cb7938 |
37 | #SHLIB := -lg2c |
40c469d5 |
38 | SHLIB := |
39 | SOEXT := so |
40 | |
41 | DYLD := $(LD) |
a744ab41 |
42 | DYFLAGS = -dynamiclib -flat_namespace -undefined dynamic_lookup -single_module |
40c469d5 |
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 | |
88cb7938 |
62 | EXEFLAGS+= -Xlinker -bind_at_load -Xlinker -m #-lg2c |
40c469d5 |
63 | |
64 | |
65 | |
66 | |