source: branches/dev-5693/ThirdParty/build_thirdparties/build/sundials/makefile @ 12138

Last change on this file since 12138 was 12138, checked in by randersson, 12 months ago

#5693 merged from trunk to branch.

File size: 1.3 KB
Line 
1#
2#       Copyright (C) 2018 Modelon AB
3#
4#       This program is free software: you can redistribute it and/or modify
5#       it under the terms of the GNU General Public License version 3 as published
6#       by the Free Software Foundation, or optionally, under the terms of the
7#       Common Public License version 1.0 as published by IBM.
8#
9#       This program is distributed in the hope that it will be useful,
10#       but WITHOUT ANY WARRANTY; without even the implied warranty of
11#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12#       GNU General Public License, or the Common Public License, for more details.
13#
14#       You should have received copies of the GNU General Public License
15#       and the Common Public License along with this program.  If not,
16#       see <http://www.gnu.org/licenses/> or
17#       <http://www.ibm.com/developerworks/library/os-cpl.html/> respectively.
18
19include default_config
20include $(USER_CONFIG)
21
22.PHONY: install clean clean_install
23
24install: $(SUNDIALS_BUILD_DIR)
25        cd $(SUNDIALS_BUILD_DIR) && make install DESTDIR=
26
27$(SUNDIALS_BUILD_DIR):
28        mkdir -p $(SUNDIALS_BUILD_DIR); \
29        cd $(SUNDIALS_BUILD_DIR); \
30        cmake $(GENERATOR) -DEXAMPLES_ENABLE=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=$(SUNDIALS_C_FLAGS) -DCMAKE_INSTALL_PREFIX:PATH=$(SUNDIALS_INSTALL_DIR) $(SUNDIALS_SRC_DIR)
31
32clean:
33        rm -rf $(SUNDIALS_BUILD_DIR)
34
35clean_install: clean install
Note: See TracBrowser for help on using the repository browser.