1
|
1
|
|
2 CC = gcc
|
|
3 KERNEL_INCLUDES = /usr/src/linux/include
|
|
4 INCLUDES = -I$(KERNEL_INCLUDES)
|
|
5 CFLAGS = -g -O2 -Wall -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
|
|
6
|
57
|
7 all: mga_vid.o mga_vid_test
|
|
8 # sis_vid.o
|
1
|
9
|
|
10 mga_vid.o: mga_vid.c mga_vid.h
|
|
11 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
|
|
12
|
|
13 sis_vid.o: sis_vid.c sis_vid.h
|
|
14 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
|
|
15
|
|
16 mga_vid_test: mga_vid_test.c
|
|
17 $(CC) -g -O -Wall $(INCLUDES) -o $@ $@.c
|
|
18
|
|
19 clean:
|
|
20 rm -f *.o *~
|
|
21
|
|
22 distclean: clean
|
|
23 rm -f mga_vid_test
|