|
kusano |
2b45e8 |
# CCOMMON_OPT += -DFASTCPU
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), SunOS)
|
|
kusano |
2b45e8 |
ifdef BINARY64
|
|
kusano |
2b45e8 |
LDFLAGS = -64
|
|
kusano |
2b45e8 |
ifeq ($(F_COMPILER), SUN)
|
|
kusano |
2b45e8 |
FCOMMON_OPT += -m64
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), FreeBSD)
|
|
kusano |
2b45e8 |
LDFLAGS = -m elf_x86_64_fbsd
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), Linux)
|
|
kusano |
2b45e8 |
LDFLAGS = -m elf_x86_64
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), Darwin)
|
|
kusano |
2b45e8 |
LDFLAGS =
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), Interix)
|
|
kusano |
2b45e8 |
ARFLAGS = -m x64
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(OSNAME), Darwin)
|
|
kusano |
2b45e8 |
ifndef SMP
|
|
kusano |
2b45e8 |
LIBMKL = -L$(MKLPATH)/em64t -Wl,-rpath,$(MKLPATH)/em64t -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lguide -lpthread -lm
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
LIBMKL = -L$(MKLPATH)/em64t -Wl,-rpath,$(MKLPATH)/em64t -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lguide -lpthread -lm
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
ifndef SMP
|
|
kusano |
2b45e8 |
LIBMKL = -L$(MKLPATH)/em64t -Wl,-rpath,$(MKLPATH)/em64t -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lguide -lpthread -lm
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
LIBMKL = -L$(MKLPATH)/em64t -Wl,-rpath,$(MKLPATH)/em64t -Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -lguide -lpthread -lm
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifndef SMP
|
|
kusano |
2b45e8 |
LIBATLAS = -L$(ATLASPATH)64 -llapack -lcblas -lf77blas -latlas -lm
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
LIBATLAS = -L$(ATLASPATH)64 -llapack -lptcblas -lptf77blas -latlas -lpthread -lm
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LIBFLAME = -L$(FLAMEPATH) -llapack2flame -lflame $(TOPDIR)/$(LIBNAME) -lgfortran -lpthread -lm
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(F_COMPILER), g77)
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/gnu64/lib -Wl,-rpath,$(ACMLPATH)/gnu64/lib -lacml -lacml_mv -lg2c -lm
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(F_COMPILER), GFORTRAN)
|
|
kusano |
2b45e8 |
ifndef SMP
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/gfortran64/lib -Wl,-rpath,$(ACMLPATH)/gfortran64/lib -lacml -lacml_mv -lgfortran -lm
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/gfortran64_mp/lib -Wl,-rpath,$(ACMLPATH)/gfortran64_mp/lib -lacml_mp -lacml_mv -lgfortran -lgomp -lm
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(F_COMPILER), INTEL)
|
|
kusano |
2b45e8 |
ifndef SMP
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/ifort64/lib -Wl,-rpath,$(ACMLPATH)/ifort64/lib -lacml -lacml_mv -lifcoremt_pic -lirc -lm -lpthread -ldl
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/ifort64_mp/lib -Wl,-rpath,$(ACMLPATH)/ifort64_mp/lib -lacml_mp -lacml_mv -lifcoremt_pic -liomp5 -lirc -lm -lpthread -ldl
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(F_COMPILER), OPEN64)
|
|
kusano |
2b45e8 |
ifndef SMP
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/open64/lib -Wl,-rpath,$(ACMLPATH)/open64/lib -lacml -lacml_mv -lm
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/open64_mp/lib -Wl,-rpath,$(ACMLPATH)/open64_mp/lib -lacml_mp -lacml_mv -lm -lpthread
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(F_COMPILER), pgf77)
|
|
kusano |
2b45e8 |
ifndef SMP
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/pgi64/lib -Wl,-rpath,$(ACMLPATH)/pgi64/lib -lacml -lacml_mv -L$(PGIPATH) -Wl,-rpath,$(PGIPATH) -lpgftnrtl -lnspgc -lpgmp -lpgc
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/pgi64_mp/lib -Wl,-rpath,$(ACMLPATH)/pgi64_mp/lib -lacml -lacml_mv -L$(PGIPATH) -Wl,-rpath,$(PGIPATH) -lpgftnrtl -lnspgc -lpgmp -lpgc
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(F_COMPILER), PATHSCALE)
|
|
kusano |
2b45e8 |
ifndef SMP
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/pathscale64/lib -Wl,-rpath,$(ACMLPATH)/pathscale64/lib -lacml -lacml_mv -Wl,-rpath,$(PATHSCALEPATH) -L$(PATHSCALEPATH) -lpathfortran -lm
|
|
kusano |
2b45e8 |
else
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/pathscale64_mp/lib -Wl,-rpath,$(ACMLPATH)/pathscale64_mp/lib -lacml_mp -lacml_mv -Wl,-rpath,$(PATHSCALEPATH) -L$(PATHSCALEPATH) -lopenmp -lpathfortran -lm
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
ifeq ($(F_COMPILER), f90)
|
|
kusano |
2b45e8 |
LIBACML = -L$(ACMLPATH)/sun64/lib -Wl,-R,$(ACMLPATH)/sun64/lib -L$(SUNPATH)/lib/amd64 -Wl,-R,$(SUNPATH)/lib/amd64 -lacml -lacml_mv -lfsu
|
|
kusano |
2b45e8 |
endif
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LIBSUNPERF = -L$(SUNPATH)/lib/amd64 -L$(SUNPATH)/rtlibs/amd64 -Wl,-R,$(SUNPATH)/lib/amd64 -Wl,-R,$(SUNPATH)/rtlibs/amd64 -lsunperf -lfui -lfsu -lmtsk
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
LIBVECLIB = /System/Library/Frameworks/vecLib.framework/Versions/Current/vecLib
|