Makefile (c74a7469f97c0f40b46e82ee979f9fb1bb6e847c) Makefile (9cc342f6c4a06ea613ddef1bcaa25409260aec63)
1# SPDX-License-Identifier: GPL-2.0
2
3hostprogs-y := genksyms
4always := $(hostprogs-y)
5
6genksyms-objs := genksyms.o parse.tab.o lex.lex.o
7
8# FIXME: fix the ambiguous grammar in parse.y and delete this hack

--- 17 unchanged lines hidden (view full) ---

26 $(cmd_bison_h) 2>/dev/null
27
28$(obj)/parse.tab.h: $(src)/parse.y FORCE
29 $(call if_changed,bison_h_no_warn)
30
31endif
32
33# -I needed for generated C source (shipped source)
1# SPDX-License-Identifier: GPL-2.0
2
3hostprogs-y := genksyms
4always := $(hostprogs-y)
5
6genksyms-objs := genksyms.o parse.tab.o lex.lex.o
7
8# FIXME: fix the ambiguous grammar in parse.y and delete this hack

--- 17 unchanged lines hidden (view full) ---

26 $(cmd_bison_h) 2>/dev/null
27
28$(obj)/parse.tab.h: $(src)/parse.y FORCE
29 $(call if_changed,bison_h_no_warn)
30
31endif
32
33# -I needed for generated C source (shipped source)
34HOSTCFLAGS_parse.tab.o := -I$(src)
35HOSTCFLAGS_lex.lex.o := -I$(src)
34HOSTCFLAGS_parse.tab.o := -I $(srctree)/$(src)
35HOSTCFLAGS_lex.lex.o := -I $(srctree)/$(src)
36
37# dependencies on generated files need to be listed explicitly
38$(obj)/lex.lex.o: $(obj)/parse.tab.h
36
37# dependencies on generated files need to be listed explicitly
38$(obj)/lex.lex.o: $(obj)/parse.tab.h