# 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) ifeq (2.6,$(kver)) CFLAGS += -I../include obj-m += kern.o all: babylon.ko babylon.ko: kern.c bab.h make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules rm -f babylon.ko ln kern.ko babylon.ko 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 distclean: clean $(RM) Makefile *.sw? *.bak endif