~ubuntu-branches/debian/sid/ppp/sid

« back to all changes in this revision

Viewing changes to pppd/Makefile.linux

  • Committer: Bazaar Package Importer
  • Author(s): Eddy Petrișor
  • Date: 2007-03-17 22:31:45 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070317223145-felzh5yrmh8fwi8t
Tags: 2.4.4rel-8
* urgency high since fixes an RC bug
* make sure the /etc/resolv.conf file is world readable (Closes: #415077)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# pppd makefile for Linux
3
 
# $Id: Makefile.linux,v 1.41 2001/03/08 05:00:35 paulus Exp $
4
 
#
5
 
 
6
 
# Default installation locations
7
 
BINDIR = /usr/sbin
8
 
MANDIR = /usr/man
9
 
 
10
 
PPPDSRCS = main.c magic.c fsm.c lcp.c ipcp.c upap.c chap.c md5.c ccp.c \
11
 
           ipxcp.c auth.c options.c sys-linux.c md4.c chap_ms.c cbcp.c \
12
 
           demand.c utils.c multilink.c tdb.c tty.c
13
 
HEADERS =  callout.h pathnames.h patchlevel.h chap.h md5.h chap_ms.h md4.h \
14
 
           ipxcp.h cbcp.h tdb.h
15
 
MANPAGES = pppd.8
16
 
PPPDOBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o \
17
 
           auth.o options.o demand.o utils.o sys-linux.o ipxcp.o multilink.o \
18
 
           tdb.o tty.o cbcp.o
19
 
 
20
 
all: pppd
21
 
 
22
 
#
23
 
# include dependancies if present and backup if as a header file
24
 
ifeq (.depend,$(wildcard .depend))
25
 
include .depend
26
 
endif
27
 
 
28
 
# CC = gcc
29
 
#
30
 
COPTS = -O2 -pipe -Wall -g
31
 
LIBS =
32
 
 
33
 
ifneq ($(wildcard /usr/lib/libcrypt.*),)
34
 
LIBS += -lcrypt
35
 
endif
36
 
 
37
 
# Uncomment the next 2 lines to include support for Microsoft's
38
 
# MS-CHAP authentication protocol.
39
 
CHAPMS=y
40
 
USE_CRYPT=y
41
 
ifneq ($(wildcard /usr/lib/libcrypt.*),)
42
 
HAVE_CRYPT_H=y
43
 
endif
44
 
 
45
 
# Uncomment the next line to include support for PPP packet filtering.
46
 
# This requires that the libpcap library and headers be installed
47
 
# and that the kernel driver support PPP packet filtering, which it
48
 
# doesn't yet.
49
 
#FILTER=y
50
 
 
51
 
HAS_SHADOW=y
52
 
#USE_PAM=y
53
 
#HAVE_INET6=y
54
 
 
55
 
PLUGIN=y
56
 
 
57
 
INCLUDE_DIRS= -I../include
58
 
 
59
 
COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MULTILINK -DHAVE_MMAP -DCBCP_SUPPORT
60
 
 
61
 
CFLAGS= $(UDEB_CFLAGS) $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS)
62
 
 
63
 
ifdef CHAPMS
64
 
CFLAGS   += -DCHAPMS=1
65
 
ifndef USE_CRYPT
66
 
LIBS     := -ldes $(LIBS)
67
 
else
68
 
CFLAGS   += -DUSE_CRYPT=1
69
 
ifneq ($(wildcard /usr/include/crypt.h),)
70
 
CFLAGS   += -DHAVE_CRYPT_H=1
71
 
endif
72
 
endif
73
 
PPPDOBJS += md4.o chap_ms.o
74
 
ifdef MSLANMAN
75
 
CFLAGS   += -DMSLANMAN=1
76
 
endif
77
 
endif
78
 
 
79
 
ifdef HAS_SHADOW
80
 
CFLAGS   += -DHAS_SHADOW
81
 
#LIBS     := -lshadow $(LIBS)
82
 
endif
83
 
 
84
 
# For "Pluggable Authentication Modules", see ftp.redhat.com:/pub/pam/.
85
 
ifdef USE_PAM
86
 
CFLAGS   += -DUSE_PAM
87
 
LIBS     := -lpam -ldl $(LIBS)
88
 
endif
89
 
 
90
 
# Lock library binary for Linux is included in 'linux' subdirectory.
91
 
ifdef LOCKLIB
92
 
LIBS     := -llock $(LIBS)
93
 
CFLAGS   += -DLOCKLIB=1
94
 
endif
95
 
 
96
 
ifdef PLUGIN
97
 
CFLAGS  += -DPLUGIN
98
 
LDFLAGS += -Wl,-E
99
 
LIBS    += -ldl
100
 
endif
101
 
 
102
 
ifdef FILTER
103
 
LIBS    += -lpcap
104
 
CFLAGS  += -DPPP_FILTER -I/usr/include/pcap
105
 
endif
106
 
 
107
 
ifdef HAVE_INET6
108
 
     PPPDSRCS += ipv6cp.c eui64.c
109
 
     HEADERS  += ipv6cp.h eui64.h
110
 
     PPPDOBJS += ipv6cp.o eui64.o
111
 
     CFLAGS   += -DINET6=1
112
 
endif
113
 
 
114
 
 
115
 
INSTALL= install -o root
116
 
 
117
 
install: pppd
118
 
        mkdir -p $(BINDIR) $(MANDIR)
119
 
        $(INSTALL) -s -c -m 555 pppd $(BINDIR)/pppd
120
 
        if chgrp pppusers $(BINDIR)/pppd 2>/dev/null; then \
121
 
          chmod o-rx,u+s $(BINDIR)/pppd; fi
122
 
        $(INSTALL) -c -m 444 pppd.8 $(MANDIR)/man8
123
 
 
124
 
pppd: $(PPPDOBJS)
125
 
        $(CC) $(CFLAGS) $(LDFLAGS) -o pppd $(PPPDOBJS) $(LIBS)
126
 
 
127
 
clean:
128
 
        rm -f $(PPPDOBJS) pppd *~ #* core
129
 
 
130
 
depend:
131
 
        $(CPP) -M $(CFLAGS) $(PPPDSRCS) >.depend