Makefile.am 1.86 KB
Newer Older
1
2
# Makefile.am
#
Vivien Kraus's avatar
Vivien Kraus committed
3
# Copyright (C) 2017, 2018, 2019 Vivien Kraus <vivien@planete-kraus.eu>
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 
#  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 the Free Software Foundation, either version 3 of the
#  License, or (at your option) any later version.
# 
#  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.
# 
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see
#  <http://www.gnu.org/licenses/>.

Vivien Kraus's avatar
Vivien Kraus committed
19
SUBDIRS = po lib
Vivien Kraus's avatar
Vivien Kraus committed
20

Vivien Kraus's avatar
Vivien Kraus committed
21
include defaults.am
22

Vivien Kraus's avatar
Vivien Kraus committed
23
ACLOCAL_AMFLAGS = -I m4
Vivien Kraus's avatar
Vivien Kraus committed
24
25
AUTOMAKE_OPTIONS = subdir-objects
dist_pkgdata_DATA += COPYING
Vivien Kraus's avatar
Vivien Kraus committed
26
EXTRA_DIST += m4/gnulib-cache.m4 po/Rules-html
Vivien Kraus's avatar
Vivien Kraus committed
27
28
29

include desktop.am
include version-gen.am
Vivien Kraus's avatar
Vivien Kraus committed
30
include releases.am
Vivien Kraus's avatar
Vivien Kraus committed
31
32
33
34
35
36
37
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
38
include appstream.am
39
40
include doc/Makefile.am
include src/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
41
include games/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
42
include icon/Makefile.am
43
include gnulib.am
Vivien Kraus's avatar
Vivien Kraus committed
44
include screenshots/Makefile.am
Vivien Kraus's avatar
Vivien Kraus committed
45
include nsi/Makefile.am
46

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

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

.PHONY: safe
safe:
	$(MAKE) $(AM_MAKEFLAGS) $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) src/tarot-app/tarot