home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
gnu
/
bc-1.02-diffs.lha
/
src
/
diffs
/
bc-1.02.diffs
Wrap
Text File
|
1994-07-12
|
53KB
|
1,732 lines
diff -rc --new-file /src/baseline/bc-1.02/Install bc-1.02/Install
*** /src/baseline/bc-1.02/Install Sun Nov 24 12:18:41 1991
--- bc-1.02/Install Wed Feb 23 10:51:13 1994
***************
*** 59,73 ****
For MINIX and ANSI compilers (gcc et al) do NOT use -DVARARGS.
NO_LIMITS
! Use this for systems without the /usr/include/limits.h file.
(BSD4.3 is one.) You should check the values of INT_MAX and
LONG_MAX in the file const.h if you use -DNO_LIMITS.
NO_UNISTD
! Use this for systems without /usr/include/unistd.h.
-DNO_STDLIB
! Use this for systems without /usr/include/stdlib.h.
STRINGS_H
Include the file <strings.h> instead of <string.h>.
--- 59,73 ----
For MINIX and ANSI compilers (gcc et al) do NOT use -DVARARGS.
NO_LIMITS
! Use this for systems without the /gnu/include/limits.h file.
(BSD4.3 is one.) You should check the values of INT_MAX and
LONG_MAX in the file const.h if you use -DNO_LIMITS.
NO_UNISTD
! Use this for systems without /gnu/include/unistd.h.
-DNO_STDLIB
! Use this for systems without /gnu/include/stdlib.h.
STRINGS_H
Include the file <strings.h> instead of <string.h>.
diff -rc --new-file /src/baseline/bc-1.02/Makefile bc-1.02/Makefile
*** /src/baseline/bc-1.02/Makefile Wed Mar 4 14:21:47 1992
--- bc-1.02/Makefile Thu Jan 1 00:00:00 1970
***************
*** 1,190 ****
- #
- # A makefile for bc. This is part of the bc/sbc distribution.
- #
- #
- # Make sure these have the correct directories for your machine.
- #
- # LIBDIR and BINDIR are where bc and libmath.b will be put.
- #
- PREFIX = /usr/local
- LIBDIR = $(PREFIX)/lib
- BINDIR = $(PREFIX)/bin
- MANDIR = $(PREFIX)/man/man1
- #
- # INCLUDE is the directory from where header files are included.
- #
- INCLUDE = /usr/include
- #
- # This is the name of the library file, if needed. This definition should
- # not be deleted.
- #
- LIBFILE = $(LIBDIR)/libmath.b
- #
- # Programs definitions for use by make.
- #
- SHELL = /bin/sh
- YACC = yacc
- #YACC = bison -y
- LEX = flex -I8
- #LEX = lex
- CC = cc
- UUENCODE = uue
- MAKE = make
- #
- # The following are the standard definitions. For MINIX PC, you need to
- # comment these out and select one of the MINIX PC definition sets.
- # Other configuration defines are generated automatically. See the
- # README file for more details.
- #
- O=o
- CFLAGS = -O -D_POSIX_SOURCE
- LDFLAGS =
- #
- # For the PC version of MINIX (K&R compiler), use the following lines.
- #
- #O=s
- #CFLAGS = -O -D_POSIX_SOURCE
- #LDFLAGS = -i
- #
- # For the PC version of MINIX (ANSI compiler), use the following lines:
- #
- #O=o
- #CFLAGS = -m -D_POSIX_SOURCE
- #LDFLAGS = -i
- #
- #
- OFILES = scan.$O util.$O main.$O number.$O storage.$O load.$O execute.$O
- #
- DISTFILES = COPYING Makefile Install bc.y bcdefs.h const.h version.h \
- execute.c global.c global.h load.c main.c number.c storage.c \
- number.h proto.h scan.l util.c vfprintf.c README bc.1 sbc.y \
- fix_math.h math.h libmath.b configure ChangeLog
- #
- SUBDIRS = Examples Test
- #
- EXTRAFILES = bc.c.dist scan.c.dist y.tab.h.dist
- #
-
-
- all: bc
- bc: $& config.h bc.$O $(OFILES) global.$O
- $(CC) -o bc $(LDFLAGS) bc.$O $(OFILES) global.$O
-
- sbc: sbc.$O $(OFILES) global.$O
- $(CC) -o sbc $(LDFLAGS) sbc.$O $(OFILES) global.$O
-
- config.h:
- ./configure $(INCLUDE) $(LIBFILE) $(CC)
-
- math.h: libmath.b
- $(MAKE) fbc
- ./fbc -c libmath.b </dev/null >math.h
- ./fix_math.h
- rm -f ./fbc
-
- fbc: $(OFILES) bc.$O
- echo \"\" > math.h
- $(CC) -c $(CFLAGS) global.c
- $(CC) -o fbc $(LDFLAGS) bc.$O $(OFILES) global.$O
-
- install : bc libmath.b config.h
- rm -f $(BINDIR)/bc
- cp bc $(BINDIR)
- chmod 555 $(BINDIR)/bc
- if grep -s BC_MATH_FILE config.h; then rm -f $(LIBDIR)/libmath.b; \
- cp libmath.b $(LIBDIR); chmod 444 $(LIBDIR)/libmath.b; else true; fi
- cp bc.1 $(MANDIR)
-
- dist: $(EXTRAFILES)
- OF=`sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\).*/bc-\1/p' version.h` \
- ; rm -rf $$OF \
- ; mkdir $$OF \
- ; cd $$OF \
- ; for file in $(DISTFILES) $(EXTRAFILES); do ln ../$$file; done \
- ; mkdir $(SUBDIRS) \
- ; for dir in $(SUBDIRS); do cp ../$$dir/* $$dir; done \
- ; cd .. \
- ; tar cf $$OF.tar $$OF \
- ; compress $$OF.tar \
- ; rm -rf $$OF
-
- shars: dist
- OF=`sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\).*/bc-\1/p' version.h` \
- ; $(UUENCODE) $$OF.tar.Z - > $$OF.uue \
- ; split -775 $$OF.uue $$OF-u. \
- ; for file in $$OF-u.a?; do shar $$file > $$file.sh; done
-
- minixdist: $(EXTRAFILES)
- OF=`sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\).*/bc-\1/p' version.h` \
- ; rm -rf $$OF \
- ; mkdir $$OF \
- ; cd $$OF \
- ; for file in $(DISTFILES) $(EXTRAFILES); do ln ../$$file; done \
- ; cd .. \
- ; tar cf $$OF.tar $$OF \
- ; compress -b13 $$OF.tar \
- ; rm -rf $$OF
-
- minixshars: minixdist
- OF=`sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\).*/bc-\1/p' version.h` \
- ; $(UUENCODE) $$OF.tar.Z - > $$OF.uue \
- ; split -775 $$OF.uue $$OF-u. \
- ; for file in $$OF-u.a?; do shar $$file > $$file.sh; done
-
- csrshars: $(EXTRAFILES)
- findsrc -dy $(DISTFILES) $(EXTRAFILES) $(SUBDIRS) | \
- makekit -npart -oMANIFEST
-
- bc.c.dist: bc.c
- cp bc.c bc.c.dist
-
- scan.c.dist: scan.c
- cp scan.c scan.c.dist
-
- y.tab.h.dist: y.tab.h
- cp y.tab.h y.tab.h.dist
-
- extra: $(EXTRAFILES)
-
- # assumes that the extra files exist!
- derived:
- cp bc.c.dist bc.c
- cp scan.c.dist scan.c
- cp y.tab.h.dist y.tab.h
-
- clean:
- rm -f *.$O core ERRS *~ *.bak *.Z
-
- distclean: clean
- rm -f scan.c y.tab.h bc.c sbc.c bc sbc bc-dist* config.h bc-*.* \
- part?? MANIFEST*
-
- realclean: distclean
- rm -rf *.dist
-
- scan.c: scan.l
- $(LEX) scan.l
- mv lex.yy.c scan.c
-
- y.tab.h bc.c: bc.y
- @echo "expect 1 shift/reduce conflict"
- $(YACC) -d bc.y
- mv y.tab.c bc.c
-
- sbc.c: sbc.y
- $(YACC) -d sbc.y
- mv y.tab.c sbc.c
-
- global.$O: bcdefs.h global.h math.h
- bc.$O: bcdefs.h global.h
- execute.$O: bcdefs.h global.h
- load.$O: bcdefs.h global.h
- main.$O: bcdefs.h global.h version.h
- number.$O: bcdefs.h Makefile
- sbc.$O: bcdefs.h global.h
- scan.$O: y.tab.h bcdefs.h global.h
- storage.$O: bcdefs.h global.h
- util.$O: bcdefs.h global.h version.h
-
- bcdefs.h: number.h const.h config.h
- touch bcdefs.h
--- 0 ----
diff -rc --new-file /src/baseline/bc-1.02/Makefile.in bc-1.02/Makefile.in
*** /src/baseline/bc-1.02/Makefile.in Thu Jan 1 00:00:00 1970
--- bc-1.02/Makefile.in Tue May 3 10:41:04 1994
***************
*** 0 ****
--- 1,202 ----
+ #
+ # A makefile for bc. This is part of the bc/sbc distribution.
+ #
+
+ #### Start of system configuration section. ####
+
+ VPATH = @srcdir@
+ srcdir = @srcdir@
+
+ # Common prefix for machine-independent installed files.
+ prefix = /gnu
+ # Common prefix for machine-dependent installed files.
+ exec_prefix = $(prefix)
+
+ # Directory to install `bc' in.
+ bindir = $(exec_prefix)/bin
+ # Directory to find libmath.b
+ libdir = $(exec_prefix)/lib
+ # Directory to install the Info files in.
+ infodir = $(prefix)/info
+ # Directory to install the man page in.
+ mandir = $(prefix)/man/man$(manext)
+ # Number to put on the man page filename.
+ manext = 1
+
+ # Program to install `bc'.
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+ # Program to install the man page.
+ INSTALL_DATA = @INSTALL_DATA@
+ # Generic install program.
+ INSTALL = @INSTALL@
+
+ YACC = @YACC@
+ LEX = flex @LEX@
+ FLEXFLAGS = -I8
+ CC = @CC@
+ CFLAGS = @CFLAGS@
+ DEFS = @DEFS@
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+
+ #### End of system configuration section. ####
+
+ SHELL = /bin/sh
+ MAKE = make
+ O = o
+ UUENCODE = uuencode
+
+ # -I. is needed to find config.h in the build directory.
+ .c.o:
+ $(CC) -c -I. -I$(srcdir) $(CFLAGS) $< $(OUTPUT_OPTION)
+
+ # This is the name of the library file, if needed. This definition should
+ # not be deleted.
+ #
+ LIBFILE = $(libdir)/libmath.b
+
+ OFILES = scan.$O util.$O main.$O number.$O storage.$O load.$O execute.$O
+
+ DISTFILES = COPYING Makefile Install bc.y bcdefs.h const.h versio