Debian Codegraph @

Makefile.mingw

raw
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 REVISION = $(shell type mscore\revision.h)
26 VERSION = 1.0b-${REVISION}
27 CPUS = 2
28
29 release:
30 if not exist build.release\nul mkdir build.release
31 if not exist win32install\nul mkdir win32install
32 cd build.release & cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=../build/mingw32.mingw.cmake -DCMAKE_INSTALL_PREFIX=../win32install -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_MAKE_PROGRAM=mingw32-make.exe ..
33 cd build.release & $(MAKE) -j ${CPUS}
34
35 debug:
36 if not exist build.debug\nul mkdir build.debug
37 if not exist win32install\nul mkdir win32install
38 cd build.debug & cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=../build/mingw32.mingw.cmake -DCMAKE_INSTALL_PREFIX=../win32install -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_MAKE_PROGRAM=mingw32-make.exe ..
39 cd build.debug & $(MAKE) -j ${CPUS}
40
41 install:
42 cd build.release & $(MAKE) install
43
44 installdebug:
45 cd build.debug & $(MAKE) install
46
47 package:
48 cd build.release & $(MAKE) package
49
50 version:
51 @echo ${VERSION}
52
53 #
54 # clean out of source build
55 #
56
57 clean:
58 -rmdir /S/Q build.debug build.release win32install