home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / diffs / bison.dif < prev    next >
Encoding:
Text File  |  1991-03-24  |  2.4 KB  |  92 lines

  1. diff +context=2 obison-1.14/machine.h bison-1.14/machine.h
  2. *** obison-1.14/machine.h    Sun Mar 24 14:07:16 1991
  3. --- bison-1.14/machine.h    Thu Mar  7 00:11:56 1991
  4. ***************
  5. *** 22,26 ****
  6.   #define    MINSHORT    -32768
  7.   
  8. ! #ifdef MSDOS
  9.   #define    BITS_PER_WORD    16
  10.   #define MAXTABLE    16383
  11. --- 22,26 ----
  12.   #define    MINSHORT    -32768
  13.   
  14. ! #if defined(MSDOS) && !defined(GNUDOS)
  15.   #define    BITS_PER_WORD    16
  16.   #define MAXTABLE    16383
  17. diff +context=2 obison-1.14/makefile bison-1.14/makefile
  18. *** obison-1.14/makefile    Sun Mar 24 14:07:12 1991
  19. --- bison-1.14/makefile    Sun Mar 24 14:12:22 1991
  20. ***************
  21. *** 18,25 ****
  22.   # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  23.   
  24.   INSTALL = install -c
  25.   
  26.   # It is unwise ever to compile a program without symbols.
  27. ! CFLAGS = -g
  28.   
  29.   # For sysV, you must uncomment the following lines
  30. --- 18,31 ----
  31.   # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  32.   
  33. + # GNUDOS: define gcc compilation, and MSDOS flags
  34. + CC=gcc -DMSDOS -DSTDC_HEADERS -DGNUDOS
  35. + .c.o:
  36. +     $(CC) $(CFLAGS) -c $<
  37.   INSTALL = install -c
  38.   
  39.   # It is unwise ever to compile a program without symbols.
  40. ! # GNUDOS: optimize instead
  41. ! CFLAGS = -O
  42.   
  43.   # For sysV, you must uncomment the following lines
  44. ***************
  45. *** 44,49 ****
  46.   PFILE1 = bison.hairy
  47.   
  48. ! PFILES = -DXPFILE=\"$(PARSERDIR)/$(PFILE)\" \
  49. !      -DXPFILE1=\"$(PARSERDIR)/$(PFILE1)\"
  50.   
  51.   OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o    \
  52. --- 50,56 ----
  53.   PFILE1 = bison.hairy
  54.   
  55. ! # GNUDOS: remove \'s before "'s
  56. ! PFILES = -DXPFILE="$(PARSERDIR)/$(PFILE)" \
  57. !      -DXPFILE1="$(PARSERDIR)/$(PFILE1)"
  58.   
  59.   OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o    \
  60. ***************
  61. *** 68,73 ****
  62.       chmod a+r $(MANDIR)/bison.$(MANEXT)
  63.   
  64.   bison: $(OBJECTS)
  65. !     $(CC) $(LDFLAGS) -o bison $(OBJECTS) $(LIBS)
  66.   
  67.   dist:
  68. --- 75,82 ----
  69.       chmod a+r $(MANDIR)/bison.$(MANEXT)
  70.   
  71. + # GNUDOS: use response file
  72.   bison: $(OBJECTS)
  73. !     @>bison.rf $(OBJECTS) $(LIBS)
  74. !     $(CC) $(LDFLAGS) -o bison @bison.rf
  75.   
  76.   dist:
  77. ***************
  78. *** 95,99 ****
  79.   # to the compiler.
  80.   files.o: files.c files.h new.h gram.h
  81. !     $(CC) -c $(CFLAGS) $(PFILES) files.c
  82.   
  83.   LR0.o: machine.h new.h gram.h state.h
  84. --- 104,109 ----
  85.   # to the compiler.
  86.   files.o: files.c files.h new.h gram.h
  87. !     >files.rf -c $(CFLAGS) $(PFILES) files.c
  88. !     $(CC) @files.rf
  89.   
  90.   LR0.o: machine.h new.h gram.h state.h
  91.