1 |
# Linux makefile for sheep_net driver |
2 |
|
3 |
## System specific configuration |
4 |
CC = cc |
5 |
CPPFLAGS = -I. -I/usr/src/linux/include |
6 |
CFLAGS = -O2 -Wall -D__KERNEL__ -DMODULE |
7 |
ASFLAGS = |
8 |
LDFLAGS = |
9 |
LIBS = |
10 |
|
11 |
## Files |
12 |
OBJS = sheep_net.o |
13 |
|
14 |
## Rules |
15 |
sheep_net.o: sheep_net.c |
16 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) sheep_net.c |
17 |
|
18 |
dev: |
19 |
mknod /dev/sheep_net c 10 198 |
20 |
|
21 |
install: sheep_net.o |
22 |
install -d /lib/modules/`uname -r`/misc |
23 |
install -m 644 sheep_net.o /lib/modules/`uname -r`/misc |
24 |
|
25 |
clean: |
26 |
-rm $(OBJS) |
27 |
|
28 |
dep depend: |
29 |
makedepend $(CPPFLAGS) -Y *.c |
30 |
|
31 |
# DO NOT DELETE |