mirror of
http://git.hugovil.com/git/emu8051.git
synced 2025-10-14 02:48:29 +08:00
Implement workaround for flex --header-file option
This is fixed in automake 1.12 and later. The problem is that the ylwrap helper script creates a temporary directory when running flex. Flex then correctly creates the scanner.h file inside this temporary directory, but ylwrap does not copy it back to the build dir.
This commit is contained in:
@@ -5,8 +5,10 @@ AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/common \
|
||||
-I$(top_builddir)/src/common
|
||||
|
||||
# Option -d: produce header file scanner.h
|
||||
AM_LFLAGS = --header-file=scanner.h
|
||||
# Option --header-file: produce header file scanner.h.
|
||||
# Using abs_builddir as a workaround for automake-1.11
|
||||
# broken ylwrap script.
|
||||
AM_LFLAGS = --header-file=$(abs_builddir)/scanner.h
|
||||
|
||||
# Option -d: produce header file parser.h
|
||||
AM_YFLAGS = -d
|
||||
|
Reference in New Issue
Block a user