| 1 | #============================================================================= |
| 2 | # MuseScore sftools |
| 3 | # |
| 4 | # Copyright (C) 2002-2007 by Werner Schweer and others |
| 5 | # |
| 6 | # This work is free software; you can redistribute it and/or |
| 7 | # modify it under the terms of the GNU Library General Public |
| 8 | # License as published by the Free Software Foundation; either |
| 9 | # version 2 of the License, or (at your option) any later version. |
| 10 | # |
| 11 | # In addition, as a special exception, licensor gives permission to |
| 12 | # link the code of this work with the OpenSSL Library (or with modified |
| 13 | # versions of OpenSSL that use the same license as OpenSSL), and |
| 14 | # distribute linked combinations including the two. You must obey the |
| 15 | # GNU General Public License in all respects for all of the code used |
| 16 | # other than OpenSSL. If you modify this file, you may extend this |
| 17 | # exception to your version of the file, but you are not obligated to |
| 18 | # do so. If you do not wish to do so, delete this exception statement |
| 19 | # from your version. (This exception is necessary should this work be |
| 20 | # included in a GPL-licenced work.) |
| 21 | # |
| 22 | # See COPYING.LIB for the licence text and disclaimer of warranty. |
| 23 | #============================================================================= |
| 24 | |
| 25 | CPUS = 2 |
| 26 | |
| 27 | release: |
| 28 | if test ! -d build.release; then mkdir build.release; fi; \ |
| 29 | cd build.release; \ |
| 30 | cmake -DCMAKE_BUILD_TYPE=RELEASE .. ;\ |
| 31 | $(MAKE) -j ${CPUS} |
| 32 | |
| 33 | debug: |
| 34 | if test ! -d build.debug; then mkdir build.debug; fi; \ |
| 35 | cd build.debug ; \ |
| 36 | cmake -DCMAKE_BUILD_TYPE=DEBUG .. ; \ |
| 37 | $(MAKE) -j ${CPUS} |
| 38 | |
| 39 | version: |
| 40 | @echo ${VERSION} |
| 41 | |
| 42 | # |
| 43 | # clean out of source build |
| 44 | # |
| 45 | |
| 46 | clean: |
| 47 | rm -rf build.debug build.release |