diff options
author | Alexey Neyman <stilor@att.net> | 2018-02-04 23:39:01 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-04-07 12:03:17 -0700 |
commit | 9238b587210c53ba51dd665ffb9ff3e13456880f (patch) | |
tree | 9892738202b84042d190d80ecd20c64b060f8b03 /kconfig/Makefile.am | |
parent | 576dcc3fee5b949cbf439fd95ab642dfcfe51a74 (diff) | |
download | crosstool-ng-9238b587210c53ba51dd665ffb9ff3e13456880f.tar.gz crosstool-ng-9238b587210c53ba51dd665ffb9ff3e13456880f.tar.bz2 crosstool-ng-9238b587210c53ba51dd665ffb9ff3e13456880f.zip |
WIP: autotoolization
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'kconfig/Makefile.am')
-rw-r--r-- | kconfig/Makefile.am | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/kconfig/Makefile.am b/kconfig/Makefile.am new file mode 100644 index 00000000..dfb8617b --- /dev/null +++ b/kconfig/Makefile.am @@ -0,0 +1,33 @@ +## Process this file with automake to produce Makefile.in +## vim: set noet : + +## TBD install into lib/crosstool-ng/kconfig? +## TBD turn off program renaming for these? Or account for it in ct-ng script? +pkglibexec_PROGRAMS = conf + +AM_LFLAGS = -L -Pzconf +AM_YFLAGS = -l -b zconf -p zconf + +BUILT_SOURCES = zconf.c zconf.lex.c + +AM_CPPFLAGS = -include config.h -DCONFIG_=\"CT_\" +conf_SOURCES = conf.c zconf.c + +# automake's support for yacc/lex/gperf is too idiosyncratic. It doesn't +# support a common pattern of including lex-generated file into yacc, nor does +# it support using a different base name for the generated C files. +YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS) +AM_V_YACC = $(am__v_YACC_@AM_V@) +am__v_YACC_ = $(am__v_YACC_@AM_DEFAULT_V@) +am__v_YACC_0 = @echo " YACC " $@; + +LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS) +AM_V_LEX = $(am__v_LEX_@AM_V@) +am__v_LEX_ = $(am__v_LEX_@AM_DEFAULT_V@) +am__v_LEX_0 = @echo " LEX " $@; + +zconf.c: zconf.y + $(AM_V_YACC)$(YACCCOMPILE) -o$@ $< + +zconf.lex.c: zconf.l + $(AM_V_LEX)$(LEXCOMPILE) -o$@ $< |