1#
2# pppstats makefile
3# $Id: Makefile.linux 241182 2011-02-17 21:50:03Z $
4#
5
6PPPSTATSRCS = pppstats.c
7PPPSTATOBJS = pppstats.o
8
9#CC = gcc
10COPTS = -O
11COMPILE_FLAGS = -D_linux_ -I../include
12LIBS =
13
14INSTALL= install -o root -g daemon
15
16CFLAGS = $(COPTS) $(COMPILE_FLAGS)
17
18all: pppstats
19
20install: pppstats
21	$(INSTALL) -s -c pppstats $(BINDIR)/pppstats
22	$(INSTALL) -c -m 444 pppstats.8 $(MANDIR)/man8/pppstats.8
23
24pppstats: $(PPPSTATSRCS)
25	$(CC) $(CFLAGS) -o pppstats pppstats.c $(LIBS)
26
27clean:
28	rm -f pppstats *~ #* core
29
30depend:
31	cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend
32#	makedepend $(CFLAGS) $(PPPSTATSRCS)
33