]> git.ozlabs.org Git - ppp.git/blob - pppstats/Makefile.linux
Make sure $(MANDIR)/man8 exists.
[ppp.git] / pppstats / Makefile.linux
1 #
2 # pppstats makefile
3 # $Id: Makefile.linux,v 1.4 2002/07/25 22:21:14 dfs Exp $
4 #
5
6 PPPSTATSRCS = pppstats.c
7 PPPSTATOBJS = pppstats.o
8
9 #CC = gcc
10 COPTS = -O
11 COMPILE_FLAGS = -D_linux_ -I../include
12 LIBS =
13
14 INSTALL= install -o root -g daemon
15
16 CFLAGS = $(COPTS) $(COMPILE_FLAGS)
17
18 all: pppstats
19
20 install: pppstats
21         -mkdir -p $(MANDIR)/man8
22         $(INSTALL) -s -c pppstats $(BINDIR)/pppstats
23         $(INSTALL) -c -m 444 pppstats.8 $(MANDIR)/man8/pppstats.8
24
25 pppstats: $(PPPSTATSRCS)
26         $(CC) $(CFLAGS) -o pppstats pppstats.c $(LIBS)
27
28 clean:
29         rm -f pppstats *~ #* core
30
31 depend:
32         cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend
33 #       makedepend $(CFLAGS) $(PPPSTATSRCS)