Added autoconf support for ipppstats.
This commit is contained in:
parent
29e9df31dc
commit
a5c65cf675
|
@ -1,34 +0,0 @@
|
||||||
#
|
|
||||||
# pppstats makefile
|
|
||||||
# $Id: Makefile,v 1.2 1997/03/23 19:55:50 fritz Exp $
|
|
||||||
#
|
|
||||||
|
|
||||||
PPPSTATSRCS = ipppstats.c
|
|
||||||
PPPSTATOBJS = ipppstats.o
|
|
||||||
|
|
||||||
CC = gcc
|
|
||||||
COPTS = -O2
|
|
||||||
COMPILE_FLAGS = -m486 -fomit-frame-pointer -I../include
|
|
||||||
LIBS =
|
|
||||||
|
|
||||||
INSTALL= install -o root -g daemon
|
|
||||||
|
|
||||||
CFLAGS = $(COPTS) $(COMPILE_FLAGS)
|
|
||||||
|
|
||||||
all: ipppstats
|
|
||||||
|
|
||||||
install: ipppstats
|
|
||||||
$(INSTALL) -s -c ipppstats $(BINDIR)/ipppstats
|
|
||||||
$(INSTALL) -c -m 444 ipppstats.8 $(MANDIR)/man8/ipppstats.8
|
|
||||||
|
|
||||||
ipppstats: $(PPPSTATSRCS)
|
|
||||||
$(CC) $(CFLAGS) -o ipppstats ipppstats.c $(LIBS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f ipppstats *~ #* core
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
|
|
||||||
depend:
|
|
||||||
cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend
|
|
||||||
# makedepend $(CFLAGS) $(PPPSTATSRCS)
|
|
|
@ -0,0 +1,47 @@
|
||||||
|
#
|
||||||
|
# pppstats makefile
|
||||||
|
# $Id: Makefile.in,v 1.1 1997/03/24 03:58:43 fritz Exp $
|
||||||
|
#
|
||||||
|
ifeq (../.config,$(wildcard ../.config))
|
||||||
|
include ../.config
|
||||||
|
SBINDIR = $(CONFIG_SBINDIR)
|
||||||
|
MANDIR = $(CONFIG_MANDIR)
|
||||||
|
else
|
||||||
|
SBINDIR = /sbin
|
||||||
|
MANDIR = /usr/man
|
||||||
|
endif
|
||||||
|
|
||||||
|
CC = @CC@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_SBIN = $(INSTALL) -m 755 -o 0 -g 0
|
||||||
|
INSTALL_DATA = $(INSTALL) -m 644 -o 0 -g 0
|
||||||
|
INSTALL_DIR = $(INSTALL) -m 755 -o 0 -g 0 -d
|
||||||
|
|
||||||
|
PPPSTATSRCS = ipppstats.c
|
||||||
|
PPPSTATOBJS = ipppstats.o
|
||||||
|
|
||||||
|
CFLAGS = -m486 -fomit-frame-pointer -O2
|
||||||
|
|
||||||
|
all: ipppstats
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(SBINDIR)/ipppstats $(MANDIR)/man8/ipppstats.8
|
||||||
|
|
||||||
|
install: ipppstats
|
||||||
|
$(INSTALL_DIR) $(SBINDIR)
|
||||||
|
$(INSTALL_DIR) $(MANDIR)/man8
|
||||||
|
$(INSTALL_SBIN) ipppstats $(SBINDIR)/ipppstats
|
||||||
|
$(INSTALL_DATA) ipppstats.8 $(MANDIR)/man8/ipppstats.8
|
||||||
|
|
||||||
|
ipppstats: $(PPPSTATSRCS)
|
||||||
|
$(CC) $(CFLAGS) -o ipppstats ipppstats.c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ipppstats *~ *.o #* core
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
rm -f Makefile config.status config.cache config.log
|
||||||
|
|
||||||
|
depend:
|
||||||
|
cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend
|
||||||
|
# makedepend $(CFLAGS) $(PPPSTATSRCS)
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,22 @@
|
||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
AC_INIT(ipppstats.c)
|
||||||
|
|
||||||
|
dnl Checks for programs.
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_CPP
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
dnl Checks for libraries.
|
||||||
|
|
||||||
|
dnl Checks for header files.
|
||||||
|
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h)
|
||||||
|
|
||||||
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
|
||||||
|
dnl Checks for library functions.
|
||||||
|
AC_PROG_GCC_TRADITIONAL
|
||||||
|
AC_HEADER_STDC
|
||||||
|
AC_TYPE_SIGNAL
|
||||||
|
AC_CHECK_FUNCS(socket)
|
||||||
|
|
||||||
|
AC_OUTPUT(Makefile)
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exit 0
|
Loading…
Reference in New Issue