You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 14 kB

7 years ago
7 years ago
7 years ago
7 years ago
1 year ago
1 year ago
11 years ago
6 years ago
12 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. TOPDIR = .
  2. include ./Makefile.system
  3. LNCMD = ln -fs
  4. ifeq ($(FIXED_LIBNAME), 1)
  5. LNCMD = true
  6. endif
  7. BLASDIRS = interface driver/level2 driver/level3 driver/others
  8. ifneq ($(DYNAMIC_ARCH), 1)
  9. BLASDIRS += kernel
  10. endif
  11. ifdef SANITY_CHECK
  12. BLASDIRS += reference
  13. endif
  14. SUBDIRS = $(BLASDIRS)
  15. ifneq ($(NO_LAPACK), 1)
  16. SUBDIRS += lapack
  17. endif
  18. RELA =
  19. ifeq ($(BUILD_RELAPACK), 1)
  20. RELA = re_lapack
  21. endif
  22. ifeq ($(NO_FORTRAN), 1)
  23. define NOFORTRAN
  24. 1
  25. endef
  26. ifneq ($(NO_LAPACK), 1)
  27. define C_LAPACK
  28. 1
  29. endef
  30. endif
  31. export NOFORTRAN
  32. export NO_LAPACK
  33. export C_LAPACK
  34. endif
  35. ifeq ($(F_COMPILER),CRAY)
  36. LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -Og -Os,$(LAPACK_FFLAGS))
  37. else
  38. LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -O -Og -Os,$(LAPACK_FFLAGS))
  39. endif
  40. ifdef LAPACK_STRLEN
  41. LAPACK_FFLAGS += -DLAPACK_STRLEN=$(LAPACK_STRLEN)
  42. endif
  43. SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cpp_thread_test
  44. .PHONY : all libs netlib $(RELA) test ctest shared install
  45. .NOTPARALLEL : shared
  46. all :: tests
  47. @echo
  48. @echo " OpenBLAS build complete. ($(LIB_COMPONENTS))"
  49. @echo
  50. @echo " OS ... $(OSNAME) "
  51. @echo " Architecture ... $(ARCH) "
  52. ifndef BINARY64
  53. @echo " BINARY ... 32bit "
  54. else
  55. @echo " BINARY ... 64bit "
  56. endif
  57. ifdef INTERFACE64
  58. ifneq ($(INTERFACE64), 0)
  59. @echo " Use 64 bits int (equivalent to \"-i8\" in Fortran) "
  60. endif
  61. endif
  62. @$(CC) --version > /dev/null 2>&1;\
  63. if [ $$? -eq 0 ]; then \
  64. cverinfo=`$(CC) --version | sed -n '1p'`; \
  65. if [ -z "$${cverinfo}" ]; then \
  66. cverinfo=`$(CC) --version | sed -n '2p'`; \
  67. fi; \
  68. echo " C compiler ... $(C_COMPILER) (cmd & version : $${cverinfo})";\
  69. else \
  70. echo " C compiler ... $(C_COMPILER) (command line : $(CC))";\
  71. fi
  72. ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
  73. @$(FC) --version > /dev/null 2>&1;\
  74. if [ $$? -eq 0 ]; then \
  75. fverinfo=`$(FC) --version | sed -n '1p'`; \
  76. if [ -z "$${fverinfo}" ]; then \
  77. fverinfo=`$(FC) --version | sed -n '2p'`; \
  78. fi; \
  79. echo " Fortran compiler ... $(F_COMPILER) (cmd & version : $${fverinfo})";\
  80. else \
  81. echo " Fortran compiler ... $(F_COMPILER) (command line : $(FC))";\
  82. fi
  83. endif
  84. ifneq ($(OSNAME), AIX)
  85. @echo -n " Library Name ... $(LIBNAME)"
  86. else
  87. @echo " Library Name ... $(LIBNAME)"
  88. endif
  89. ifndef SMP
  90. @echo " (Single-threading) "
  91. else
  92. @echo " (Multi-threading; Max num-threads is $(NUM_THREADS))"
  93. endif
  94. ifeq ($(DYNAMIC_ARCH), 1)
  95. @echo " Supporting multiple $(ARCH) cpu models with minimum requirement for the common code being $(CORE)"
  96. endif
  97. ifeq ($(USE_OPENMP), 1)
  98. @echo
  99. @echo " Use OpenMP in the multithreading. Because of ignoring OPENBLAS_NUM_THREADS and GOTO_NUM_THREADS flags, "
  100. @echo " you should use OMP_NUM_THREADS environment variable to control the number of threads."
  101. @echo
  102. endif
  103. ifeq ($(OSNAME), Darwin)
  104. @echo "WARNING: If you plan to use the dynamic library $(LIBDYNNAME), you must run:"
  105. @echo
  106. @echo "\"make PREFIX=/your_installation_path/ install\"."
  107. @echo
  108. @echo "(or set PREFIX in Makefile.rule and run make install."
  109. @echo
  110. @echo "Note that any flags passed to make during build should also be passed to make install"
  111. @echo "to circumvent any install errors."
  112. @echo
  113. @echo "If you want to move the .dylib to a new location later, make sure you change"
  114. @echo "the internal name of the dylib with:"
  115. @echo
  116. @echo "install_name_tool -id /new/absolute/path/to/$(LIBDYNNAME) $(LIBDYNNAME)"
  117. endif
  118. @echo
  119. @echo "To install the library, you can run \"make PREFIX=/path/to/your/installation install\"."
  120. @echo
  121. @echo "Note that any flags passed to make during build should also be passed to make install"
  122. @echo "to circumvent any install errors."
  123. @echo
  124. shared : libs netlib $(RELA)
  125. ifneq ($(NO_SHARED), 1)
  126. ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android Haiku FreeBSD DragonFly))
  127. @$(MAKE) -C exports so
  128. @$(LNCMD) $(LIBSONAME) $(LIBPREFIX).so
  129. @$(LNCMD) $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION)
  130. endif
  131. ifeq ($(OSNAME), $(filter $(OSNAME),OpenBSD NetBSD))
  132. @$(MAKE) -C exports so
  133. @$(LNCMD) $(LIBSONAME) $(LIBPREFIX).so
  134. endif
  135. ifeq ($(OSNAME), Darwin)
  136. @$(MAKE) -C exports dyn
  137. @$(LNCMD) $(LIBDYNNAME) $(LIBPREFIX).dylib
  138. @$(LNCMD) $(LIBDYNNAME) $(LIBPREFIX).$(MAJOR_VERSION).dylib
  139. endif
  140. ifeq ($(OSNAME), WINNT)
  141. @$(MAKE) -C exports dll
  142. endif
  143. ifeq ($(OSNAME), CYGWIN_NT)
  144. @$(MAKE) -C exports dll
  145. endif
  146. ifeq ($(OSNAME), AIX)
  147. @$(MAKE) -C exports so
  148. endif
  149. endif
  150. tests : shared
  151. ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
  152. touch $(LIBNAME)
  153. ifndef NO_FBLAS
  154. $(MAKE) -C test all
  155. endif
  156. endif
  157. ifneq ($(ONLY_CBLAS), 1)
  158. $(MAKE) -C utest all
  159. endif
  160. ifneq ($(NO_CBLAS), 1)
  161. ifneq ($(ONLY_CBLAS), 1)
  162. $(MAKE) -C ctest all
  163. endif
  164. ifeq ($(CPP_THREAD_SAFETY_TEST), 1)
  165. $(MAKE) -C cpp_thread_test all
  166. endif
  167. endif
  168. libs :
  169. ifeq ($(CORE), UNKNOWN)
  170. $(error OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.)
  171. endif
  172. ifeq ($(NOFORTRAN), 1)
  173. $(info OpenBLAS: Detecting fortran compiler failed. Can only compile BLAS and f2c-converted LAPACK.)
  174. endif
  175. ifeq ($(NO_STATIC), 1)
  176. ifeq ($(NO_SHARED), 1)
  177. $(error OpenBLAS: neither static nor shared are enabled.)
  178. endif
  179. endif
  180. @for d in $(SUBDIRS) ; \
  181. do if test -d $$d; then \
  182. $(MAKE) -C $$d $(@F) || exit 1 ; \
  183. fi; \
  184. done
  185. #Save the config files for installation
  186. @cp Makefile.conf Makefile.conf_last
  187. @cp config.h config_last.h
  188. ifdef QUAD_PRECISION
  189. @echo "#define QUAD_PRECISION">> config_last.h
  190. endif
  191. ifeq ($(EXPRECISION), 1)
  192. @echo "#define EXPRECISION">> config_last.h
  193. endif
  194. ##
  195. ifeq ($(DYNAMIC_ARCH), 1)
  196. @$(MAKE) -C kernel commonlibs || exit 1
  197. @for d in $(DYNAMIC_CORE) ; \
  198. do $(MAKE) GOTOBLAS_MAKEFILE= -C kernel TARGET_CORE=$$d kernel || exit 1 ;\
  199. done
  200. @echo DYNAMIC_ARCH=1 >> Makefile.conf_last
  201. ifeq ($(DYNAMIC_OLDER), 1)
  202. @echo DYNAMIC_OLDER=1 >> Makefile.conf_last
  203. endif
  204. endif
  205. @echo TARGET=$(CORE) >> Makefile.conf_last
  206. ifdef USE_THREAD
  207. @echo USE_THREAD=$(USE_THREAD) >> Makefile.conf_last
  208. endif
  209. ifdef SMP
  210. ifdef NUM_THREADS
  211. @echo NUM_THREADS=$(NUM_THREADS) >> Makefile.conf_last
  212. else
  213. @echo NUM_THREADS=$(NUM_CORES) >> Makefile.conf_last
  214. endif
  215. endif
  216. ifeq ($(USE_OPENMP),1)
  217. @echo USE_OPENMP=1 >> Makefile.conf_last
  218. endif
  219. ifeq ($(INTERFACE64),1)
  220. @echo INTERFACE64=1 >> Makefile.conf_last
  221. endif
  222. @echo THELIBNAME=$(LIBNAME) >> Makefile.conf_last
  223. @echo THELIBSONAME=$(LIBSONAME) >> Makefile.conf_last
  224. @-$(LNCMD) $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
  225. @touch lib.grd
  226. prof : prof_blas prof_lapack
  227. prof_blas :
  228. $(LNCMD) $(LIBNAME_P) $(LIBPREFIX)_p.$(LIBSUFFIX)
  229. for d in $(SUBDIRS) ; \
  230. do if test -d $$d; then \
  231. $(MAKE) -C $$d prof || exit 1 ; \
  232. fi; \
  233. done
  234. ifeq ($(DYNAMIC_ARCH), 1)
  235. $(MAKE) -C kernel commonprof || exit 1
  236. endif
  237. blas :
  238. $(LNCMD) $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
  239. for d in $(BLASDIRS) ; \
  240. do if test -d $$d; then \
  241. $(MAKE) -C $$d libs || exit 1 ; \
  242. fi; \
  243. done
  244. hpl :
  245. $(LNCMD) $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
  246. for d in $(BLASDIRS) ../laswp exports ; \
  247. do if test -d $$d; then \
  248. $(MAKE) -C $$d $(@F) || exit 1 ; \
  249. fi; \
  250. done
  251. ifeq ($(DYNAMIC_ARCH), 1)
  252. $(MAKE) -C kernel commonlibs || exit 1
  253. for d in $(DYNAMIC_CORE) ; \
  254. do $(MAKE) GOTOBLAS_MAKEFILE= -C kernel TARGET_CORE=$$d kernel || exit 1 ;\
  255. done
  256. endif
  257. hpl_p :
  258. $(LNCMD) $(LIBNAME_P) $(LIBPREFIX)_p.$(LIBSUFFIX)
  259. for d in $(SUBDIRS) ../laswp exports ; \
  260. do if test -d $$d; then \
  261. $(MAKE) -C $$d $(@F) || exit 1 ; \
  262. fi; \
  263. done
  264. netlib : lapack_prebuild
  265. ifneq ($(NO_LAPACK), 1)
  266. @$(MAKE) -C $(NETLIB_LAPACK_DIR) lapacklib
  267. @$(MAKE) -C $(NETLIB_LAPACK_DIR) tmglib
  268. endif
  269. ifneq ($(NO_LAPACKE), 1)
  270. @$(MAKE) -C $(NETLIB_LAPACK_DIR) lapackelib
  271. endif
  272. ifeq ($(NO_LAPACK), 1)
  273. re_lapack :
  274. else
  275. re_lapack :
  276. @$(MAKE) -C relapack
  277. endif
  278. prof_lapack : lapack_prebuild
  279. @$(MAKE) -C $(NETLIB_LAPACK_DIR) lapack_prof
  280. lapack_prebuild :
  281. ifeq ($(NO_LAPACK), $(filter 0,$(NO_LAPACK)))
  282. -@echo "FC = $(FC)" > $(NETLIB_LAPACK_DIR)/make.inc
  283. ifeq ($(F_COMPILER), GFORTRAN)
  284. -@echo "override FFLAGS = $(LAPACK_FFLAGS) -fno-tree-vectorize" >> $(NETLIB_LAPACK_DIR)/make.inc
  285. else
  286. -@echo "override FFLAGS = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
  287. endif
  288. -@echo "FFLAGS_DRV = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
  289. -@echo "POPTS = $(LAPACK_FPFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
  290. -@echo "FFLAGS_NOOPT = -O0 $(LAPACK_NOOPT)" >> $(NETLIB_LAPACK_DIR)/make.inc
  291. -@echo "PNOOPT = $(LAPACK_FPFLAGS) -O0" >> $(NETLIB_LAPACK_DIR)/make.inc
  292. ifeq ($(C_COMPILER)$(F_COMPILER)$(USE_OPENMP), CLANGGFORTRAN1)
  293. -@echo "LDFLAGS = $(FFLAGS) $(EXTRALIB) -lomp" >> $(NETLIB_LAPACK_DIR)/make.inc
  294. else
  295. ifeq ($(C_COMPILER)$(F_COMPILER)$(USE_OPENMP), CLANGIBM1)
  296. -@echo "LDFLAGS = $(FFLAGS) $(EXTRALIB) -lomp" >> $(NETLIB_LAPACK_DIR)/make.inc
  297. else
  298. -@echo "LDFLAGS = $(FFLAGS) $(EXTRALIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
  299. endif
  300. endif
  301. -@echo "CC = $(CC)" >> $(NETLIB_LAPACK_DIR)/make.inc
  302. -@echo "override CFLAGS = $(LAPACK_CFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
  303. -@echo "AR = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
  304. -@echo "ARFLAGS = $(ARFLAGS) -ru" >> $(NETLIB_LAPACK_DIR)/make.inc
  305. -@echo "RANLIB = $(RANLIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
  306. -@echo "LAPACKLIB = ../../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
  307. -@echo "TMGLIB = ../../../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
  308. -@echo "BLASLIB = ../../../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
  309. -@echo "LAPACKELIB = ../../../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
  310. -@echo "LAPACKLIB_P = ../$(LIBNAME_P)" >> $(NETLIB_LAPACK_DIR)/make.inc
  311. -@echo "SUFFIX = $(SUFFIX)" >> $(NETLIB_LAPACK_DIR)/make.inc
  312. -@echo "PSUFFIX = $(PSUFFIX)" >> $(NETLIB_LAPACK_DIR)/make.inc
  313. -@echo "CEXTRALIB = $(EXTRALIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
  314. ifeq ($(F_COMPILER), GFORTRAN)
  315. -@echo "TIMER = INT_ETIME" >> $(NETLIB_LAPACK_DIR)/make.inc
  316. ifdef SMP
  317. ifeq ($(OSNAME), WINNT)
  318. -@echo "LOADER = $(FC)" >> $(NETLIB_LAPACK_DIR)/make.inc
  319. else ifeq ($(OSNAME), Haiku)
  320. -@echo "LOADER = $(FC)" >> $(NETLIB_LAPACK_DIR)/make.inc
  321. else
  322. -@echo "LOADER = $(FC) -pthread" >> $(NETLIB_LAPACK_DIR)/make.inc
  323. endif
  324. else
  325. -@echo "LOADER = $(FC)" >> $(NETLIB_LAPACK_DIR)/make.inc
  326. endif
  327. else
  328. -@echo "TIMER = NONE" >> $(NETLIB_LAPACK_DIR)/make.inc
  329. -@echo "LOADER = $(FC)" >> $(NETLIB_LAPACK_DIR)/make.inc
  330. endif
  331. ifeq ($(BUILD_LAPACK_DEPRECATED), 1)
  332. -@echo "BUILD_DEPRECATED = 1" >> $(NETLIB_LAPACK_DIR)/make.inc
  333. endif
  334. ifeq ($(BUILD_SINGLE), 1)
  335. -@echo "BUILD_SINGLE = 1" >> $(NETLIB_LAPACK_DIR)/make.inc
  336. endif
  337. ifeq ($(BUILD_DOUBLE), 1)
  338. -@echo "BUILD_DOUBLE = 1" >> $(NETLIB_LAPACK_DIR)/make.inc
  339. endif
  340. ifeq ($(BUILD_COMPLEX), 1)
  341. -@echo "BUILD_COMPLEX = 1" >> $(NETLIB_LAPACK_DIR)/make.inc
  342. endif
  343. ifeq ($(BUILD_COMPLEX16), 1)
  344. -@echo "BUILD_COMPLEX16 = 1" >> $(NETLIB_LAPACK_DIR)/make.inc
  345. endif
  346. -@echo "LAPACKE_WITH_TMG = 1" >> $(NETLIB_LAPACK_DIR)/make.inc
  347. -@cat make.inc >> $(NETLIB_LAPACK_DIR)/make.inc
  348. endif
  349. large.tgz :
  350. ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
  351. if [ ! -a $< ]; then
  352. -wget http://www.netlib.org/lapack/timing/large.tgz;
  353. fi
  354. endif
  355. timing.tgz :
  356. ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
  357. if [ ! -a $< ]; then
  358. -wget http://www.netlib.org/lapack/timing/timing.tgz;
  359. fi
  360. endif
  361. lapack-timing : large.tgz timing.tgz
  362. ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
  363. (cd $(NETLIB_LAPACK_DIR); $(TAR) zxf ../timing.tgz TIMING)
  364. (cd $(NETLIB_LAPACK_DIR)/TIMING; $(TAR) zxf ../../large.tgz )
  365. $(MAKE) -C $(NETLIB_LAPACK_DIR)/TIMING
  366. endif
  367. lapack-test :
  368. (cd $(NETLIB_LAPACK_DIR)/TESTING && rm -f x* *.out)
  369. $(MAKE) -j 1 -C $(NETLIB_LAPACK_DIR)/TESTING/EIG xeigtstc xeigtstd xeigtsts xeigtstz
  370. $(MAKE) -j 1 -C $(NETLIB_LAPACK_DIR)/TESTING/LIN xlintstc xlintstd xlintstds xlintstrfd xlintstrfz xlintsts xlintstz xlintstzc xlintstrfs xlintstrfc
  371. ifneq ($(CROSS), 1)
  372. ( cd $(NETLIB_LAPACK_DIR)/INSTALL; $(MAKE) all; ./testlsame; ./testslamch; ./testdlamch; \
  373. ./testsecond; ./testdsecnd; ./testieee; ./testversion )
  374. (cd $(NETLIB_LAPACK_DIR); ./lapack_testing.py -r -b TESTING)
  375. endif
  376. lapack-runtest: lapack-test
  377. ( cd $(NETLIB_LAPACK_DIR)/INSTALL; ./testlsame; ./testslamch; ./testdlamch; \
  378. ./testsecond; ./testdsecnd; ./testieee; ./testversion )
  379. (cd $(NETLIB_LAPACK_DIR); ./lapack_testing.py -r -b TESTING )
  380. blas-test:
  381. (cd $(NETLIB_LAPACK_DIR)/BLAS/TESTING && rm -f x* *.out)
  382. $(MAKE) -j 1 -C $(NETLIB_LAPACK_DIR) blas_testing
  383. (cd $(NETLIB_LAPACK_DIR)/BLAS/TESTING && cat *.out)
  384. dummy :
  385. install :
  386. $(MAKE) -f Makefile.install install
  387. install_tests :
  388. $(MAKE) -f Makefile.install install_tests
  389. clean ::
  390. @for d in $(SUBDIRS_ALL) ; \
  391. do if test -d $$d; then \
  392. $(MAKE) -C $$d $(@F) || exit 1 ; \
  393. fi; \
  394. done
  395. #ifdef DYNAMIC_ARCH
  396. @$(MAKE) -C kernel clean
  397. #endif
  398. @$(MAKE) -C reference clean
  399. @rm -f *.$(LIBSUFFIX) *.so *~ *.exe getarch getarch_2nd *.dll *.lib *.$(SUFFIX) *.dwf $(LIBPREFIX).$(LIBSUFFIX) $(LIBPREFIX)_p.$(LIBSUFFIX) $(LIBPREFIX).so.$(MAJOR_VERSION) *.lnk myconfig.h *.so.renamed *.a.renamed *.so.0
  400. ifeq ($(OSNAME), Darwin)
  401. @rm -rf getarch.dSYM getarch_2nd.dSYM
  402. endif
  403. @rm -f Makefile.conf config.h Makefile_kernel.conf config_kernel.h st* *.dylib
  404. @rm -f cblas.tmp cblas.tmp2
  405. @touch $(NETLIB_LAPACK_DIR)/make.inc
  406. @$(MAKE) -C $(NETLIB_LAPACK_DIR) clean
  407. @rm -f $(NETLIB_LAPACK_DIR)/make.inc $(NETLIB_LAPACK_DIR)/lapacke/include/lapacke_mangling.h
  408. @$(MAKE) -C relapack clean
  409. @rm -f *.grd Makefile.conf_last config_last.h
  410. @(cd $(NETLIB_LAPACK_DIR)/TESTING && rm -f x* *.out testing_results.txt)
  411. @echo Done.