| # |
| # pppstats makefile |
| # $Id: Makefile.linux,v 1.8 2004/10/31 22:09:03 paulus Exp $ |
| # |
| DESTDIR = @DESTDIR@ |
| BINDIR = $(DESTDIR)/sbin |
| MANDIR = $(DESTDIR)/share/man/man8 |
| |
| PPPSTATSRCS = pppstats.c |
| PPPSTATOBJS = pppstats.o |
| |
| #CC = gcc |
| COPTS = -O |
| COMPILE_FLAGS = -I../include |
| LIBS = |
| |
| INSTALL= install |
| |
| CFLAGS = $(COPTS) $(COMPILE_FLAGS) |
| |
| all: pppstats |
| |
| install: pppstats |
| -mkdir -p $(MANDIR) |
| $(INSTALL) -s -c pppstats $(BINDIR) |
| $(INSTALL) -c -m 444 pppstats.8 $(MANDIR) |
| |
| pppstats: $(PPPSTATSRCS) |
| $(CC) $(CFLAGS) -o pppstats pppstats.c $(LIBS) |
| |
| clean: |
| rm -f pppstats *~ #* core |
| |
| depend: |
| cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend |
| # makedepend $(CFLAGS) $(PPPSTATSRCS) |