#
# pppd makefile for Linux
-# $Id: Makefile.linux,v 1.19 1997/03/04 03:35:05 paulus Exp $
+# $Id: Makefile.linux,v 1.22 1997/11/27 06:07:12 paulus Exp $
#
# Default installation locations
# CC = gcc
#
COPTS = -O2 # -g
-VER = 2.3.0
-LIBS = -lcrypt -lbsd
+VER = 2.3.2
+LIBS =
+
+ifneq ($(wildcard /usr/lib/libcrypt*),)
+LIBS += -lcrypt
+endif
# The INCLUDE_DIRS must include the standard headers before the local
# ones. If you just had -I.. then the order would be reversed. So, use
ifdef CHAPMS
CFLAGS += -DCHAPMS=1
+ifndef USE_CRYPT
LIBS := -ldes $(LIBS)
+else
+CFLAGS += -DUSE_CRYPT=1
+endif
PPPDOBJS += md4.o chap_ms.o
+ifdef MSLANMAN
+CFLAGS += -DMSLANMAN=1
+endif
endif
ifdef HAS_SHADOW