home *** CD-ROM | disk | FTP | other *** search
- # Makefile for bison
- # Copyright (C) 1984, 1989 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 1, 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.
-
- # Modified for Zortech C under MSDOS. Tim Capps, 4-16-90
- # Other than changes to this makefile, all source code uses conditional
- # compilation to make this port work.
-
- # names of parser files
- PFILE = bison.sim
- PFILE1 = bison.hai
-
- PARSERDIR = \\SYS
-
- PFILES = -DXPFILE="$(PARSERDIR)\\$(PFILE)" \
- -DXPFILE1="$(PARSERDIR)\\$(PFILE1)"
-
- .c.obj:
- ZTC $* -ml -a -b -c -DZORTECH -DMSDOS -g
-
- OBJECTS = LR0.obj allocate.obj alloca.obj closure.obj conflicts.obj \
- derives.obj files.obj getargs.obj gram.obj lalr.obj lex.obj \
- main.obj nullable.obj output.obj print.obj reader.obj \
- reduce.obj symtab.obj warshall.obj version.obj \
- getopt.obj helper.obj
-
- bison: $(OBJECTS)
- link /CO /NOI @BISON.LNK
-
- ##
- ## We use a linker response file as batch files can't operate the
- ## linker in interactive mode, and the command line would be too long
- ## for non-interactive mode.
- ##
- ## Note: fm.lnk is listed to cause fm.lnk to be automatically regenerated
- ## whenever this makefile is changed.
- ##
- ## Also, we use Microsoft's linker, as BLINK has its problems - TCC
-
- bison: $(OBJECTS) BISON.LNK
- lINK /CO /NOI @BISON.LNK
-
- ##
- ## Build the linker response file
- ##
-
- BISON.LNK : MAKEFILE
- ECHO LR0+ > BISON.LNK
- ECHO allocate+ >> BISON.LNK
- ECHO alloca+ >> BISON.LNK
- ECHO closure+ >> BISON.LNK
- ECHO conflicts+ >> BISON.LNK
- ECHO derives+ >> BISON.LNK
- ECHO files+ >> BISON.LNK
- ECHO getargs+ >> BISON.LNK
- ECHO gram+ >> BISON.LNK
- ECHO lalr+ >> BISON.LNK
- ECHO lex+ >> BISON.LNK
- ECHO main+ >> BISON.LNK
- ECHO nullable+ >> BISON.LNK
- ECHO output+ >> BISON.LNK
- ECHO print+ >> BISON.LNK
- ECHO reader+ >> BISON.LNK
- ECHO reduce+ >> BISON.LNK
- ECHO symtab+ >> BISON.LNK
- ECHO warshall+ >> BISON.LNK
- ECHO helper+ >> BISON.LNK
- ECHO version+ >> BISON.LNK
- ECHO getopt >> BISON.LNK
- ECHO BISON >> BISON.LNK
- ECHO NUL.MAP,, >> BISON.LNK
-
- # This file is different to pass the parser file names
- # to the compiler.
- files.obj: files.c files.h new.h gram.h
- ZTC files -ml -a -b -c -DZORTECH -DMSDOS $(CFLAGS) $(PFILES) -g
-
- LR0.obj: machine.h new.h gram.h state.h
- closure.obj: machine.h new.h gram.h
- conflicts.obj: machine.h new.h files.h gram.h state.h
- derives.obj: new.h types.h gram.h
- getargs.obj: files.h
- lalr.obj: machine.h types.h state.h new.h gram.h
- lex.obj: files.h symtab.h lex.h
- main.obj: machine.h
- nullable.obj: types.h gram.h new.h
- output.obj: machine.h new.h files.h gram.h state.h
- print.obj: machine.h new.h files.h gram.h state.h
- reader.obj: files.h new.h symtab.h lex.h gram.h
- reduce.obj: files.h new.h machine.h gram.h
- symtab.obj: new.h symtab.h gram.h
- warshall.obj: machine.h
-
-