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