kusano 2b45e8
CPP	= $(CC) -E
kusano 2b45e8
RANLIB  = ranlib
kusano 2b45e8
kusano 2b45e8
ifdef BINARY64
kusano 2b45e8
kusano 2b45e8
CCOMMON_OPT += -mcpu=v9 -m64
kusano 2b45e8
ifeq ($(COMPILER_F77), g77)
kusano 2b45e8
FCOMMON_OPT += -mcpu=v9 -m64
kusano 2b45e8
endif
kusano 2b45e8
ifeq ($(COMPILER_F77), f90)
kusano 2b45e8
FCOMMON_OPT += -xarch=v9
kusano 2b45e8
endif
kusano 2b45e8
LDFLAGS	= -64
kusano 2b45e8
else
kusano 2b45e8
kusano 2b45e8
CCOMMON_OPT += -mcpu=v9
kusano 2b45e8
kusano 2b45e8
ifeq ($(COMPILER_F77), g77)
kusano 2b45e8
FCOMMON_OPT += -mcpu=v9
kusano 2b45e8
endif
kusano 2b45e8
ifeq ($(COMPILER_F77), f90)
kusano 2b45e8
FCOMMON_OPT += -xarch=v8plusb
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
LIBNAME		= $(LIBPREFIX).a
kusano 2b45e8
kusano 2b45e8
ifndef SMP
kusano 2b45e8
LIBCXML		= -L/opt/SUNWspro/lib/v9
kusano 2b45e8
LIBATLAS	= -L$(HOME)/misc/lib -lf77blas -latlas -lm 
kusano 2b45e8
else
kusano 2b45e8
LIBCXML		= -lcxmlp -lots -lm
kusano 2b45e8
endif
kusano 2b45e8
ifdef BINARY64
kusano 2b45e8
LIBSUNPERF	= -L/opt/SUNWspro/lib/v9 -L/opt/SUNWspro/prod/lib/v9 \
kusano 2b45e8
		-Wl,-R,/opt/SUNWspro/lib/v9 -lsunperf -lompstubs -lfui -lfsu -lsunmath
kusano 2b45e8
else
kusano 2b45e8
LIBSUNPERF	= -L/opt/SUNWspro/lib -L/opt/SUNWspro/prod/lib \
kusano 2b45e8
		-Wl,-R,/opt/SUNWspro/lib -lsunperf -lompstubs -lfui -lfsu -lsunmath
kusano 2b45e8
endif