]>
Commit | Line | Data |
---|---|---|
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 | ||
11 | CXXOPTS = $(OPT) -Wall -W -pipe -fsigned-char -fno-common -fweak-coalesced | |
12 | COPT = $(OPT) -Wall -W -fno-common -fweak-coalesced | |
13 | FOPT = $(OPT) -fno-second-underscore -fweak-coalesced | |
14 | CXXFLAGS = $(CXXOPTS) -I/sw/include | |
15 | CFLAGS = -Wall -pipe | |
16 | ||
17 | # rootcint flags | |
18 | CINTFLAGS = #$(CXXFLAGS) | |
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.2 ; g++ | |
31 | LDFLAGS = $(OPT) | |
32 | ||
33 | SHLD := $(LD) | |
34 | SOFLAGS := -bundle -flat_namespace -undefined suppress | |
88cb7938 | 35 | #SHLIB := -lg2c |
40c469d5 | 36 | SHLIB := |
37 | SOEXT := so | |
38 | ||
39 | DYLD := $(LD) | |
40 | DYFLAGS = -dynamiclib -flat_namespace -undefined suppress -single_module | |
41 | DYLIB := | |
42 | DYEXT := dylib | |
43 | ||
44 | ALLD = ar | |
45 | ALFLAGS = cr | |
46 | ALLIB = | |
47 | AEXT = a | |
48 | ||
49 | ||
50 | # rmkdepend flags for building dependencies of FORTRAN files | |
51 | DEPENDFFLAGS = $(FFLAGS) | |
52 | ||
53 | DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys | |
54 | ||
55 | GLIBS = -L/usr/X11R6/lib -lX11 | |
56 | ||
57 | #System libraries | |
58 | SYSLIBS = -ldl | |
59 | ||
88cb7938 | 60 | EXEFLAGS+= -Xlinker -bind_at_load -Xlinker -m #-lg2c |
40c469d5 | 61 | |
62 | ||
63 | ||
64 |