Mercurial > mplayer.hg
annotate libdha/kernelhelper/Makefile @ 21080:618d1857f4c4
Unify dep/depend targets.
author | diego |
---|---|
date | Mon, 20 Nov 2006 11:18:01 +0000 |
parents | b069afd2a0de |
children | 43c482cba0fb |
rev | line source |
---|---|
4472 | 1 KERNEL_INCLUDES = /usr/src/linux/include |
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 | 4 VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2) |
5 MDIR = /lib/modules/$(VERSION)/misc | |
6 | |
7 all: dhahelper.o test | |
8 | |
9 dhahelper.o: dhahelper.c dhahelper.h | |
10 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c | |
11 | |
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 | 14 |
15 install: dhahelper.o | |
18083 | 16 -mkdir -p $(MDIR) |
4472 | 17 install -m 644 dhahelper.o $(MDIR)/dhahelper.o |
18 depmod -a | |
19 | |
21080 | 20 dep depend: |
4472 | 21 |
22 clean: | |
23 rm -f *.o *~ | |
24 | |
25 distclean: clean | |
26 rm -f test |