- VER:=$(shell uname -r)
- # Change it here or specify it on the "make" commandline
- INCLUDEDIR = /usr/include
- DEBFLAGS = -O2
- CFLAGS = -D__KERNEL__ -DMODULE -Wall $(DEBFLAGS)
- CFLAGS += -I$(INCLUDEDIR)
- OBJS = isapnp.o
- all: $(OBJS)
- isapnp.o : isapnp.c
- ${CC} ${CFLAGS} -o $@ -c isapnp.c
- install:
- mkdir -p /lib/modules/$(VER)/misc /lib/modules/misc
- install -c isapnp.o /lib/modules/$(VER)/misc
- clean:
- rm -f *.o *~ core