summaryrefslogtreecommitdiff
path: root/pppstats
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>1997-03-04 03:45:38 +0000
committerPaul Mackerras <paulus@samba.org>1997-03-04 03:45:38 +0000
commit3278b141bac31dce7c1e45136a3c85e07dee6815 (patch)
tree235d017506f13faafe005ae3be7c93d586ab21b0 /pppstats
parentafc91a00dd17734d3076c083b18f2535b96d2133 (diff)
downloadppp-3278b141bac31dce7c1e45136a3c85e07dee6815.tar.gz
mods from Steve Perkins
Diffstat (limited to 'pppstats')
-rw-r--r--pppstats/Makefile.NeXT37
-rw-r--r--pppstats/pppstats.c4
2 files changed, 13 insertions, 28 deletions
diff --git a/pppstats/Makefile.NeXT b/pppstats/Makefile.NeXT
index f56650f..dd3451a 100644
--- a/pppstats/Makefile.NeXT
+++ b/pppstats/Makefile.NeXT
@@ -1,45 +1,30 @@
#
# pppstats makefile
-# $Id: Makefile.NeXT,v 1.1 1995/08/10 06:48:39 paulus Exp $
+# $Id: Makefile.NeXT,v 1.2 1997/03/04 03:44:38 paulus Exp $
#
-ARCHFLAGS = -arch i386 -arch m68k
+ARCHFLAGS =
BINDIR = /usr/local/ppp/bin
MANDIR = /usr/local/ppp/man
-PPPSTATSRCS = pppstats.c
-PPPSTATOBJS = pppstats.o
+CFLAGS = -O -posix $(ARCHFLAGS) -I..
-#CC = gcc
+SRCS = pppstats.c
+OBJS = pppstats.o
-COPTS = -O -posix $(ARCHFLAGS)
-COMPILE_FLAGS =
-LIBS =
+MANPAGES = chat.8
-#
-# The VJC/PPP_COMPRESS flag is required to ensure correct sizing of
-# some of the structures
-#
-CFLAGS = -I.. $(COPTS) $(COMPILE_FLAGS) #-DVJC -DPPP_COMPRESS -DDECOMP_OUT
all: pppstats
+pppstats: $(OBJS)
+ $(CC) -o pppstats $(CFLAGS) $(OBJS)
+
install:
- /bin/mkdirs $(BINDIR) $(MANDIR)/man8
+ /bin/mkdirs $(MANDIR)/man8 $(BINDIR)
install -c -s -m 555 -o root -g daemon pppstats $(BINDIR)/pppstats
install -c -m 444 -o root -g wheel pppstats.8 $(MANDIR)/man8
-
-pppstats: $(PPPSTATSRCS)
- $(CC) $(CFLAGS) -o pppstats pppstats.c $(LIBS)
-
clean:
- rm -f pppstats *~ #* core
-
-depend:
- cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend
-# makedepend $(CFLAGS) $(PPPSTATSRCS)
+ rm -f pppstats *.o *~ core
-saber_pppstats:
- #setopt load_flags $(CFLAGS)
- #load $(PPPSTATSRCS)
diff --git a/pppstats/pppstats.c b/pppstats/pppstats.c
index d3fa15f..d6c63a8 100644
--- a/pppstats/pppstats.c
+++ b/pppstats/pppstats.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: pppstats.c,v 1.17 1996/09/26 06:16:51 paulus Exp $";
+static char rcsid[] = "$Id: pppstats.c,v 1.18 1997/03/04 03:44:47 paulus Exp $";
#endif
#include <stdio.h>
@@ -71,7 +71,7 @@ int signalled; /* set if alarm goes off "early" */
char *progname;
char *interface;
-#if defined(SUNOS4) || defined(ULTRIX)
+#if defined(SUNOS4) || defined(ULTRIX) || defined(NeXT)
extern int optind;
extern char *optarg;
#endif