1 # This program is free software; you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation; version 2 of the License.
5 # This program is distributed in the hope that it will be useful,
6 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8 # GNU General Public License for more details.
10 # You should have received a copy of the GNU General Public License
11 # along with this program; if not, write to the Free Software
12 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15 noinst_PROGRAMS += discover/grub2/grub2-parser.ro
17 discover_grub2_grub2_parser_ro_SOURCES = \
18 discover/grub2/blscfg.c \
19 discover/grub2/builtins.c \
20 discover/grub2/env.c \
21 discover/grub2/grub2.h \
22 discover/grub2/grub2.c \
23 discover/grub2/grub2-lexer.l \
24 discover/grub2/grub2-parser.y \
25 discover/grub2/script.c
28 discover/grub2/grub2-parser.c \
29 discover/grub2/grub2-parser.h \
30 discover/grub2/grub2-lexer.h \
31 discover/grub2/grub2-lexer.c
34 discover/grub2/grub2-parser.c \
35 discover/grub2/grub2-parser.h \
36 discover/grub2/grub2-lexer.c \
37 discover/grub2/grub2-lexer.h
39 discover_grub2_grub2_parser_ro_CPPFLAGS = \
41 -I$(top_srcdir)/discover/grub2 \
42 -I$(top_builddir)/discover/grub2
44 discover_grub2_grub2_parser_ro_LINK = \
47 # ylwrap doesn't handle flex header files well; use our own rule here.
48 discover/grub2/grub2-lexer.h discover/grub2/grub2-lexer.c: \
49 $(top_srcdir)/discover/grub2/grub2-lexer.l
50 $(AM_V_LEX)$(LEXCOMPILE) --header-file=discover/grub2/grub2-lexer.h \
51 -o discover/grub2/grub2-lexer.c $^
53 # We need to loosen our warnings for the generated lexer code.
54 discover/grub2/%grub2-lexer.o discover/grub2/grub2-lexer.o: \
55 AM_CFLAGS += -Wno-unused-parameter -Wno-missing-prototypes \
56 -Wno-missing-declarations -Wno-sign-compare
58 $(discover_grub2_grub2_parser_ro_OBJECTS): discover/grub2/grub2-parser.h