summaryrefslogtreecommitdiffstats
path: root/contrib/byacc/makefile.in
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-05-21 13:31:26 +0000
committerbapt <bapt@FreeBSD.org>2012-05-21 13:31:26 +0000
commit913116490c54faeb5b24c88cf4cb4bb2bfb9fa19 (patch)
treec752c1d24d195a334247f36888203a7e2bce0837 /contrib/byacc/makefile.in
parent798e1b56b87cda33e4ee6dab500f91a7a6e99054 (diff)
parent26a93fe4b6432f31b18a5bdcc06b4225f525d757 (diff)
downloadFreeBSD-src-913116490c54faeb5b24c88cf4cb4bb2bfb9fa19.zip
FreeBSD-src-913116490c54faeb5b24c88cf4cb4bb2bfb9fa19.tar.gz
Import byacc from invisible island, it brings us lots of compatibilities with
bison, keeping full compatibility with our previous yacc implementation. Also bring the ability to create reentrant parser This fix bin/140309 [1] PR: bin/140309 [1] Submitted by: Philippe Pepiot <ksh@philpep.org> [1] Approved by: des (mentor) MFC after: 1 month
Diffstat (limited to 'contrib/byacc/makefile.in')
-rw-r--r--contrib/byacc/makefile.in182
1 files changed, 182 insertions, 0 deletions
diff --git a/contrib/byacc/makefile.in b/contrib/byacc/makefile.in
new file mode 100644
index 0000000..8739548
--- /dev/null
+++ b/contrib/byacc/makefile.in
@@ -0,0 +1,182 @@
+# $Id: makefile.in,v 1.17 2012/01/15 19:11:21 tom Exp $
+#
+# UNIX template-makefile for Berkeley Yacc
+
+THIS = yacc
+
+#### Start of system configuration section. ####
+
+srcdir = @srcdir@
+VPATH = @srcdir@
+
+CC = @CC@
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+transform = @program_transform_name@
+
+DEFINES =
+EXTRA_CFLAGS = @EXTRA_CFLAGS@
+CPPFLAGS = -I. -I$(srcdir) $(DEFINES) -DHAVE_CONFIG_H -DYYPATCH=`cat $(srcdir)/VERSION` @CPPFLAGS@
+CFLAGS = @CFLAGS@ $(CPPFLAGS) $(EXTRA_CFLAGS)
+
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
+
+CTAGS = @CTAGS@
+ETAGS = @ETAGS@
+LINT = @LINT@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = $(DESTDIR)@bindir@
+mandir = $(DESTDIR)@mandir@/man1
+manext = 1
+
+testdir = $(srcdir)/test
+
+x = @EXEEXT@
+o = .@OBJEXT@
+
+#### End of system configuration section. ####
+
+SHELL = /bin/sh
+@SET_MAKE@
+
+H_FILES = \
+ defs.h
+
+C_FILES = \
+ closure.c \
+ error.c \
+ graph.c \
+ lalr.c \
+ lr0.c \
+ main.c \
+ mkpar.c \
+ output.c \
+ reader.c \
+ skeleton.c \
+ symtab.c \
+ verbose.c \
+ warshall.c
+
+OBJS = \
+ closure$o \
+ error$o \
+ graph$o \
+ lalr$o \
+ lr0$o \
+ main$o \
+ mkpar$o \
+ output$o \
+ reader$o \
+ skeleton$o \
+ symtab$o \
+ verbose$o \
+ warshall$o
+
+TRANSFORM_BIN = sed 's/$x$$//' |sed '$(transform)'|sed 's/$$/$x/'
+TRANSFORM_MAN = sed 's/$(manext)$$//'|sed '$(transform)'|sed 's/$$/$(manext)/'
+
+actual_bin = `echo $(THIS)$x | $(TRANSFORM_BIN)`
+actual_man = `echo $(THIS).$(manext)| $(TRANSFORM_MAN)`
+
+all : $(THIS)$x
+
+install: all installdirs
+ $(INSTALL_PROGRAM) $(THIS)$x $(bindir)/$(actual_bin)
+ - $(INSTALL_DATA) $(srcdir)/$(THIS).1 $(mandir)/$(actual_man)
+
+installdirs:
+ mkdir -p $(bindir)
+ - mkdir -p $(mandir)
+
+uninstall:
+ - rm -f $(bindir)/$(actual_bin)
+ - rm -f $(mandir)/$(actual_man)
+
+################################################################################
+.SUFFIXES : $o .i .html .$(manext) .cat .ps .pdf .txt
+
+.c$o:
+ @RULE_CC@
+ @ECHO_CC@$(CC) -c $(CFLAGS) $<
+
+.c.i :
+ @RULE_CC@
+ @ECHO_CC@$(CPP) -C $(CPPFLAGS) $*.c >$@
+
+.$(manext).cat :
+ - nroff -man $(srcdir)/$(THIS).$(manext) >$@
+
+.$(manext).html :
+ GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | groff -Thtml -man" >$@
+
+.$(manext).ps :
+ $(SHELL) -c "tbl $*.$(manext) | groff -man" >$@
+
+.$(manext).txt :
+ GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | nroff -Tascii -man | col -bx" >$@
+
+.ps.pdf :
+ ps2pdf $*.ps
+
+################################################################################
+
+$(THIS)$x : $(OBJS)
+ @ECHO_LD@$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
+
+mostlyclean :
+ - rm -f core .nfs* *$o *.bak *.BAK *.out
+
+clean : mostlyclean
+ - rm -f $(THIS)$x
+
+distclean : clean
+ - rm -f config.log config.cache config.status config.h makefile
+ - rm -f *.html *.cat *.pdf *.ps *.txt
+ - cd test && rm -f test-*
+
+realclean: distclean
+ - rm -f tags TAGS
+
+################################################################################
+docs :: $(THIS).html \
+ $(THIS).pdf \
+ $(THIS).ps \
+ $(THIS).txt
+$(THIS).html : $(THIS).$(manext)
+$(THIS).pdf : $(THIS).ps
+$(THIS).ps : $(THIS).$(manext)
+$(THIS).txt : $(THIS).$(manext)
+################################################################################
+check: $(THIS)$x
+ $(SHELL) $(testdir)/run_test.sh $(testdir)
+
+check_make: $(THIS)$x
+ $(SHELL) $(testdir)/run_make.sh $(testdir)
+
+check_lint:
+ $(SHELL) $(testdir)/run_lint.sh $(testdir)
+################################################################################
+tags: $(H_FILES) $(C_FILES)
+ $(CTAGS) $(C_FILES) $(H_FILES)
+
+lint: $(C_FILES)
+ $(LINT) $(CPPFLAGS) $(C_FILES)
+
+@MAKE_UPPER_TAGS@TAGS: $(H_FILES) $(C_FILES)
+@MAKE_UPPER_TAGS@ $(ETAGS) $(C_FILES) $(H_FILES)
+
+depend:
+ makedepend -- $(CPPFLAGS) -- $(C_FILES)
+
+$(OBJS) : defs.h
+
+main$o \
+skeleton$o : makefile VERSION
+
+# DO NOT DELETE THIS LINE -- make depend depends on it.
OpenPOWER on IntegriCloud