blob: 51d34293c4bd01a26cd02e97c311d4dea53a1db5 (
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
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
|
# This file is part of argot - Gray's Extensible Configuration System
# Copyright (C) 2007-2016 Sergey Poznyakoff
#
# Grecs 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, or (at your option)
# any later version.
#
# Grecs 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 Grecs. If not, see <http://www.gnu.org/licenses/>.
PARSER_DEFS =
if ARGOT_COND_META1_PARSER
ARGOT_PARSER_META1 = meta1-gram.y meta1-lex.l
ARGOT_EXTRA_META1 = meta1-gram.h
PARSER_DEFS += -DENABLE_META1_PARSER
endif
if ARGOT_COND_BIND_PARSER
ARGOT_PARSER_BIND = bind-gram.y bind-lex.l
ARGOT_EXTRA_BIND = bind-gram.h
PARSER_DEFS += -DENABLE_BIND_PARSER
endif
if ARGOT_COND_DHCPD_PARSER
ARGOT_PARSER_DHCPD = dhcpd-gram.y dhcpd-lex.l
ARGOT_EXTRA_DHCPD = dhcpd-gram.h
PARSER_DEFS += -DENABLE_DHCPD_PARSER
endif
if ARGOT_COND_GIT_PARSER
ARGOT_PARSER_GIT = git-parser.c
PARSER_DEFS += -DENABLE_GIT_PARSER
endif
if ARGOT_COND_JSON
ARGOT_JSON = json-gram.y json-lex.l jsonfmt.c
ARGOT_EXTRA_JSON = json-gram.h
endif
ARGOT_SRC = \
asprintf.c\
cidr.c\
diag.c\
format.c\
argot-gram.y\
argot-lex.l\
ipstr.c\
join.c\
lineacc.c\
list.c\
lookup.c\
mem.c\
opthelp.c\
parser.c\
parsertab.c\
path-parser.c\
preproc.c\
sort.c\
symtab.c\
text.c\
tree.c\
txtacc.c\
version.c\
wordsplit.c\
$(ARGOT_JSON)\
$(ARGOT_PARSER_BIND)\
$(ARGOT_PARSER_DHCPD)\
$(ARGOT_PARSER_GIT)\
$(ARGOT_PARSER_META1)
if ARGOT_COND_SOCKADDR_LIST
ARGOT_SRC += sockaddr.c
endif
EXTRA_DIST=\
argot-gram.h\
$(ARGOT_EXTRA_BIND)\
$(ARGOT_EXTRA_DHCPD)\
$(ARGOT_EXTRA_JSON)\
$(ARGOT_EXTRA_META1)\
$(PP_SETUP_FILE)\
Make.am Make-inst.am Make-shared.am Make-static.am
AM_CPPFLAGS = \
-I$(srcdir)\
-I$(top_srcdir)/@ARGOT_SUBDIR@\
@ARGOT_INCLUDES@\
@ARGOT_HOST_PROJECT_INCLUDES@\
$(PARSER_DEFS)
AM_YFLAGS = -dtv
AM_LFLAGS = -d
incdir=$(pkgdatadir)/$(VERSION)/include
inc_DATA = $(PP_SETUP_FILE)
LEXCOMPILE = $(top_srcdir)/@ARGOT_SUBDIR@/build-aux/yyrename '$(LEX) $(LFLAGS) $(AM_LFLAGS)'
YACCCOMPILE = $(top_srcdir)/@ARGOT_SUBDIR@/build-aux/yyrename '$(YACC) $(YFLAGS) $(AM_YFLAGS)'
|