kusano 2b45e8
CPP	= $(CC) -E
kusano 2b45e8
RANLIB  = ranlib
kusano 2b45e8
kusano 2b45e8
ifeq ($(LIBSUBARCH), EV4)
kusano 2b45e8
LIBNAME		= $(LIBPREFIX)_ev4.a
kusano 2b45e8
LIBNAME_P	= $(LIBPREFIX)_ev4_p.a
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(LIBSUBARCH), EV5)
kusano 2b45e8
LIBNAME		= $(LIBPREFIX)_ev5.a
kusano 2b45e8
LIBNAME_P	= $(LIBPREFIX)_ev5_p.a
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(LIBSUBARCH), EV6)
kusano 2b45e8
LIBNAME		= $(LIBPREFIX)_ev6.a
kusano 2b45e8
LIBNAME_P	= $(LIBPREFIX)_ev6_p.a
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifneq ($(COMPILER), NATIVE)
kusano 2b45e8
# GCC User
kusano 2b45e8
ifeq ($(LIBSUBARCH), EV4)
kusano 2b45e8
OPTION += -DEV4 -mcpu=ev4
kusano 2b45e8
endif
kusano 2b45e8
ifeq ($(LIBSUBARCH), EV5)
kusano 2b45e8
OPTION += -DEV5 -mcpu=ev5
kusano 2b45e8
endif
kusano 2b45e8
ifeq ($(LIBSUBARCH), EV6)
kusano 2b45e8
OPTION += -DEV6 -mcpu=ev6
kusano 2b45e8
endif
kusano 2b45e8
else
kusano 2b45e8
# Compaq Compiler User
kusano 2b45e8
ifeq ($(LIBSUBARCH), EV4)
kusano 2b45e8
OPTION += -DEV4 -tune ev4 -arch ev4
kusano 2b45e8
endif
kusano 2b45e8
ifeq ($(LIBSUBARCH), EV5)
kusano 2b45e8
OPTION += -DEV5 -tune ev5 -arch ev5
kusano 2b45e8
endif
kusano 2b45e8
ifeq ($(LIBSUBARCH), EV6)
kusano 2b45e8
OPTION += -DEV6 -tune ev6 -arch ev6
kusano 2b45e8
endif
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(F_COMPILER), GFORTRAN)
kusano 2b45e8
FCOMMON_OPT	+= -mieee
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifeq ($(F_COMPILER), G77)
kusano 2b45e8
FCOMMON_OPT	+= -mieee
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
ifndef SMP
kusano 2b45e8
LIBCXML		= -lcxml  -lots -lm
kusano 2b45e8
LIBATLAS	= -L/usr/lib/atlas3.7.8 -lf77blas -latlas -lm 
kusano 2b45e8
else
kusano 2b45e8
LIBCXML		= -lcxmlp -lots -lm
kusano 2b45e8
LIBATLAS	= -L/usr/lib/atlas3.7.8p -llapack -lptcblas -lptf77blas -latlas -lpthread -lm
kusano 2b45e8
endif