SCCS-vsn: usr.bin/dc/Makefile 1.3
SCCS-vsn: usr.bin/dc/dc.c 4.2
SCCS-vsn: usr.bin/dc/dc.h 1.2
#
-# @(#)Makefile 1.2 (Berkeley) 83/02/11
+# @(#)Makefile 1.3 (Berkeley) 83/03/30
#
DESTDIR=
-SRCS = dc.c dc.h
+SRCS= dc.c dc.h
+CFLAGS= -O
+
all: dc
dc: dc.c dc.h
- cc -O dc.c -o dc
+ ${CC} ${CFLAGS} dc.c -o dc
+
+install:
+ install -s dc ${DESTDIR}/usr/bin/dc
-install: dc
- install -s dc $(DESTDIR)/usr/bin
clean:
rm -f *.o
-
-sources: srcs
-srcs: $(SRCS)
- sccs get $@
#ifndef lint
-static char sccsid[] = "@(#)dc.c 4.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)dc.c 4.2 (Berkeley) %G%";
#endif not lint
#include <stdio.h>
readptr = &readstk[0];
k=0;
sp = sptr = &symlst[0];
- while(sptr < &symlst[TBLSZ]){
+ while(sptr < &symlst[TBLSZ-1]){
sptr->next = ++sp;
sptr++;
}
-/*
- * @(#)dc.h 1.1 (Berkeley) %G%
- */
+/* dc.h 1.2 83/03/30 */
+
#define FATAL 0
#define NFATAL 1
#define BLK sizeof(struct blk)