summaryrefslogtreecommitdiff
path: root/3rdparty/libconfig/extra/gen/Makefile
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-09-09 13:23:29 +0200
committerHaru <haru@dotalux.com>2013-09-17 01:56:14 +0200
commite6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6 (patch)
tree9b0a9a5b61c790ccbecc9c751e5cb6012edcd285 /3rdparty/libconfig/extra/gen/Makefile
parentb8bf9548d76a46650b8559d621e81072d340bc04 (diff)
downloadhercules-e6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6.tar.gz
hercules-e6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6.tar.bz2
hercules-e6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6.tar.xz
hercules-e6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6.zip
Re-generated libconfig parser and scanner
This overrides previous manual edits to the machine-generated files, and is supposed to make it much easier to maintain in future. There should be no functional changes at all, but if there's any issue, please let me know. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to '3rdparty/libconfig/extra/gen/Makefile')
-rw-r--r--3rdparty/libconfig/extra/gen/Makefile70
1 files changed, 70 insertions, 0 deletions
diff --git a/3rdparty/libconfig/extra/gen/Makefile b/3rdparty/libconfig/extra/gen/Makefile
new file mode 100644
index 000000000..b4d2db841
--- /dev/null
+++ b/3rdparty/libconfig/extra/gen/Makefile
@@ -0,0 +1,70 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# gen/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
+YLWRAP = ../aux-build/ylwrap
+YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)
+LEX = flex
+LEXLIB = -ll
+LEX_OUTPUT_ROOT = lex.yy
+SHELL = /bin/sh
+YACC = bison -y
+YFLAGS =
+
+PARSER_PREFIX = libconfig_yy
+BUILT_SOURCES = scanner.c scanner.h grammar.c grammar.h
+AM_YFLAGS = -d -p $(PARSER_PREFIX)
+AM_LFLAGS = --nounistd --header-file=scanner.h --prefix=$(PARSER_PREFIX)
+
+all: $(BUILT_SOURCES)
+
+.SUFFIXES: .c .l .y
+
+grammar.h: grammar.c
+ @if test ! -f $@; then \
+ rm -f grammar.c; \
+ $(MAKE) grammar.c; \
+ else :; fi
+
+
+distclean-compile:
+ -rm -f *.tab.c
+
+scanner.h: scanner.c
+
+.l.c:
+ $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
+
+.y.c:
+ $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE)
+
+clean:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+ -rm -f grammar.c
+ -rm -f grammar.h
+ -rm -f scanner.c
+ -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+
+distclean: clean distclean-compile
+
+.MAKE: all
+
+.PHONY: all clean \
+ distclean \
+ distclean-compile
+