they contain all also the optimisation level.
.SUFFIXES: .cxx
.cxx.o:
- @$(CXX) $(OPT) $(CXXFLAGS) -c $*.cxx -o $*.o
+ @$(CXX) $(CXXFLAGS) -c $*.cxx -o $*.o
.c.o:
@$(CC) $(CFLAGS) -c $*.c -o $*.o
.f.o:
# Global optimisation
OPT = -O +Onolimit
-OPT = -g
# Shared library suffix
SL = sl
# The options
-CXXOPTS = +a1 +z
+CXXOPTS = $(OPT) +a1 +z
COPT = $(OPT)
FOPT = $(OPT) +ppu +Z
CC = echo $*.c ; gcc
# Global optimisation
-OPT = -g
+OPT = -O2
# Shared library suffix
SL = so
# The options
-CXXOPTS = -Wall -fPIC -fno-rtti -fno-exceptions
+CXXOPTS = $(OPT) -Wall -fPIC -fno-rtti -fno-exceptions
COPT = $(OPT)
FOPT = $(OPT) -fno-second-underscore
# Global optimisation
OPT = -O
-OPT = -g
# Shared library suffix
SL = so
# The options
-CXXOPTS = -I/usr/include
+CXXOPTS = $(OPT) -I/usr/include
COPT = $(OPT)
FOPT = $(OPT) -nofor_main
# Global optimisation
OPT = -O
-OPT = -g
# Shared library suffix
SL = so
# The options
-CXXOPTS = +w -KPIC
+CXXOPTS = $(OPT) +w -KPIC
COPT = $(OPT) -KPIC -erroff=%none
FOPT = $(OPT) -KPIC