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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
# Copyright (C) 2006-2015 The Gregorio Project (see CONTRIBUTORS.md)
#
# This file is part of Gregorio.
#
# Gregorio 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.
#
# Gregorio 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 Gregorio. If not, see <http://www.gnu.org/licenses/>.
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/gabc -I$(top_srcdir)/src/dump -I$(top_srcdir)/src/gregoriotex
AM_CFLAGS =
gregorio_CFLAGS = $(KPSE_CFLAGS)
gregorio_LDADD = $(KPSE_LIBS)
bin_PROGRAMS = gregorio
gregorio_SOURCES = gregorio-utils.c characters.c characters.h \
messages.c messages.h struct.c struct.h enum_generator.h \
unicode.c unicode.h sha1.c sha1.h support.c support.h \
config.h bool.h plugins.h utf8strings.h dump/dump.c \
gregoriotex/gregoriotex-write.c \
gregoriotex/gregoriotex-position.c \
gregoriotex/gregoriotex.h
@MK@ifneq ($(wildcard ../.git),)
@MK@ _tag_ = $(shell git describe --exact-match HEAD 2>/dev/null)
@MK@ ifeq ($(_tag_),)
@MK@ DEFS += -DBRANCH_VERSION='"$(shell git rev-parse --abbrev-ref HEAD)-$(shell git rev-parse --short HEAD)-$(shell git rev-list HEAD --count)"'
@MK@ endif
@MK@else
@MK@ ifneq ($(wildcard ../.hg/git),)
@MK@ _gitnode_ = $(shell hg log --template='{gitnode}' -r .)
@MK@ _tag_ = $(shell git --git-dir=../.hg/git describe --exact-match $(_gitnode_) 2>/dev/null)
@MK@ ifeq ($(_tag_),)
@MK@ DEFS += -DBRANCH_VERSION='"$(shell cat ../.hg/bookmarks.current)-$(shell git --git-dir=../.hg/git rev-parse --short '$(_gitnode_)')-$(shell git --git-dir=../.hg/git rev-list '$(_gitnode_)' --count)"'
@MK@ endif
@MK@ endif
@MK@endif
# gabc files
gregorio_SOURCES += gabc/gabc-elements-determination.c gabc/gabc-write.c \
gabc/gabc-glyphs-determination.c gabc/gabc.h \
gabc/gabc-score-determination.h \
gabc/gabc-score-determination-y.h \
gabc/gabc-score-determination-y.c \
gabc/gabc-score-determination-l.h \
gabc/gabc-score-determination-l.c \
gabc/gabc-notes-determination-l.c \
vowel/vowel.h vowel/vowel.c vowel/vowel-rules.h \
vowel/vowel-rules-l.h vowel/vowel-rules-l.c \
vowel/vowel-rules-y.h vowel/vowel-rules-y.c
EXTRA_DIST = encode_utf8strings.c utf8strings.h.in utf8strings.h \
gabc/gabc-notes-determination.l \
gabc/gabc-notes-determination-l.c \
gabc/gabc-score-determination.h \
gabc/gabc-score-determination.y \
gabc/gabc-score-determination-y.h \
gabc/gabc-score-determination-y.c \
gabc/gabc-score-determination.l \
gabc/gabc-score-determination-l.h \
gabc/gabc-score-determination-l.c \
vowel/vowel-rules.l \
vowel/vowel-rules-l.h vowel/vowel-rules-l.c \
vowel/vowel-rules.y \
vowel/vowel-rules-y.h vowel/vowel-rules-y.c
if HAVE_RC
# Windows resources (see windows/README.md)
gregorio-resources.o: ../windows/gregorio-resources.rc ../windows/gregorio.ico
$(RC) $(RCFLAGS) $< -o $@
gregorio_SOURCES += ../windows/gregorio-resources.rc ../windows/gregorio.ico
gregorio_LDADD += gregorio-resources.o
endif
gabc/gabc-score-determination-y.c: gabc/gabc-score-determination.y
$(YACC) -d -p "gabc_score_determination_" -o $@ $<
gabc/gabc-score-determination-y.h: gabc/gabc-score-determination-y.c
## Recover from the removal of gabc/gabc-score-determination-y.h, see
## https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html
@if test -f $@; then :; else \
rm -f gabc/gabc-score-determination-y.c; \
$(MAKE) $(AM_MAKEFLAGS) gabc/gabc-score-determination-y.c; \
fi
gabc/gabc-score-determination-l.c: gabc/gabc-score-determination.l
$(LEX) -o $@ --header-file=gabc/gabc-score-determination-l.h $<
gabc/gabc-score-determination-l.h: gabc/gabc-score-determination-l.c
## Recover from the removal of gabc/gabc-score-determination-l.h, see
## https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html
@if test -f $@; then :; else \
rm -f gabc/gabc-score-determination-l.c; \
$(MAKE) $(AM_MAKEFLAGS) gabc/gabc-score-determination-l.c; \
fi
gabc/gabc-notes-determination-l.c: gabc/gabc-notes-determination.l
$(LEX) -o $@ $<
vowel/vowel-rules-y.c: vowel/vowel-rules.y
$(YACC) -d -o $@ $<
vowel/vowel-rules-y.h: vowel/vowel-rules-y.c
## Recover from the removal of vowel/vowel-rules-y.h, see
## https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html
@if test -f $@; then :; else \
rm -f vowel/vowel-rules-y.c; \
$(MAKE) $(AM_MAKEFLAGS) vowel/vowel-rules-y.c; \
fi
vowel/vowel-rules-l.c: vowel/vowel-rules.l
$(LEX) -o $@ --header-file=vowel/vowel-rules-l.h $<
vowel/vowel-rules-l.h: vowel/vowel-rules-l.c
## Recover from the removal of vowel/vowel-rules-l.h, see
## https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html
@if test -f $@; then :; else \
rm -f vowel/vowel-rules-l.c; \
$(MAKE) $(AM_MAKEFLAGS) vowel/vowel-rules-l.c; \
fi
utf8strings.h: utf8strings.h.in
$(MAKE) $(AM_MAKEFLAGS) encode_utf8strings${EXEEXT}
./encode_utf8strings${EXEEXT} $< $@
encode_utf8strings${EXEEXT}: encode_utf8strings.c
$(CC) -o $@ $<
BUILT_SOURCES = utf8strings.h \
gabc/gabc-notes-determination-l.c \
gabc/gabc-score-determination-l.c \
gabc/gabc-score-determination-l.h \
gabc/gabc-score-determination-y.c \
gabc/gabc-score-determination-y.h \
vowel/vowel-rules-l.c \
vowel/vowel-rules-l.h \
vowel/vowel-rules-y.c \
vowel/vowel-rules-y.h
CLEANFILES = encode_utf8strings${EXEEXT}
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
|