#
#   Creation Date: <1999/03/28 04:20:31 samuel>
#   Time-stamp: <2001/10/16 01:43:34 samuel>
#   
#	<Makefile>
#	
#	Rules for sheep_net.o kernel module
#   
#   Copyright (C) 1999, 2001 Samuel Rydh (samuel@ibrium.se)
#   
#   This program is free software; you can redistribute it and/or
#   modify it under the terms of the GNU General Public License
#   as published by the Free Software Foundation
#

KMOD_BUILD 	= yes

O_TARGET	= sheep_net.o
O_OBJS 		= sheep.o

CFLAGS_EXTRA 	= -Wall -O2 -D__KERNEL__ -DMODULE -msoft-float -fno-builtin \
			-I. -I- -I$(KHEADERS)
CFLAGS_EXTRA	+= $(shell if [ -f $(KHEADERS)/linux/modversions.h ]; then \
			echo -DMODVERSIONS \
			-include $(KHEADERS)/linux/modversions.h; fi)

O_TARGET_HOOK	= @$(SMAKE) copy_bin || (rm $(O_TARGET).o ; false)


include ../Rules.make
-include ../Makefile.st

copy_bin: dummy
		@install -d $(MOD_DIR)
		ln -f sheep_net.o $(MOD_DIR)/

MOD_DIR		:= $(MOL_LIB_DIR)/modules/$(UNAME)
CLEAN_FILES	+= $(MOD_DIR)/sheep_net.o




















