diff options
Diffstat (limited to '3rdparty/libconfig/extra/gen/Makefile')
-rw-r--r-- | 3rdparty/libconfig/extra/gen/Makefile | 70 |
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 + |