Commit 2d00fb584b588000b986f2f93712b1c965bba99d

Authored by William Daniau
1 parent 9d3ef73503
Exists in master and in 1 other branch update

Modification du Makefile pour qu'il soit plus modulaire

Showing 1 changed file with 10 additions and 9 deletions Side-by-side Diff

  1 +OBNAME=OpenBLAS-0.2.15
  2 +LIBSUFFIX=lxsd
1 3  
2   -
3 4 forme:
4   - ( rm -rf OpenBLAS-0.2.15 && tar xzf OpenBLAS-0.2.15.tar.gz )
5   - ( cd OpenBLAS-0.2.15 && make USE_THREAD=1 USE_OPENMP=1 LIBNAMESUFFIX=lxsd )
  5 + ( rm -rf $(OBNAME) && tar xzf $(OBNAME).tar.gz )
  6 + ( cd $(OBNAME) && make USE_THREAD=1 USE_OPENMP=1 LIBNAMESUFFIX=$(LIBSUFFIX) )
6 7  
7 8 formeserial:
8   - ( rm -rf OpenBLAS-0.2.15 && tar xzf OpenBLAS-0.2.15.tar.gz )
9   - ( cd OpenBLAS-0.2.15 && make USE_THREAD=0 USE_OPENMP=0 LIBNAMESUFFIX=lxsd )
  9 + ( rm -rf $(OBNAME) && tar xzf $(OBNAME).tar.gz )
  10 + ( cd $(OBNAME) && make USE_THREAD=0 USE_OPENMP=0 LIBNAMESUFFIX=$(LIBSUFFIX) )
10 11  
11 12 forall:
12   - ( rm -rf OpenBLAS-0.2.15 && tar xzf OpenBLAS-0.2.15.tar.gz )
13   - ( cd OpenBLAS-0.2.15 && make DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=1 LIBNAMESUFFIX=lxsd NUM_THREADS=64 )
  13 + ( rm -rf $(OBNAME) && tar xzf $(OBNAME).tar.gz )
  14 + ( cd $(OBNAME) && make DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=1 LIBNAMESUFFIX=$(LIBSUFFIX) NUM_THREADS=64 )
14 15  
15 16 clean:
16   - ( rm -rf OpenBLAS-0.2.15 )
  17 + ( rm -rf $(OBNAME) )
17 18  
18 19 install:
19   - ( cd OpenBLAS-0.2.15 && make PREFIX=$(BTREE) LIBNAMESUFFIX=lxsd install)
  20 + ( cd $(OBNAME) && make PREFIX=$(BTREE) LIBNAMESUFFIX=$(LIBSUFFIX) install)