]>
Commit | Line | Data |
---|---|---|
1 | # -*- mode: makefile -*- | |
2 | # Makefile to build ALIROOT for SunOS | |
3 | ||
4 | # System dependent commands | |
5 | ||
6 | XARGS = xargs | |
7 | ||
8 | # The compilers | |
9 | CXX = $(shell root-config -cxx) | |
10 | CC = $(shell root-config -cc) | |
11 | F77 = $(shell root-config -f77) | |
12 | ||
13 | # Global optimisation | |
14 | OPT = -g -O | |
15 | NOOPT = -g | |
16 | ||
17 | CXXOPT = $(OPT) | |
18 | CXXNOOPT = $(NOOPT) | |
19 | COPT = $(OPT) | |
20 | FOPT = $(OPT) | |
21 | ||
22 | # CERNLIB defines | |
23 | CLIBDEFS = -DCERNLIB_SUN -DCERNLIB_BLDLIB -DCERNLIB_CZ | |
24 | CLIBCXXOPTS = | |
25 | CLIBCOPT = | |
26 | CLIBFOPT = $(CLIBDEFS) -xpp=cpp | |
27 | ||
28 | # Compiler flags | |
29 | CXXFLAGS = $(CXXOPT) +w -KPIC -template=no%extdef | |
30 | CXXFLAGSNO = $(CXXNOOPT) +w -KPIC -template=no%extdef | |
31 | CFLAGS = $(COPT) -KPIC -erroff=%none | |
32 | FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS) -KPIC | |
33 | # rmkdepend flags for building dependencies of FORTRAN files | |
34 | DEPENDFFLAGS = $(FFLAGS) | |
35 | ||
36 | # rootcint flags | |
37 | CINTFLAGS = | |
38 | ||
39 | SHLIB = | |
40 | SOEXT = so | |
41 | ||
42 | LD = $(shell root-config --cxx) | |
43 | LDFLAGS = $(OPT) -Qoption ld -t | |
44 | ||
45 | SHLD = $(LD) | |
46 | SOFLAGS = -G $(LDFLAGS) $(SHLIB) | |
47 | ||
48 | SYSLIBS := -L/usr/dt/lib -L/usr/openwin/lib -L/usr/ccs/lib -lXm -lXt \ | |
49 | -lX11 -lm -lgen -ldl -lsocket -lsunmath -lfsu -lfui -lnsl | |
50 | ||
51 | # Additional flags and libraries for building aliroot executable | |
52 | ||
53 | EXEFLAGS := -O -Qoption ld -t | |
54 | ||
55 | ||
56 | ||
57 | ||
58 |