2 # pppd makefile for Linux
3 # $Id: Makefile.linux,v 1.23 1998/02/04 01:39:24 paulus Exp $
6 # Default installation locations
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 \
13 HEADERS = callout.h pathnames.h patchlevel.h chap.h md5.h chap_ms.h md4.h \
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 sys-linux.o ipxcp.o
22 # include dependancies if present and backup if as a header file
23 ifeq (.depend,$(wildcard .depend))
33 ifneq ($(wildcard /usr/lib/libcrypt*),)
37 # Uncomment the next 2 lines to include support for Microsoft's
38 # MS-CHAP authentication protocol.
42 # The INCLUDE_DIRS must include the standard headers before the local
43 # ones. If you just had -I.. then the order would be reversed. So, use
44 # the default location for include files first before the .. location.
45 #INCLUDE_DIRS= -I/usr/include -I..
48 COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE
50 CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS)
57 CFLAGS += -DUSE_CRYPT=1
59 PPPDOBJS += md4.o chap_ms.o
61 CFLAGS += -DMSLANMAN=1
66 CFLAGS += -DHAS_SHADOW
67 LIBS := -lshadow $(LIBS)
70 # For "Pluggable Authentication Modules", see ftp.redhat.com:/pub/pam/.
73 LIBS := -lpam -ldl $(LIBS)
76 # Lock library binary for Linux is included in 'linux' subdirectory.
78 LIBS := -llock $(LIBS)
83 mkdir -p $(BINDIR) $(MANDIR)
84 install -s -c -m 4555 -o root pppd $(BINDIR)/pppd
85 install -c -m 555 -o root pppd.8 $(MANDIR)/man8
88 $(CC) $(CFLAGS) -o pppd $(PPPDOBJS) $(LIBS)
91 rm -f $(PPPDOBJS) pppd *~ #* core
94 $(CPP) -M $(CFLAGS) $(PPPDSRCS) >.depend