X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2FMakefile.linux;h=22837c50415e69a6e1a576b97298e741080861f2;hb=ab1b84327c5ecddf485734baa49b0b846f756c05;hp=a6348ebf8117b814f16eabd2385d0c555b16068c;hpb=f1e3aa2dc7e7772d8491c6ff61e4e6d28af33d4b;p=ppp.git diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index a6348eb..22837c5 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,8 +1,12 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.70 2007/06/19 02:08:34 carlsonj Exp $ +# Processed by configure to produce pppd/Makefile # +CROSS_COMPILE=@CROSS_COMPILE@ +CC=$(CROSS_COMPILE)@CC@ +COPTS=@CFLAGS@ + # Default installation locations DESTDIR = $(INSTROOT)@DESTDIR@ BINDIR = $(DESTDIR)/sbin @@ -30,9 +34,6 @@ ifeq (.depend,$(wildcard .depend)) include .depend endif -# CC = gcc -# -COPTS = -O2 -pipe -Wall -g LIBS = -lrt # Uncomment the next line to include support for Microsoft's @@ -78,8 +79,10 @@ PLUGIN=y # Enable EAP SRP-SHA1 authentication (requires libsrp) #USE_SRP=y -# Use libutil +# Use libutil; test if logwtmp is declared in to detect +ifeq ($(shell echo '\#include ' | $(CC) -E - 2>/dev/null | grep -q logwtmp && echo yes),yes) USE_LIBUTIL=y +endif # Enable EAP-TLS authentication (requires MPPE support, libssl and libcrypto) USE_EAPTLS=y @@ -88,7 +91,7 @@ MAXOCTETS=y INCLUDE_DIRS= -I../include -COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP +COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -pipe CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) '-DDESTDIR="@DESTDIR@"' @@ -207,11 +210,9 @@ LIBS += -ldl endif ifdef FILTER -ifneq ($(wildcard /usr/include/pcap-bpf.h),) LIBS += -lpcap CFLAGS += -DPPP_FILTER endif -endif ifdef HAVE_INET6 PPPDSRCS += ipv6cp.c eui64.c