Austin Schuh | 9a24b37 | 2018-01-28 16:12:29 -0800 | [diff] [blame] | 1 | ################################################################################################### |
| 2 | # # |
| 3 | # This file is part of BLASFEO. # |
| 4 | # # |
| 5 | # BLASFEO -- BLAS For Embedded Optimization. # |
| 6 | # Copyright (C) 2016-2017 by Gianluca Frison. # |
| 7 | # Developed at IMTEK (University of Freiburg) under the supervision of Moritz Diehl. # |
| 8 | # All rights reserved. # |
| 9 | # # |
| 10 | # HPMPC is free software; you can redistribute it and/or # |
| 11 | # modify it under the terms of the GNU Lesser General Public # |
| 12 | # License as published by the Free Software Foundation; either # |
| 13 | # version 2.1 of the License, or (at your option) any later version. # |
| 14 | # # |
| 15 | # HPMPC is distributed in the hope that it will be useful, # |
| 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
| 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # |
| 18 | # See the GNU Lesser General Public License for more details. # |
| 19 | # # |
| 20 | # You should have received a copy of the GNU Lesser General Public # |
| 21 | # License along with HPMPC; if not, write to the Free Software # |
| 22 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # |
| 23 | # # |
| 24 | # Author: Gianluca Frison, giaf (at) dtu.dk # |
| 25 | # gianluca.frison (at) imtek.uni-freiburg.de # |
| 26 | # # |
| 27 | ################################################################################################### |
| 28 | |
| 29 | include ../Makefile.rule |
| 30 | |
| 31 | obj: |
| 32 | ifeq ($(TARGET), X64_INTEL_HASWELL) |
| 33 | ( cd avx2; $(MAKE) obj) |
| 34 | ( cd avx; $(MAKE) obj) |
| 35 | ( cd c99; $(MAKE) obj) |
| 36 | endif |
| 37 | |
| 38 | ifeq ($(TARGET), X64_INTEL_SANDY_BRIDGE) |
| 39 | ( cd avx; $(MAKE) obj) |
| 40 | ( cd c99; $(MAKE) obj) |
| 41 | endif |
| 42 | |
| 43 | ifeq ($(TARGET), X64_INTEL_CORE) |
| 44 | ( cd sse3; $(MAKE) obj) |
| 45 | ( cd c99; $(MAKE) obj) |
| 46 | endif |
| 47 | |
| 48 | ifeq ($(TARGET), X64_AMD_BULLDOZER) |
| 49 | ( cd fma; $(MAKE) obj) |
| 50 | ( cd c99; $(MAKE) obj) |
| 51 | endif |
| 52 | |
| 53 | ifeq ($(TARGET), ARMV8A_ARM_CORTEX_A57) |
| 54 | ( cd armv8a; $(MAKE) obj) |
| 55 | ( cd c99; $(MAKE) obj) |
| 56 | endif |
| 57 | |
| 58 | ifeq ($(TARGET), ARMV7A_ARM_CORTEX_A15) |
| 59 | ( cd armv7a; $(MAKE) obj) |
| 60 | ( cd c99; $(MAKE) obj) |
| 61 | endif |
| 62 | |
| 63 | ifeq ($(TARGET), GENERIC) |
| 64 | ( cd c99; $(MAKE) obj) |
| 65 | endif |
| 66 | |
| 67 | clean: |
| 68 | make -C avx2 clean |
| 69 | make -C avx clean |
| 70 | make -C sse3 clean |
| 71 | make -C fma clean |
| 72 | make -C armv8a clean |
| 73 | make -C armv7a clean |
| 74 | make -C c99 clean |
| 75 | |