mirror of https://gitee.com/openkylin/ppp.git
38 lines
703 B
Makefile
38 lines
703 B
Makefile
#
|
|
# pppstats makefile
|
|
# $Id: Makefile.linux,v 1.9 2006/06/04 05:07:46 paulus Exp $
|
|
#
|
|
DESTDIR = $(INSTROOT)@DESTDIR@
|
|
BINDIR = $(DESTDIR)/sbin
|
|
MANDIR = $(DESTDIR)/share/man/man8
|
|
|
|
PPPSTATSRCS = pppstats.c
|
|
PPPSTATOBJS = pppstats.o
|
|
|
|
#CC = gcc
|
|
COPTS = -O2 -g
|
|
COMPILE_FLAGS = -I../include
|
|
LIBS =
|
|
|
|
INSTALL= install
|
|
|
|
CFLAGS = $(COPTS) $(COMPILE_FLAGS)
|
|
LDFLAGS= $(LDOPTS)
|
|
|
|
all: pppstats
|
|
|
|
install: pppstats
|
|
-mkdir -p $(MANDIR)
|
|
$(INSTALL) -c pppstats $(BINDIR)
|
|
$(INSTALL) -c -m 444 pppstats.8 $(MANDIR)
|
|
|
|
pppstats: $(PPPSTATSRCS)
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o pppstats pppstats.c $(LIBS)
|
|
|
|
clean:
|
|
rm -f pppstats *~ #* core
|
|
|
|
depend:
|
|
cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend
|
|
# makedepend $(CFLAGS) $(PPPSTATSRCS)
|