# Copyright (C) 1997-2000 SpellCaster Telecommunications Inc. # $Id: Makefile.in,v 1.1 2004/03/11 03:59:31 bcrl Exp $ # Released under the GNU Public License. See LICENSE file for details. kver := $(shell uname -r | cut -d. -f1-2) ifneq (2.4,$(kver)) obj-m += babylon.o obj-m += bab_l2tp.o obj-m += bab_pppoe.o all: babylon.ko bab_l2tp.ko bab_pppoe.ko make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules modules: make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules babylon.ko: babylon.c bab.h ../include/aps_if.h ../include/vercomp.h bab_l2tp.ko: bab_l2tp.c bab.h ../include/aps_if.h ../include/vercomp.h bab_pppoe.ko: bab_pppoe.c bab.h ../include/aps_if.h ../include/vercomp.h clean: make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` clean $(RM) -f Module.symvers modules_install: make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules_install else TOPDIR=.. include ../common.mak include ../drivers/common.kernel.mak CC = gcc LD = ld CFLAGS=-fomit-frame-pointer -O2 -DVER='"$(VERSION)"' -Wall -I../include $(INC) $(MODVERSIONS) ifeq (alpha,$(ARCH)) CFLAGS+=-ffixed-8 -mno-fp-regs endif OBJS=kern.o all: babylon.o install: all $(INSTALL) -o root -g root -m644 babylon.o /lib/modules/`uname -r`/misc/ babylon.o: $(OBJS) $(LD) -o $@ -r $(OBJS) clean: $(RM) *.o core *.ko *.mod.c Module.symvers endif distclean: clean $(RM) Makefile *.sw? *.bak