Add server and client files
[miniature:miniature.git] / Makefile.am
1 include $(top_srcdir)/build/autotroll.mk
2
3 ACLOCAL_AMFLAGS = -I build
4
5 gamesdir = $(prefix)/games
6 games_PROGRAMS = src/miniature
7
8 src_miniature_CXXFLAGS = $(MINIATURE_CFLAGS) $(QT_CXXFLAGS) -Wall -Werror -I./src $(AM_CXXFLAGS)
9 src_miniature_CPPFLAGS = $(QT_CPPFLAGS)
10 src_miniature_LDFLAGS  = $(QT_LDFLAGS) $(AM_LDFLAGS)
11 src_miniature_LDADD = $(MINIATURE_LIBS) $(QT_LIBS)
12
13 # for each binary, list the sources it depends on, inlucding headers and moc files
14 src_miniature_SOURCES = \
15                         src/main.cc \
16                         src/main.h \
17                         src/main.moc.cc \
18                         data/data.qrc \
19                         data/data.qrc.cc \
20                         src/board_view.cc \
21                         src/board_view.h \
22                         src/board_view.moc.cc \
23                         src/scene.cc \
24                         src/scene.h \
25                         src/scene.moc.cc \
26                         src/dashboard_item.cc \
27                         src/dashboard_item.h \
28                         src/dashboard_item.moc.cc \
29                         src/game.cc \
30                         src/game.h \
31                         src/game.moc.cc \
32                         src/game_log.cc \
33                         src/game_log.h \
34                         src/game_log.moc.cc \
35                         src/iconic_button.cc \
36                         src/iconic_button.h \
37                         src/iconic_button.moc.cc \
38                         src/logic_analyzer.cc \
39                         src/logic_analyzer.h \
40                         src/position.cc \
41                         src/position.h \
42                         src/half_move.cc \
43                         src/half_move.h \
44                         src/graphics_board_item.cc \
45                         src/graphics_board_item.h \
46                         src/graphics_board_item.moc.cc \
47                         src/pieces.h \
48                         src/pieces/piece.h \
49                         src/pieces/piece.cc \
50                         src/pieces/piece.moc.cc \
51                         src/pieces/pawn.h \
52                         src/pieces/pawn.cc \
53                         src/pieces/rook.h \
54                         src/pieces/rook.cc \
55                         src/pieces/knight.h \
56                         src/pieces/knight.cc \
57                         src/pieces/bishop.h \
58                         src/pieces/bishop.cc \
59                         src/pieces/queen.h \
60                         src/pieces/queen.cc \
61                         src/pieces/king.h \
62                         src/pieces/king.cc \
63                         src/telepathy/tpaccountmanager.h \
64                         src/telepathy/tpaccountmanager.cc \
65                         src/telepathy/tpaccountmanager.moc.cc \
66                         src/telepathy/tpaccountitem.h \
67                         src/telepathy/tpaccountitem.cc \
68                         src/telepathy/tpaccountitem.moc.cc \
69                         src/telepathy/accountselectiondlg.h \
70                         src/telepathy/accountselectiondlg.cc \
71                         src/telepathy/accountselectiondlg.moc.cc \
72                         src/telepathy/tpaccountlistmodel.h \
73                         src/telepathy/tpaccountlistmodel.cc \
74                         src/telepathy/tpaccountlistmodel.moc.cc \
75                         src/telepathy/tpcontactslistmodel.h \
76                         src/telepathy/tpcontactslistmodel.cc \
77                         src/telepathy/tpcontactslistmodel.moc.cc \
78                         src/telepathy/tpgame.h \
79                         src/telepathy/tpgame.cc \
80                         src/telepathy/tpgame.moc.cc \
81                         src/telepathy/tptubesclienthandler.h \
82                         src/telepathy/tptubesclienthandler.cc \
83                         src/telepathy/tptubesclienthandler.moc.cc \
84                         src/telepathy/tpapprovermanager.h \
85                         src/telepathy/tpapprovermanager.cc \
86                         src/telepathy/tpapprovermanager.moc.cc \
87                         src/telepathy/tpapprover.h \
88                         src/telepathy/tpapprover.cc \
89                         src/telepathy/tpapprover.moc.cc \
90                         src/telepathy/tphelpers.h \
91                         src/telepathy/tphelpers.cc \
92                         src/telepathy/tpoutgoingtube.h \
93                         src/telepathy/tpoutgoingtube.cc \
94                         src/telepathy/tpoutgoingtube.moc.cc \
95                         src/telepathy/tpincomingtube.h \
96                         src/telepathy/tpincomingtube.cc \
97                         src/telepathy/tpincomingtube.moc.cc \
98                         src/telepathy/tptubeserver.h \
99                         src/telepathy/tptubeserver.cc \
100                         src/telepathy/tptubeserver.moc.cc \
101                         src/telepathy/tptubeclient.h \
102                         src/telepathy/tptubeclient.cc \
103                         src/telepathy/tptubeclient.moc.cc \
104                         src/pregame.cc \
105                         src/pregame.h \
106                         src/pregame.moc.cc \
107                         $(null)
108
109 if MINIATURE_PLATFORM_MAEMO5
110 src_miniature_SOURCES += \
111                         src/maemo5/main.cc \
112                         $(null)
113 else
114 if MINIATURE_PLATFORM_MAEMO6
115 src_miniature_SOURCES += \
116                         src/maemo5/main.cc \
117                         $(null)
118 else
119 src_miniature_SOURCES += \
120                         src/generic/main.cc \
121                         $(null)
122 endif
123 endif
124
125 # list moc, uic, qrc files here, so that autrotroll can create them/clean them up
126 BUILT_SOURCES = \
127                 data/data.qrc.cc \
128                 src/board_view.moc.cc \
129                 src/scene.moc.cc \
130                 src/dashboard_item.moc.cc \
131                 src/game.moc.cc \
132                 src/game_log.moc.cc \
133                 src/graphics_board_item.moc.cc \
134                 src/iconic_button.moc.cc \
135                 src/main.moc.cc \
136                 src/pieces/piece.moc.cc \
137                 src/select_account.ui.h \
138                 src/pregame.moc.cc \
139                 $(null)
140
141 dist_desktopentry_DATA = data/miniature.desktop
142 dist_dbusservice_DATA = data/org.maemo.miniature.service
143
144 iconthemedir = $(datadir)/icons/hicolor
145 appicon48dir = $(iconthemedir)/48x48/apps
146 appiconscdir = $(iconthemedir)/scalable/apps
147
148 dist_appicon48_DATA = data/icons/48x48/miniature.png
149 dist_appiconsc_DATA = data/icons/scalable/miniature.svg
150
151 DISTCHECK_CONFIGURE_FLAGS := --with-qt=@QT_PATH@
152
153 install-data-hook:
154         update-desktop-database