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