123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- # Generated automatically from Makefile.in by configure.
- # Makefile for bison
- # Copyright (C) 1984, 1989, 1991 Bob Corbett and Free Software Foundation, Inc.
- #
- # This file is part of Bison, the GNU Compiler Compiler.
- #
- # Bison is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2, or (at your option)
- # any later version.
- #
- # Bison is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with Bison; see the file COPYING. If not, write to
- # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
- #### Start of system configuration section. ####
- srcdir = .
- VPATH = .
- CC = gcc -O
- #INSTALL = /usr/ucb/install -c
- # for hp_ux102
- INSTALL = /opt/imake/bin/install
- INSTALL_PROGRAM = $(INSTALL)
- INSTALL_DATA = $(INSTALL) -m 644
- # Things you might add to DEFS:
- # -DSTDC_HEADERS If you have ANSI C headers and libraries.
- # -DUSG If you have System V/ANSI C string and
- # memory functions and headers.
- # -DHAVE_STRERROR If you have strerror function.
- DEFS = -DSTDC_HEADERS=1 -DUSG=1 -DHAVE_STRERROR=1 -DHAVE_ALLOCA_H=1
- CFLAGS = -g
- LDFLAGS = -g
- LIBS =
- # Some System V machines do not come with libPW. If this is true, use
- # the GNU alloca.o here.
- ALLOCA =
- prefix = /afs/cern.ch/na49/library/local
- exec_prefix = $(prefix)
- # where the installed binary goes
- bindir = $(exec_prefix)/bin
- # where the parsers go
- datadir = $(prefix)/lib
- # where the info files go
- infodir = $(prefix)/info
- # where manual pages go and what their extensions should be
- mandir = $(prefix)/man/man$(manext)
- manext = 1
- #### End of system configuration section. ####
- SHELL = /bin/sh
- # This rule allows us to supply the necessary -D options
- # in addition to whatever the user asks for.
- .c.o:
- $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir)/../include $<
- # names of parser files
- PFILE = bison.simple
- PFILE1 = bison.hairy
- PFILES = -DXPFILE=\"$(datadir)/$(PFILE)\" \
- -DXPFILE1=\"$(datadir)/$(PFILE1)\"
- OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o \
- getargs.o gram.o lalr.o lex.o \
- main.o nullable.o output.o print.o reader.o reduce.o symtab.o \
- warshall.o version.o \
- getopt.o getopt1.o $(ALLOCA)
- all: bison bison.info
- clean:
- rm -f *.o core bison
- mostlyclean: clean
- distclean: clean
- rm -f Makefile config.status
- realclean: distclean
- rm -f TAGS *.info*
- # Most of these deps are in case using RCS.
- install: all bison.1 $(srcdir)/$(PFILE) $(srcdir)/$(PFILE1)
- $(INSTALL_PROGRAM) bison $(bindir)/bison
- -cd $(datadir); rm -f $(PFILE) $(PFILE1)
- # Copy bison.simple, inserting directory name into the #line commands.
- -rm -f tmp-simple
- sed -e "/^#line/ s|bison|$(datadir)/bison|" < $(srcdir)/$(PFILE) > tmp-simple
- $(INSTALL_DATA) ./tmp-simple $(datadir)/$(PFILE)
- rm -f tmp-simple
- $(INSTALL_DATA) $(srcdir)/$(PFILE1) $(datadir)/$(PFILE1)
- -chmod a+r $(datadir)/$(PFILE) $(datadir)/$(PFILE1)
- -$(INSTALL_DATA) $(srcdir)/bison.1 $(mandir)/bison.$(manext)
- -chmod a+r $(mandir)/bison.$(manext)
- for file in $(srcdir)/bison.info*; \
- do $(INSTALL_DATA) $$file $(infodir)/$$file; \
- done
- uninstall:
- rm -f $(bindir)/bison
- -cd $(datadir); rm -f $(PFILE) $(PFILE1)
- rm -f $(mandir)/bison.$(manext) $(infodir)/bison.info*
- bison: $(OBJECTS)
- $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
- dist: bison.info
- echo bison-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
- -rm -rf `cat .fname`
- mkdir `cat .fname`
- ln COPYING ChangeLog Makefile.in configure configure.in \
- REFERENCES bison.1 bison.rnh \
- bison.simple bison.hairy \
- LR0.c allocate.c closure.c conflicts.c derives.c \
- files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
- output.c print.c reader.c reduce.c symtab.c version.c \
- warshall.c files.h gram.h lex.h machine.h new.h state.h \
- symtab.h system.h types.h bison.cld build.com vmsgetargs.c \
- vmshlp.mar README INSTALL bison.texinfo bison.info* texinfo.tex \
- `cat .fname`
- cp -p getopt.[ch] getopt1.c alloca.c `cat .fname`
- tar chZf `cat .fname`.tar.Z `cat .fname`
- -rm -rf `cat .fname` .fname
- bison.info: bison.texinfo
- makeinfo $(srcdir)/bison.texinfo
- TAGS: *.c *.h
- etags *.c *.h
- # This file is different to pass the parser file names to the compiler.
- files.o: files.c
- $(CC) -c $(CFLAGS) $(PFILES) $(srcdir)/files.c $(OUTPUT_OPTION)
- LR0.o: system.h machine.h new.h gram.h state.h
- closure.o: system.h machine.h new.h gram.h
- conflicts.o: system.h machine.h new.h files.h gram.h state.h
- derives.o: system.h new.h types.h gram.h
- files.o: system.h files.h new.h gram.h
- getargs.o: system.h files.h
- lalr.o: system.h machine.h types.h state.h new.h gram.h
- lex.o: system.h files.h symtab.h lex.h
- main.o: system.h machine.h
- nullable.o: system.h types.h gram.h new.h
- output.o: system.h machine.h new.h files.h gram.h state.h
- print.o: system.h machine.h new.h files.h gram.h state.h
- reader.o: system.h files.h new.h symtab.h lex.h gram.h
- reduce.o: system.h machine.h files.h new.h gram.h
- symtab.o: system.h new.h symtab.h gram.h
- warshall.o: system.h machine.h
- # Prevent GNU make v3 from overflowing arg limit on SysV.
- .NOEXPORT:
|