-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
94 lines (74 loc) · 2.25 KB
/
Makefile.am
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
94
# Copyright (C) 2011 Stian Ellingsen <stian@plaimi.net>
# Copyright (C) 2012 Alexander Berntsen <alexander@plaimi.net>
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
## Process this file with automake to produce Makefile.in
nogit = test ! -d $(srcdir)/.git
git = git --work-tree=$(srcdir)
dist-hook all: ChangeLog
ChangeLog: .git-timestamp
- $(nogit) || ($(git) log --date=short \
--pretty="format:%ad %an <%ae>%n%w(76,8,8)%s%n%+b" > ChangeLog && \
touch -r .git-timestamp ChangeLog)
.git-timestamp::
- $(nogit) || touch -d "@`$(git) log -1 --format=%ct`" .git-timestamp
clean-local:
$(nogit) || (test ChangeLog -nt .git-timestamp && \
mv -f ChangeLog ChangeLog~ || rm -f ChangeLog);
limbs_off_datadir = $(datadir)/limbs-off
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale/"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)/"\" \
-DPACKAGE_DATA_DIR=\""${limbs_off_datadir}/"\" \
-DPACKAGE_GFX_DIR=\""$(limbs_off_datadir)/data/graphics/"\" \
-DPACKAGE_SFX_DIR=\""$(limbs_off_datadir)/data/sounds/"\" \
-DPACKAGE_CFG_DIR=\""$(limbs_off_datadir)/config/"\" \
$(FONTCONFIG_CFLAGS) \
$(GL_CFLAGS) \
$(PNG_CFLAGS) \
$(SDL_CFLAGS) \
-I$(srcdir)/src
AM_CFLAGS =\
-Wall\
-g
bin_PROGRAMS = limbs-off
INCLUDES = -I${srcdir}/include
limbs_off_SOURCES = \
src/config_parser.cxx \
src/step_timer.cxx \
src/physics.cxx \
src/game_physics.cxx \
src/graphics.cxx \
src/camera.cxx \
src/graphic.cxx \
src/screen.cxx \
src/texture_loader.cxx \
src/screen_element.cxx \
src/menu.cxx \
src/submenu.cxx \
src/collision_handler.cxx \
src/character.cxx \
src/actor.cxx \
src/player.cxx \
src/game.cxx \
src/game_loop.cxx \
src/limbs_off.cxx
limbs_off_LDFLAGS =
limbs_off_LDADD = \
$(FONTCONFIG_LIBS) \
$(GL_LIBS) \
$(PNG_LIBS) \
$(SDL_LIBS)
TESTS =
check_PROGRAMS =
nobase_dist_limbs_off_data_DATA = \
config/controllers1.conf \
config/controllers2.conf \
config/controllers3.conf
limbs_off_icondir = @ICONDIR@
dist_limbs_off_icon_DATA = desktop/limbs-off.svg
limbs_off_desktopdir = @DESKTOPDIR@
dist_limbs_off_desktop_DATA = desktop/limbs-off.desktop