annotate driver/Makefile @ 176:2ae60285f383

Change DLNA display name.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Mon, 05 Nov 2012 23:11:32 +0900
parents ee357d8f987f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
90
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
1 TARGET := pt1_drv.ko
72
c9b41c438a93 hide misleading build message
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 58
diff changeset
2 VERBOSITY = 0
90
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
3 REL_VERSION = "1.1.0"
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
4 REL_DATE = "2010-01-27"
93
ee357d8f987f suppress silly warning
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 90
diff changeset
5 EXTRA_CFLAGS += -Wformat=2
36
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
6
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
7 all: ${TARGET}
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
8
90
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
9 pt1_drv.ko: pt1_pci.c pt1_i2c.c pt1_tuner.c pt1_tuner_data.c version.h
72
c9b41c438a93 hide misleading build message
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 58
diff changeset
10 make -C /lib/modules/`uname -r`/build M=`pwd` V=$(VERBOSITY) modules
36
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
11
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
12 clean:
72
c9b41c438a93 hide misleading build message
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 58
diff changeset
13 make -C /lib/modules/`uname -r`/build M=`pwd` V=$(VERBOSITY) clean
36
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
14
45
05424917a022 add a rule to install an udev rule file
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 36
diff changeset
15 obj-m := pt1_drv.o
36
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
16
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
17 pt1_drv-objs := pt1_pci.o pt1_i2c.o pt1_tuner.o pt1_tuner_data.o
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
18
90
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
19 clean-files := *.o *.ko *.mod.[co] *~ version.h
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
20
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
21 version.h:
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
22 revh=`hg parents --template '#define DRV_VERSION "r{rev}:{node|short}"\n#define DRV_RELDATE "{date|shortdate}"\n' 2>/dev/null`; \
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
23 if [ -n "$$revh" ] ; then \
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
24 echo "$$revh" > $@; \
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
25 else \
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
26 printf "#define DRV_VERSION \"$(REL_VERSION)\"\n#define DRV_RELDATE \"$(REL_DATE)\"\n" > $@; \
c6311b6efd9c - version string should be generated upon revision on mercurial repository
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 72
diff changeset
27 fi
36
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
28
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
29 install: $(TARGET)
65c8ac567074 cleaning up:
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 19
diff changeset
30 install -m 644 $(TARGET) /lib/modules/`uname -r`/kernel/drivers/video
45
05424917a022 add a rule to install an udev rule file
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 36
diff changeset
31 if [ -d /etc/udev/rules.d -a ! -f /etc/udev/rules.d/99-pt1.rules ] ; then \
05424917a022 add a rule to install an udev rule file
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 36
diff changeset
32 install -m 644 etc/99-pt1.rules /etc/udev/rules.d ; \
05424917a022 add a rule to install an udev rule file
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 36
diff changeset
33 fi
58
7a03d5185067 tweaked Makefile
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 45
diff changeset
34 depmod -a