annotate libdha/kernelhelper/Makefile @ 20568:2b0bf3891361

cosmetics: Reformat section.
author diego
date Wed, 01 Nov 2006 17:33:45 +0000
parents b069afd2a0de
children 618d1857f4c4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4472
68d588f4914b initial
alex
parents:
diff changeset
1 KERNEL_INCLUDES = /usr/src/linux/include
68d588f4914b initial
alex
parents:
diff changeset
2 INCLUDES = -I$(KERNEL_INCLUDES)
7073
b69ddd4d3bb9 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 4472
diff changeset
3 CFLAGS = -O2 -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
4472
68d588f4914b initial
alex
parents:
diff changeset
4 VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2)
68d588f4914b initial
alex
parents:
diff changeset
5 MDIR = /lib/modules/$(VERSION)/misc
68d588f4914b initial
alex
parents:
diff changeset
6
68d588f4914b initial
alex
parents:
diff changeset
7 all: dhahelper.o test
68d588f4914b initial
alex
parents:
diff changeset
8
68d588f4914b initial
alex
parents:
diff changeset
9 dhahelper.o: dhahelper.c dhahelper.h
68d588f4914b initial
alex
parents:
diff changeset
10 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
68d588f4914b initial
alex
parents:
diff changeset
11
68d588f4914b initial
alex
parents:
diff changeset
12 test: test.c
7073
b69ddd4d3bb9 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 4472
diff changeset
13 $(CC) -O $(INCLUDES) -o $@ $@.c
4472
68d588f4914b initial
alex
parents:
diff changeset
14
68d588f4914b initial
alex
parents:
diff changeset
15 install: dhahelper.o
18083
b069afd2a0de Simplify mkdir calls.
diego
parents: 7073
diff changeset
16 -mkdir -p $(MDIR)
4472
68d588f4914b initial
alex
parents:
diff changeset
17 install -m 644 dhahelper.o $(MDIR)/dhahelper.o
68d588f4914b initial
alex
parents:
diff changeset
18 depmod -a
68d588f4914b initial
alex
parents:
diff changeset
19
68d588f4914b initial
alex
parents:
diff changeset
20 dep:
68d588f4914b initial
alex
parents:
diff changeset
21
68d588f4914b initial
alex
parents:
diff changeset
22 clean:
68d588f4914b initial
alex
parents:
diff changeset
23 rm -f *.o *~
68d588f4914b initial
alex
parents:
diff changeset
24
68d588f4914b initial
alex
parents:
diff changeset
25 distclean: clean
68d588f4914b initial
alex
parents:
diff changeset
26 rm -f test