blob: 1b628524a7e52a9d54f6ddc6c795805dfdb76844 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#
2# pppstats makefile
3# $Id: Makefile.linux,v 1.4 2007-06-20 06:11:29 gerg Exp $
4#
5DESTDIR = $(INSTROOT)@DESTDIR@
6BINDIR = $(DESTDIR)/sbin
7MANDIR = $(DESTDIR)/share/man/man8
8
9PPPSTATSRCS = pppstats.c
10PPPSTATOBJS = pppstats.o
11
12#CC = gcc
13#COPTS = -O
14COMPILE_FLAGS = -I../include
15#LIBS =
16
17INSTALL= install
18
19#CFLAGS = $(COPTS) $(COMPILE_FLAGS)
20CFLAGS += $(COPTS) $(COMPILE_FLAGS)
21
22all: pppstats
23
24install: pppstats
25 -mkdir -p $(MANDIR)
26 $(INSTALL) -s -c pppstats $(BINDIR)
27 $(INSTALL) -c -m 444 pppstats.8 $(MANDIR)
28
29pppstats: $(PPPSTATSRCS)
30 $(CC) $(CFLAGS) $(LDFLAGS) -o pppstats pppstats.c $(LIBS) $(LDLIBS$(LDLIBS_$@))
31
32clean:
33 rm -f pppstats *~ #* core
34
35depend:
36 cpp -M $(CFLAGS) $(PPPSTATSRCS) >.depend
37# makedepend $(CFLAGS) $(PPPSTATSRCS)