ab8d80
diff -up lapack-3.7.1/LAPACKE/Makefile.tmglib lapack-3.7.1/LAPACKE/Makefile
ab8d80
--- lapack-3.7.1/LAPACKE/Makefile.tmglib	2017-08-01 11:49:38.704327630 -0400
ab8d80
+++ lapack-3.7.1/LAPACKE/Makefile	2017-08-01 11:50:51.487019275 -0400
ab8d80
@@ -52,7 +52,7 @@ include/lapacke_mangling.h: include/lapa
ab8d80
 	cp $< $@
ab8d80
 
ab8d80
 shlib: lapacke
ab8d80
-	$(CC) $(CFLAGS) -shared -Wl,-soname,$(SHLIB_LAPACKE).@SHORTVER@ -o $(SHLIB_LAPACKE).@LONGVER@ src/*.o utils/*.o $(LDFLAGS) $(LIBS) -lgfortran -lc
ab8d80
+	$(CC) $(CFLAGS) -shared -Wl,-soname,$(SHLIB_LAPACKE).@SHORTVER@ -o $(SHLIB_LAPACKE).@LONGVER@ src/*.o utils/*.o $(LDFLAGS) $(LIBS) -lgfortran -lc ../TESTING/MATGEN/*.o
ab8d80
 
ab8d80
 lapacke_example: lapacke
ab8d80
 	$(MAKE) -C example
ab8d80
diff -up lapack-3.7.1/LAPACKE/src/Makefile.tmglib lapack-3.7.1/LAPACKE/src/Makefile
ab8d80
diff -up lapack-3.7.1/Makefile.tmglib lapack-3.7.1/Makefile
ab8d80
--- lapack-3.7.1/Makefile.tmglib	2017-08-01 11:49:38.705327612 -0400
ab8d80
+++ lapack-3.7.1/Makefile	2017-08-01 11:52:11.149587246 -0400
ab8d80
@@ -20,7 +20,7 @@ cblaslib:
ab8d80
 lapacklib:
ab8d80
 	$(MAKE) -C SRC
ab8d80
 
ab8d80
-lapackelib:
ab8d80
+lapackelib: tmglib
ab8d80
 	$(MAKE) -C LAPACKE
ab8d80
 
ab8d80
 tmglib: