# # Copyright (C) 1997-2000 SpellCaster Telecommunications Inc. # $Id: Makefile.in,v 1.7 2004/07/13 04:57:44 bcrl Exp $ # Released under the GNU Public License. See LICENSE file for details. # kver := $(shell uname -r | cut -d. -f1-2) ifeq (2.6,$(kver)) obj-m += l2tp_k.o all: ln -sf ../../include/*.h ./ make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules else TOPDIR=../.. K_SRC:=l2tp_k.c K_TARG:=l2tp.o include $(TOPDIR)/common.mak include ../common.kernel.mak CFLAGS+=-DLINUX -I/usr/src/linux/include l2tpd: l2tpd.c l2tp_build.h: l2tp_k.c printf "#define L2TP_BUILD %d\n" $$[1 + `cut -d\ -f2 l2tp_build.h`] >l2tp_build.h l2tpd.c: ../../include/l2tp_linux.h l2tp_k.o: l2tp_k.c l2tp_p.c l2tp.h ../../include/l2tp_linux.h l2tp_build.h gcc -fomit-frame-pointer -O2 -DVER='"$(VERSION)"' -Wall -I../../include $(INC) $(MODVERSIONS) -c -o l2tp_k.o $< all: l2tpd l2tp_k.o install: clean: $(RM) test_000 l2tpd *.o distclean: clean $(RM) Makefile endif