⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 make.common

📁 openmp版的banchmark
💻 COMMON
字号:
PROGRAM  = $(BINDIR)/$(BENCHMARK).$(CLASS)FCOMPILE = $(F77) -c $(F_INC) $(FFLAGS)CCOMPILE = $(CC)  -c $(C_INC) $(CFLAGS)# Class "U" is used internally by the setparams program to mean# "unknown". This means that if you don't specify CLASS=# on the command line, you'll get an error. It would be nice# to be able to avoid this, but we'd have to get information# from the setparams back to the make program, which isn't easy. CLASS=Udefault:: ${PROGRAM}# This makes sure the configuration utility setparams # is up to date. # Note that this must be run every time, which is why the# target does not exist and is not created. # If you create a file called "config" you will break things. config:	@cd ../sys; ${MAKE} all	../sys/setparams ${BENCHMARK} ${CLASS}COMMON=../common${COMMON}/${RAND}.o: ${COMMON}/${RAND}.f	cd ${COMMON}; ${FCOMPILE} ${RAND}.f${COMMON}/c_${RAND}.o: ${COMMON}/c_${RAND}.c	cd ${COMMON}; ${CCOMPILE} c_${RAND}.c${COMMON}/print_results.o: ${COMMON}/print_results.f	cd ${COMMON}; ${FCOMPILE} print_results.f${COMMON}/c_print_results.o: ${COMMON}/c_print_results.c	cd ${COMMON}; ${CCOMPILE} c_print_results.c${COMMON}/timers.o: ${COMMON}/timers.f	cd ${COMMON}; ${FCOMPILE} timers.f${COMMON}/c_timers.o: ${COMMON}/c_timers.c	cd ${COMMON}; ${CCOMPILE} c_timers.c${COMMON}/wtime.o: ${COMMON}/${WTIME}	cd ${COMMON}; ${CCOMPILE} ${MACHINE} ${COMMON}/${WTIME}# For most machines or CRAY or IBM#	cd ${COMMON}; ${CCOMPILE} ${MACHINE} ${COMMON}/wtime.c# For a precise timer on an SGI Power Challenge, try:#	cd ${COMMON}; ${CCOMPILE} -o wtime.o ${COMMON}/wtime_sgi64.c${COMMON}/c_wtime.o: ${COMMON}/${WTIME}	cd ${COMMON}; ${CCOMPILE} -o c_wtime.o ${COMMON}/${WTIME}# Normally setparams updates npbparams.h only if the settings (CLASS)# have changed. However, we also want to update if the compile options# may have changed (set in ../config/make.def). npbparams.h: ../config/make.def	@ echo make.def modified. Rebuilding npbparams.h just in case	rm -f npbparams.h	../sys/setparams ${BENCHMARK} ${CLASS}# So that "make benchmark-name" works${BENCHMARK}:  default${BENCHMARKU}: default

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -