Debian Codegraph @

drivers/libdha/kernelhelper/Makefile.mp

raw
1 KERNEL_INCLUDES = /usr/src/linux/include
2 INCLUDES = -I$(KERNEL_INCLUDES)
3 CFLAGS = -O2 -Wall -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
4 CONFIG_SHELL=/bin/sh -c
5 KERNEL_VERSION=$(shell $(CONFIG_SHELL) 'uname -r')
6 MDIR = /lib/modules/$(KERNEL_VERSION)/misc
7
8 all: dhahelper.o test
9
10 dhahelper.o: dhahelper.c dhahelper.h
11 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
12
13 test: test.c
14 $(CC) -g -O -Wall $(INCLUDES) -o $@ [email protected]
15
16 install: dhahelper.o
17 if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi
18 install -m 644 dhahelper.o $(MDIR)/dhahelper.o
19 depmod -a
20 nodes:
21 mknod -m 666 /dev/dhahelper c 180 0
22
23 dep:
24
25 clean:
26 rm -f *.o *~
27
28 distclean: clean
29 rm -f test