- Notifications
You must be signed in to change notification settings - Fork123
/
Copy pathrules.mk
93 lines (78 loc) · 2.54 KB
/
rules.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# xoreos - A reimplementation of BioWare's Aurora engine
#
# xoreos is the legal property of its developers, whose names
# can be found in the AUTHORS file distributed with this source
# distribution.
#
# xoreos is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# xoreos is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with xoreos. If not, see <http://www.gnu.org/licenses/>.
# Top-level automake build recipe.
# Extra files to help with the sources
EXTRA_DIST +=\
BUILDDEP.md\
.uncrustifyrc\
$(EMPTY)
# Extra autotools files
EXTRA_DIST +=\
autogen.sh\
$(EMPTY)
# Files for CMake, our alternative build system
EXTRA_DIST +=\
CMakeLists.txt\
cmake/CMakeAM.cmake\
cmake/CMakeUninstall.cmake\
cmake/FindFaad.cmake\
cmake/FindGLEW.cmake\
cmake/FindLibLZMA.cmake\
cmake/FindMad.cmake\
cmake/FindOgg.cmake\
cmake/FindSDL2.cmake\
cmake/FindVorbis.cmake\
cmake/FindXviD.cmake\
cmake/FindVPX.cmake\
cmake/SetCheckCompilerFlag.cmake\
cmake/toolchain/i686-windows-mingw.cmake\
cmake/toolchain/x86_64-windows-mingw.cmake\
$(EMPTY)
# Doxygen
EXTRA_DIST +=\
Doxyfile\
doc/doxygen/README\
$(EMPTY)
doxygen:
doxygen
doxygen-clean:
rm -rf doc/doxygen/html/
rm -rf doc/doxygen/latex/
rm -rf doc/doxygen/man/
rm -rf doc/doxygen/*.tmp
rm -rf doc/doxygen/*.db
# Mac OS X Bundle
# TODO: Make a static target for this (would involve changing sdl-config to use static libs, static versions of SDL_sound and SDL_mixer, and creating a framework folder for OpenGL).
BUNDLE_NAME = Xoreos.app
bundle: all
mkdir -p$(BUNDLE_NAME)/Contents/MacOS
mkdir -p$(BUNDLE_NAME)/Contents/Resources
echo"APPL????">$(BUNDLE_NAME)/Contents/PkgInfo
cp dists/macosx/Info.plist$(BUNDLE_NAME)/Contents/
cp dists/macosx/xoreos.icns$(BUNDLE_NAME)/Contents/
cp src/xoreos$(BUNDLE_NAME)/Contents/MacOS/xoreos
chmod 755$(BUNDLE_NAME)/Contents/MacOS/xoreos
$(STRIP)$(BUNDLE_NAME)/Contents/MacOS/xoreos
# Subdirectories
include dists/rules.mk
include man/rules.mk
include doc/rules.mk
include external/rules.mk
include src/rules.mk
include tests/rules.mk