7 |
|
ifeq ($(LV),26) |
8 |
|
# Kernel 2.6 |
9 |
|
|
10 |
+ |
KERNEL_DRIVER = $(KERNEL_DIR)/kernel/drivers |
11 |
|
obj-m = sheep_net.o |
12 |
|
|
13 |
|
sheep_net.ko: sheep_net.c |
27 |
|
LIBS = |
28 |
|
|
29 |
|
## Files |
30 |
+ |
KERNEL_DRIVER = $(KERNEL_DIR) |
31 |
|
OBJS = sheep_net.o |
32 |
|
|
33 |
|
## Rules |
46 |
|
mknod /dev/sheep_net c 10 198 |
47 |
|
|
48 |
|
install: sheep_net.$(MP) |
49 |
< |
install -d $(KERNEL_DIR)/misc |
50 |
< |
install -m 644 sheep_net.$(MP) $(KERNEL_DIR)/misc |
49 |
> |
install -d $(KERNEL_DRIVER)/misc |
50 |
> |
install -m 644 sheep_net.$(MP) $(KERNEL_DRIVER)/misc |
51 |
|
depmod -a |
52 |
|
|
53 |
|
# DO NOT DELETE |