File: Makefile.linux

package info (click to toggle)
ppp 2.4.7-2+4.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 7,100 kB
  • sloc: ansic: 56,241; sh: 1,050; perl: 334; makefile: 114; exp: 82
file content (48 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
DESTDIR = $(INSTROOT)@DESTDIR@
BINDIR = $(DESTDIR)/sbin
MANDIR = $(DESTDIR)/share/man/man8

#DO_DEFLATE=y
DO_BSD_COMPRESS=y
HAVE_ZLIB=y

COPTS=-O2 -g
CFLAGS= $(COPTS) -I../include/net
LDFLAGS=$(LDOPTS)

OBJS = pppdump.o
LIBS =

ifdef DO_DEFLATE
CFLAGS += -DDO_DEFLATE=1
OBJS += deflate.o
ifdef HAVE_ZLIB
LIBS += -lz
else
OBJS += zlib.o
endif
else
CFLAGS += -DDO_DEFLATE=0
endif

ifdef DO_BSD_COMPRESS
CFLAGS += -DDO_BSD_COMPRESS=1
OBJS += bsd-comp.o
else
CFLAGS += -DDO_BSD_COMPRESS=0
endif

INSTALL= install

all:	pppdump

pppdump: $(OBJS)
	$(CC) $(LDFLAGS) -o pppdump $(OBJS) $(LIBS)

clean:
	rm -f pppdump $(OBJS) *~

install:
	mkdir -p $(BINDIR) $(MANDIR)
	$(INSTALL) -c pppdump $(BINDIR)
	$(INSTALL) -c -m 444 pppdump.8 $(MANDIR)