summaryrefslogtreecommitdiff
path: root/src/bin/Makefile.am
blob: 46d0c7eb6c0c74db4fd4b8bd3a2fdf7056d9473a (plain)
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
MAINTAINERCLEANFILES = Makefile.in

AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/src/bin \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
@EFBB_CFLAGS@

game_world.c game_world.h: game_world.geneet
	geneet.py $(top_srcdir)/src/bin/game_world.geneet

bin_PROGRAMS = efbb
if BUILD_QUICKLAUNCH
bin_PROGRAMS += efbb_ql
endif

GAME_SOURCES = \
	game_world.c \
	main.c \
	main_screen.c \
	level_select_screen.c \
	cannon.c \
	sound.c \
	score.c \
	bg.c

efbb_LDADD = @EFBB_LIBS@
efbb_SOURCES = $(GAME_SOURCES)

if BUILD_QUICKLAUNCH
############################################################################
## Build quick launch binary, needs elementary_quicklaunch to be enabled. ##
##                                                                        ##
## It is composed of a library with actual code and a binary that talks   ##
## to server that will then fork() + dlopen() such library.               ##
############################################################################
efbb_qldir = $(quicklauncher_libdir)
efbb_ql_LTLIBRARIES = efbb_ql.la
efbb_ql_la_SOURCES = $(GAME_SOURCES)
efbb_ql_la_LIBADD = @EFBB_LIBS@
efbb_ql_la_CFLAGS =
efbb_ql_la_LDFLAGS = -module -avoid-version -no-undefined
efbb_ql_SOURCES = main.c
efbb_ql_LDADD = @EFBB_LIBS@
efbb_ql_CFLAGS = -DELM_LIB_QUICKLAUNCH=1
efbb_ql_LDFLAGS =
endif

noinst_HEADERS = efbb.h $(builddir)/game_world.h main_screen.h level_select_screen.h cannon.h sound.h score.h bg.h
EXTRA_DIST = $(noinst_HEADERS) *.geneet