home *** CD-ROM | disk | FTP | other *** search
- diff +context=2 obison-1.14/machine.h bison-1.14/machine.h
- *** obison-1.14/machine.h Sun Mar 24 14:07:16 1991
- --- bison-1.14/machine.h Thu Mar 7 00:11:56 1991
- ***************
- *** 22,26 ****
- #define MINSHORT -32768
-
- ! #ifdef MSDOS
- #define BITS_PER_WORD 16
- #define MAXTABLE 16383
- --- 22,26 ----
- #define MINSHORT -32768
-
- ! #if defined(MSDOS) && !defined(GNUDOS)
- #define BITS_PER_WORD 16
- #define MAXTABLE 16383
- diff +context=2 obison-1.14/makefile bison-1.14/makefile
- *** obison-1.14/makefile Sun Mar 24 14:07:12 1991
- --- bison-1.14/makefile Sun Mar 24 14:12:22 1991
- ***************
- *** 18,25 ****
- # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-
- INSTALL = install -c
-
- # It is unwise ever to compile a program without symbols.
- ! CFLAGS = -g
-
- # For sysV, you must uncomment the following lines
- --- 18,31 ----
- # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-
- + # GNUDOS: define gcc compilation, and MSDOS flags
- + CC=gcc -DMSDOS -DSTDC_HEADERS -DGNUDOS
- + .c.o:
- + $(CC) $(CFLAGS) -c $<
- +
- INSTALL = install -c
-
- # It is unwise ever to compile a program without symbols.
- ! # GNUDOS: optimize instead
- ! CFLAGS = -O
-
- # For sysV, you must uncomment the following lines
- ***************
- *** 44,49 ****
- PFILE1 = bison.hairy
-
- ! PFILES = -DXPFILE=\"$(PARSERDIR)/$(PFILE)\" \
- ! -DXPFILE1=\"$(PARSERDIR)/$(PFILE1)\"
-
- OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o \
- --- 50,56 ----
- PFILE1 = bison.hairy
-
- ! # GNUDOS: remove \'s before "'s
- ! PFILES = -DXPFILE="$(PARSERDIR)/$(PFILE)" \
- ! -DXPFILE1="$(PARSERDIR)/$(PFILE1)"
-
- OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o \
- ***************
- *** 68,73 ****
- chmod a+r $(MANDIR)/bison.$(MANEXT)
-
- bison: $(OBJECTS)
- ! $(CC) $(LDFLAGS) -o bison $(OBJECTS) $(LIBS)
-
- dist:
- --- 75,82 ----
- chmod a+r $(MANDIR)/bison.$(MANEXT)
-
- + # GNUDOS: use response file
- bison: $(OBJECTS)
- ! @>bison.rf $(OBJECTS) $(LIBS)
- ! $(CC) $(LDFLAGS) -o bison @bison.rf
-
- dist:
- ***************
- *** 95,99 ****
- # to the compiler.
- files.o: files.c files.h new.h gram.h
- ! $(CC) -c $(CFLAGS) $(PFILES) files.c
-
- LR0.o: machine.h new.h gram.h state.h
- --- 104,109 ----
- # to the compiler.
- files.o: files.c files.h new.h gram.h
- ! >files.rf -c $(CFLAGS) $(PFILES) files.c
- ! $(CC) @files.rf
-
- LR0.o: machine.h new.h gram.h state.h
-