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