#
# pppd makefile for Linux
-# $Id: Makefile.linux,v 1.41 2001/03/08 05:00:35 paulus Exp $
+# $Id: Makefile,v 1.5 2006/11/16 09:07:05 andylin Exp $
#
# Default installation locations
PPPDSRCS = main.c magic.c fsm.c lcp.c ipcp.c upap.c chap.c md5.c \
auth.c options.c sys-linux.c md4.c chap_ms.c cbcp.c \
- demand.c utils.c tdb.c
+ demand.c utils.c tdb.c sha1dgst.c extra_crypto.c
HEADERS = callout.h pathnames.h patchlevel.h chap.h md5.h chap_ms.h md4.h \
- ipxcp.h cbcp.h tdb.h
+ ipxcp.h cbcp.h tdb.h extra_crypto.h
MANPAGES = pppd.8
PPPDOBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o \
auth.o options.o demand.o utils.o sys-linux.o \
- tdb.o \
+ tdb.o sha1dgst.o extra_crypto.o \
pppoe.o pppoehash.o pppoe_client.o libpppoe.o \
pppoe_utils.o pppoatm.o
vpath %.c .
endif
CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS)
+CFLAGS +=-D$(subst -,_,$(BRCM_MODEL_NAME))
+
+#Add by Andrew to test 1&1 requirement
+#porting from 2.18 by wilson
+ifneq ($(strip $(BUILD_ONE_AND_ONE)),)
+ CFLAGS += -DONE_AND_ONE
+endif
+
+ifneq ($(strip $(BUILD_PPP_AUTH_LIMIT)),)
+ CFLAGS += -DPPP_AUTH_LIMIT
+endif
+
+ifneq ($(strip $(BUILD_PPP_SCHEDULE)),)
+ CFLAGS += -DSUPPORT_PPP_SCHEDULE
+endif
+
+ifneq ($(strip $(BUILD_EMBHTTPD)),)
+ CFLAGS += -DINCLUDE_EMBHTTPD
+endif
+
+ifneq ($(strip $(BUILD_MTU_LAN_PPP)),)
+CFLAGS += -DINCLUDE_MTU_LAN_PPP
+endif
+
+ifneq ($(strip $(BRCM_LANG_MMM)),)
+ CFLAGS += -DCONFIG_LANG_MMM
+endif
+
+ifneq ($(strip $(SUPPORT_XML_API)),)
+ CFLAGS += -DSUPPORT_XML_API
+endif
+
+
+ifneq ($(strip $(SUPPORT_XML_API_FOR_NETGEAR)),)
+CFLAGS += -DSUPPORT_XML_API_FOR_NETGEAR
+endif
+
+ifneq ($(strip $(VOXXXLOAD)),)
+ CFLAGS += -DVOXXXLOAD
+endif
+
+ifneq ($(strip $(SIPLOAD)),)
+ CFLAGS += -DINCLUDE_VOIP_SIP
+endif
+
+ifneq ($(strip $(BUILD_DOMAIN_LOCK)),)
+CFLAGS += -DBUILD_DOMAIN_LOCK
+endif
+
+ifneq ($(strip $(ODM_LANG_LLL)),)
+CFLAGS += -DODM_LANG_LLL
+endif
+
+ifneq ($(strip $(BUILD_PPP_ALWAYS_RETRY)),)
+ CFLAGS += -DPPP_ALWAYS_RETRY
+endif
+
+ifneq ($(strip $(BUILD_TR69C_SSL)),)
+CFLAGS += -DSUPPORT_TR69C
+endif
+
+ifneq ($(strip $(BUILD_TR69C)),)
+CFLAGS += -DSUPPORT_TR69C
+endif
+
+ifneq ($(strip $(BUILD_SUPPORT_PPPDBG_SYSLOG)),)
+CFLAGS += -DSUPPORT_PPPDBG_SYSLOG
+endif
+
+#CFLAGS += -DDEBUG_PRINT
ifdef CHAPMS
CFLAGS += -DCHAPMS=1