02a1d5c1 |
1 | # Makefile to build ALIROOT for OSF1 |
2 | |
3 | # Which Machine |
4 | PLATFORM = alpha |
5 | |
6 | # The compilers |
7 | CXX = cxx |
8 | F77 = f77 |
9 | |
10 | # Global optimisation |
11 | OPT = -g |
12 | |
13 | CXXOPTS = $(OPT) -nostdnew -rtti -taso |
14 | COPT = $(OPT) |
15 | FOPT = $(OPT) -nofor_main -warn noinformational -taso |
16 | CXXFLAGS = $(CXXOPTS) |
17 | CFLAGS = -fPIC -pipe -mcpu=ev5 -D__osf__ -D__alpha |
18 | |
19 | # rootcint flags |
20 | CINTFLAGS = -D__DECCXX |
21 | |
22 | # rmkdepend flags for building dependencies of FORTRAN files |
23 | DEPENDFFLAGS = $(filter-out -warn noinformational,$(FFLAGS)) |
24 | |
25 | # CERNLIB defines |
26 | |
27 | CLIBDEFS = -DCERNLIB_DECS -DCERNLIB_BLDLIB -DCERNLIB_CZ |
28 | CLIBCXXOPTS = |
29 | CLIBCOPT = |
30 | CLIBFOPT = -I. -warn noinformational |
31 | |
32 | # Common Fortran compilation flags |
33 | FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS) |
34 | |
35 | LD = cxx |
36 | LDFLAGS = |
37 | |
38 | SHLD = ld |
39 | SOFLAGS = -L/usr/lib/cmplrs/cxx -rpath /usr/lib/cmplrs/cxx \ |
40 | -expect_unresolved "*" -msym -shared \ |
41 | /usr/lib/cmplrs/cc/crt0.o /usr/lib/cmplrs/cxx/_main.o |
42 | SOFLAGS += -lUfor -lfor -lFutil |
43 | SOFLAGS += -taso |
44 | |
45 | SHLIB = -lUfor -lfor -lFutil |
46 | SOEXT = so |
47 | |
48 | ROOTLIBS += |
49 | |
50 | #System libraries |
51 | SYSLIBS = -lbsd |
52 | |
53 | # Flags for static libraries |
54 | AFLAGS = $(filter-out -rpath /usr/lib/cmplrs/cxx -msym -shared /usr/lib/cmplrs/cc/crt0.o,$(SOFLAGS)) |
55 | |
56 | # Additional flags and libraries for building aliroot executable |
57 | EXEFLAGS += -lXm -lXt -lX11 -lPW -lUfor -lfor -lFutil -lots |
58 | EXEFLAGS += -taso |
59 | |
60 | # Cure funny problem |
61 | # sometimes in dependencies system include files of the sort |
62 | # /usr/.../filename AND /usr/.../filename.cc are present |
63 | # DEC believes that /usr/.../filename is the executable to be |
64 | # built from /usr/.../filename.cc |
65 | # Just avoid this to happen |
66 | |
67 | % : %.cc |
68 | @; |
69 | |
70 | |
71 | |
72 | |
73 | |
74 | |
75 | |
76 | |
77 | |