diff options
author | Zaheer Chothia <zaheer.chothia@gmail.com> | 2013-01-20 21:53:52 +0100 |
---|---|---|
committer | Zaheer Chothia <zaheer.chothia@gmail.com> | 2013-01-20 22:52:51 +0100 |
commit | 4db6660de4756b25d7b71c00d7893f2b15587f1c (patch) | |
tree | 86df720db5b4b3edc10874fc5b1417acd2f756dc /Makefile.prebuild | |
parent | 0b08f7479e26ce0ef8e076185bb89f16479335e9 (diff) | |
download | openblas-4db6660de4756b25d7b71c00d7893f2b15587f1c.tar.gz openblas-4db6660de4756b25d7b71c00d7893f2b15587f1c.tar.bz2 openblas-4db6660de4756b25d7b71c00d7893f2b15587f1c.zip |
Refs #185. Add missing 'const' to declarations in <cblas.h>. Thanks to Dan Povey!
The 'const' modifications were done automatically using this scripts:
https://kaldi.svn.sourceforge.net/svnroot/kaldi/sandbox/dan/tools/for_openblas
Diffstat (limited to 'Makefile.prebuild')
-rw-r--r-- | Makefile.prebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile.prebuild b/Makefile.prebuild new file mode 100644 index 000000000..f4b0bb5af --- /dev/null +++ b/Makefile.prebuild @@ -0,0 +1,44 @@ +# This is triggered by Makefile.system and runs before any of the code is built. + +export BINARY +export USE_OPENMP + +ifdef TARGET_CORE +TARGET_MAKE = Makefile_kernel.conf +TARGET_CONF = config_kernel.h +else +TARGET_MAKE = Makefile.conf +TARGET_CONF = config.h +endif + +# CPUIDEMU = ../../cpuid/table.o + +ifdef CPUIDEMU +EXFLAGS = -DCPUIDEMU -DVENDOR=99 +endif + +all: getarch_2nd cblas_noconst.h + ./getarch_2nd 0 >> $(TARGET_MAKE) + ./getarch_2nd 1 >> $(TARGET_CONF) + +config.h : c_check f_check getarch + perl ./c_check $(TARGET_MAKE) $(TARGET_CONF) $(CC) + perl ./f_check $(TARGET_MAKE) $(TARGET_CONF) $(FC) + ./getarch 0 >> $(TARGET_MAKE) + ./getarch 1 >> $(TARGET_CONF) + + +getarch : getarch.c cpuid.S dummy $(CPUIDEMU) + $(HOSTCC) $(CFLAGS) $(EXFLAGS) -o $(@F) getarch.c cpuid.S $(CPUIDEMU) + +getarch_2nd : getarch_2nd.c config.h dummy +ifndef TARGET_CORE + $(HOSTCC) -I. $(CFLAGS) -o $(@F) getarch_2nd.c +else + $(HOSTCC) -I. $(CFLAGS) -DBUILD_KERNEL -o $(@F) getarch_2nd.c +endif + +cblas_noconst.h : cblas.h + sed -e "s/\bconst\b\s*//g" cblas.h > cblas_noconst.h + +dummy: |