STYLE: Change source template files to .in extension
authorHans Johnson <hans-johnson@uiowa.edu>
Mon, 4 Jul 2016 22:35:05 +0000 (17:35 -0500)
committerHans Johnson <hans-johnson@uiowa.edu>
Mon, 4 Jul 2016 22:35:05 +0000 (17:35 -0500)
The cblas_mangling_with_flags.h and lapacke_mangling_with_flags.h
are template files that are not used directly.  They need to be
configured (i.e. copied) to lapacke_mangling.h and cblas_mangling.h
header files that are used.  These renamings make the intent of
these files more clearly reported.

The file LAPACKE/include/lapacke_mangling.h should not be stored in the
repository because it should be generated (copied from above) at build
time.

CBLAS/Makefile
CBLAS/include/cblas_mangling_with_flags.h.in [moved from CBLAS/include/cblas_mangling_with_flags.h with 100% similarity]
LAPACKE/Makefile
LAPACKE/include/lapacke_mangling.h [deleted file]
LAPACKE/include/lapacke_mangling_with_flags.h.in [moved from LAPACKE/include/lapacke_mangling_with_flags.h with 100% similarity]

index d7ee0c5..3da723c 100644 (file)
@@ -1,7 +1,7 @@
 include ../make.inc
 
 all:
-       cd include && cp cblas_mangling_with_flags.h cblas_mangling.h
+       cd include && cp cblas_mangling_with_flags.h.in cblas_mangling.h
        cd src && $(MAKE) all
 
 
index 31ddcd7..2eedab2 100644 (file)
@@ -45,7 +45,7 @@ include ../make.inc
 all: lapacke 
 
 lapacke:
-       cd include && cp lapacke_mangling_with_flags.h lapacke_mangling.h
+       cd include && cp lapacke_mangling_with_flags.h.in lapacke_mangling.h
        cd src && $(MAKE)
        cd utils && $(MAKE)
 
diff --git a/LAPACKE/include/lapacke_mangling.h b/LAPACKE/include/lapacke_mangling.h
deleted file mode 100644 (file)
index 6211fd1..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef LAPACK_HEADER_INCLUDED
-#define LAPACK_HEADER_INCLUDED
-
-#ifndef LAPACK_GLOBAL
-#if defined(LAPACK_GLOBAL_PATTERN_LC) || defined(ADD_)
-#define LAPACK_GLOBAL(lcname,UCNAME)  lcname##_
-#elif defined(LAPACK_GLOBAL_PATTERN_UC) || defined(UPPER)
-#define LAPACK_GLOBAL(lcname,UCNAME)  UCNAME
-#elif defined(LAPACK_GLOBAL_PATTERN_MC) || defined(NOCHANGE)
-#define LAPACK_GLOBAL(lcname,UCNAME)  lcname
-#else
-#define LAPACK_GLOBAL(lcname,UCNAME)  lcname##_
-#endif
-#endif
-
-#endif
-