#
# kmouse Makefile
#
#          uncomment the following to have debugging output

#DEBUG = y

# Edit the following to set your own include path

CFLAGS = -I/home/develop/linux/linux-1.3.60/include

TARGET = kmouse

ifdef DEBUG
  # -O is needed, because of "extern inline"
  CFLAGS += -g -O -DDEBUG_KMOUSE -Wall
else
  CFLAGS += -O3 -fomit-frame-pointer -Wall
endif


all: $(TARGET).o x2b mouseconfig fakemouse.o


clean:
	rm -f *.o x2b mouseconfig fakemouse.o *~


exe: x2d $(TARGET).o main.o
	$(LD) $(LDFLAGS) $(TARGET).o main.o -o $@


tar:
	n=`basename \`pwd\``; cd ..; tar cvf - $$n | gzip > $$n.tar.gz
