1#uncomment the following line to add checks for buggy ACs which send out 2#duplicate packets 3 4include ../config.mk 5include ../config.in 6 7#DEFINES= -DBUGGY_AC 8#use the following line for OpenBSD support 9#DEFINES= -DUSE_BPF 10DEFINES= 11 12#CFLAGS= -Wall -pedantic -ansi -g $(DEFINES) 13CFLAGS= -Wall -pedantic -ansi -O2 $(DEFINES) 14 15ifeq ($(MPOE_ENABLE_FLAG),y) 16CFLAGS += -DMULTIPLE_PPPOE 17endif 18 19ifeq ($(CONFIG_NEW_WANDETECT),y) 20CFLAGS += -DNEW_WANDETECT 21endif 22 23#Linux support doesn't need extra libraries, but OpenBSD support 24#does. If using OpenBSD, uncomment the following line: 25#LIBS=-lkvm 26 27 28VERSION= 0.3 29 30ifeq ($(CONFIG_SINGLE_PROCESS_PPPOE),y) 31pppoecd: pppoe2.o 32 $(CC) -o pppoecd pppoe2.o $(LIBS) 33else 34pppoecd: pppoe.o 35 $(CC) -o pppoecd pppoe.o $(LIBS) 36endif 37 38all: pppoecd 39 40install: all 41 install -d $(INSTALLDIR)/usr/sbin 42 install -m 755 pppoecd $(INSTALLDIR)/usr/sbin 43 $(STRIP) $(INSTALLDIR)/usr/sbin/pppoecd 44ifeq ($(INCLUDE_IPV6_FLAG),y) 45 cd $(INSTALLDIR)/usr/sbin && rm -f pppoecdv6 && ln -s pppoecd pppoecdv6 46endif 47 48clean: 49 rm -f *.o pppoecd 50 51