No effective C++ option for compilation of C files
[u/mrichter/AliRoot.git] / build / Makefile.solarisCC5
CommitLineData
02a1d5c1 1# Makefile to build ALIROOT for SunOS
2
8229c658 3# System dependent commands
4
5XARGS = xargs
6
02a1d5c1 7# The compilers
8CXX = /opt/SUNWspro/bin/CC
9CC = /opt/SUNWspro/bin/cc
8229c658 10F77 = /opt/SUNWspro/bin/f77
02a1d5c1 11
12# Global optimisation
19ca05d1 13OPT = -g -O
14NOOPT = -g
02a1d5c1 15
19ca05d1 16CXXOPT = $(OPT)
17CXXNOOPT = $(NOOPT)
18COPT = $(OPT)
19FOPT = $(OPT)
02a1d5c1 20
21# CERNLIB defines
02a1d5c1 22CLIBDEFS = -DCERNLIB_SUN -DCERNLIB_BLDLIB -DCERNLIB_CZ
23CLIBCXXOPTS =
24CLIBCOPT =
19ca05d1 25CLIBFOPT = $(CLIBDEFS) -xpp=cpp
02a1d5c1 26
19ca05d1 27# Compiler flags
8229c658 28CXXFLAGS = $(CXXOPT) +w -KPIC -features=rtti -D_XOPEN_SOURCE -D_XOPEN_VERSION=4 -D__EXTENSIONS__
19ca05d1 29CXXFLAGSNO = $(CXXNOOPT) +w -KPIC -features=rtti
30CFLAGS = $(COPT) -KPIC -erroff=%none
31FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS) -KPIC
32# rmkdepend flags for building dependencies of FORTRAN files
33DEPENDFFLAGS = $(FFLAGS)
34
35# rootcint flags
36CINTFLAGS =
37
8229c658 38SHLIB =
02a1d5c1 39SOEXT = so
40
41LD = /opt/SUNWspro/bin/CC
42LDFLAGS = $(OPT) -Qoption ld -t
43
44SHLD = $(LD)
45SOFLAGS = -G $(LDFLAGS) $(SHLIB)
46
de6c7cfd 47SYSLIBS := -L/usr/dt/lib -L/usr/openwin/lib -L/usr/ccs/lib -lXm -lXt \
8229c658 48 -lX11 -lm -lgen -ldl -lsocket -lsunmath -lfsu -lfui -lnsl
02a1d5c1 49
50# Additional flags and libraries for building aliroot executable
de6c7cfd 51
52EXEFLAGS := -O -Qoption ld -t
02a1d5c1 53
54
55
56
57