blob: 1c5113be259f880ef14825ab8a3d2cfc63e9fb46 [file] [log] [blame]
Austin Schuh16ce3c72018-01-28 16:17:08 -08001###################################################################################################
2# #
3# This file is part of HPIPM. #
4# #
5# HPIPM -- High Performance Interior Point Method. #
6# Copyright (C) 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, gianluca.frison (at) imtek.uni-freiburg.de #
25# #
26###################################################################################################
27
28include ../Makefile.rule
29
30LIBS =
31
32LIBS += $(BLASFEO_PATH)/lib/libblasfeo.a
33
34ifeq ($(REF_BLAS), 0)
35LIBS += -lm
36endif
37ifeq ($(REF_BLAS), OPENBLAS)
38LIBS += /opt/openblas/lib/libopenblas.a -pthread -lgfortran -lm
39endif
40ifeq ($(REF_BLAS), BLIS)
41LIBS += /opt/netlib/liblapack.a /opt/blis/lib/libblis.a -lgfortran -lm -fopenmp
42endif
43ifeq ($(REF_BLAS), NETLIB)
44LIBS += /opt/netlib/liblapack.a /opt/netlib/libblas.a -lgfortran -lm
45endif
46ifeq ($(REF_BLAS), MKL)
47LIBS += -Wl,--start-group /opt/intel/mkl/lib/intel64/libmkl_gf_lp64.a /opt/intel/mkl/lib/intel64/libmkl_core.a /opt/intel/mkl/lib/intel64/libmkl_sequential.a -Wl,--end-group -ldl -lpthread -lm
48endif
49ifeq ($(REF_BLAS), ATLAS)
50LIBS += /opt/atlas/lib/liblapack.a /opt/atlas/lib/libcblas.a /opt/atlas/lib/libf77blas.a /opt/atlas/lib/libatlas.a -lgfortran -lm
51endif
52
53#OBJS_TEST = d_tools.o test_d_cond.o
54#OBJS_TEST = test_d_dense.o
55#OBJS_TEST = test_s_dense.o
56OBJS_TEST = d_tools.o test_d_ocp.o
57#OBJS_TEST = s_tools.o test_s_ocp.o
58#OBJS_TEST = d_tools.o test_m_ocp.o
59
60obj: $(OBJS_TEST)
61 $(CC) -o test.out $(OBJS_TEST) -L. libhpipm.a $(LIBS) #-pg
62
63clean:
64 rm -f *.o
65 rm -f test.out
66 rm -f libhpipm.a
67