#  scrap.c --- a linux loadable module that changes a machine's hardware 
#                address
#    Copyright (C) 1995 by Louis P. Kruger <lpkruger@cs.princeton.edu> and
#                          Andrew C. Myers <acmyers@cs.princeton.edu>
#
#    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; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    To receive a copy of the GNU General Public Licent, write to the 
#    Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 
#    USA.

CPPFLAGS       = -DLINUX
CFLAGS         = -m486 -O2 -g -Wall
CC             = gcc
RM             = rm

scrap.o:       scrap.c 
	$(CC) -D__KERNEL__ -DMODULE $(CPPFLAGS) -c -m486 -O scrap.c -o scrap.o
	ln -s /usr/local/src/scrap/scrap.o /usr/src/linux/modules/scrap.o

#release.h: 
#	@echo char kernel_version[] = \"`uname -r`\"\; > release.h

clean:
	-$(RM) -f *.o release.h *~ core

