Makefile.am 2.32 KB
Newer Older
1
# tarot implements the rules of the tarot game
Vivien Kraus's avatar
Vivien Kraus committed
2
# Copyright (C) 2017, 2018, 2019, 2020  Vivien Kraus
3
4
5

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, version 3 of the License.
7
8
9
10
11
#
# This program 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.
12
#
13
14
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15

Vivien Kraus's avatar
Vivien Kraus committed
16
SUBDIRS = po lib guile-config-task releases-task early-built-sources-task libtarot-task programs-task .
Vivien Kraus's avatar
Vivien Kraus committed
17

Vivien Kraus's avatar
Vivien Kraus committed
18
include defaults.am
19

Vivien Kraus's avatar
Vivien Kraus committed
20
ACLOCAL_AMFLAGS = -I m4
Vivien Kraus's avatar
Vivien Kraus committed
21
22
AUTOMAKE_OPTIONS = subdir-objects
dist_pkgdata_DATA += COPYING
23
EXTRA_DIST += m4/gnulib-cache.m4 po/Rules-html po/Rules-automake .gitignore
Vivien Kraus's avatar
Vivien Kraus committed
24
25
26

include desktop.am
include version-gen.am
Vivien Kraus's avatar
Vivien Kraus committed
27
include releases.am
Vivien Kraus's avatar
Vivien Kraus committed
28
29
30
31
32
33
34
include bootstrapping.am
include program-tests.am
include valgrind.am
include standard-files.am
include gitlab-ci.am
include distcheck.am
include indent.am
Vivien Kraus's avatar
Vivien Kraus committed
35
include appstream.am
36
37
include doc/Makefile.am
include src/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
38
include games/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
39
include cards/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
40
include icon/Makefile.am
41
include gnulib.am
Vivien Kraus's avatar
Vivien Kraus committed
42
include screenshots/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
43
include nsi/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
44
include debian/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
45
include flatpak/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
46
include model/Makefile.am
47
include git-check.am
48
include copyright/Makefile.am
49
include guix/Makefile.am
50

Vivien Kraus's avatar
Vivien Kraus committed
51
52
53
AM_CPPFLAGS += \
  -DLOCALEDIR="\"$(localedir)\"" \
  -DSYSCONFDIR="\"$(sysconfdir)\"" \
54
  -DDATADIR="\"$(datadir)\"" \
Vivien Kraus's avatar
Vivien Kraus committed
55
56
  -DABS_TOP_SRCDIR="\"$(abs_top_srcdir)\"" \
  -I. -I$(srcdir) \
Vivien Kraus's avatar
Vivien Kraus committed
57
  -Ilib -I$(srcdir)/lib \
Vivien Kraus's avatar
Vivien Kraus committed
58
59
  -DLIBTAROT_VERSION_INFO="\"$(LIBTOOL_CURRENT):$(LIBTOOL_REVISION):$(LIBTOOL_AGE)\""
AM_YFLAGS = -d
Vivien Kraus's avatar
Vivien Kraus committed
60
AM_CFLAGS += \
Vivien Kraus's avatar
Vivien Kraus committed
61
  $(NETTLE_CFLAGS) $(XML_CFLAGS) $(OPENMP_CFLAGS)
Vivien Kraus's avatar
Vivien Kraus committed
62
AM_LDADD += \
Vivien Kraus's avatar
Vivien Kraus committed
63
  $(NETTLE_LIBS) $(XML_LIBS) $(GUILE_LIBS) $(OPENMP_LIBS)
Vivien Kraus's avatar
Vivien Kraus committed
64
65
66
67
68
69

if WITH_GOBJECT
AM_CFLAGS += $(GOBJECT_CFLAGS)
AM_LDADD += $(GOBJECT_LIBS)
endif # WITH_GOBJECT

Vivien Kraus's avatar
Vivien Kraus committed
70
71
72
73
74
75
76
.PHONY: build-early-built-sources build-libtarot build-programs
build-early-built-sources:
	$(MAKE) $(AM_MAKEFLAGS) $(BUILT_SOURCES)
build-libtarot:
	$(MAKE) $(AM_MAKEFLAGS) src/libtarot/libtarot.la
build-programs:
	$(MAKE) $(AM_MAKEFLAGS) $(bin_PROGRAMS)